#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for Open MPI 1.5.4.
#
# Report bugs to <http://www.open-mpi.org/community/help/>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
$0: http://www.open-mpi.org/community/help/ about your
$0: system, including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


lt_ltdl_dir='opal/libltdl'


# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$lt_ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

ECHO=${lt_ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  # Yippee, $ECHO works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<_LT_EOF
$*
_LT_EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test -z "$lt_ECHO"; then
  if test "X${echo_test_string+set}" != Xset; then
    # find a string as large as possible, as long as the shell can cope with it
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
      then
        break
      fi
    done
  fi

  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
     test "X$echo_testing_string" = "X$echo_test_string"; then
    :
  else
    # The Solaris, AIX, and Digital Unix default echo programs unquote
    # backslashes.  This makes it impossible to quote backslashes using
    #   echo "$something" | sed 's/\\/\\\\/g'
    #
    # So, first we look for a working echo in the user's PATH.

    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for dir in $PATH /usr/ucb; do
      IFS="$lt_save_ifs"
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        ECHO="$dir/echo"
        break
      fi
    done
    IFS="$lt_save_ifs"

    if test "X$ECHO" = Xecho; then
      # We didn't find a better echo, so look for alternatives.
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        # This shell has a builtin print -r that does the trick.
        ECHO='print -r'
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
        # If we have ksh, try running configure again with it.
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
        export ORIGINAL_CONFIG_SHELL
        CONFIG_SHELL=/bin/ksh
        export CONFIG_SHELL
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
      else
        # Try using printf.
        ECHO='printf %s\n'
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	  # Cool, printf works
	  :
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	  export CONFIG_SHELL
	  SHELL="$CONFIG_SHELL"
	  export SHELL
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        else
	  # maybe with a smaller string...
	  prev=:

	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
	    then
	      break
	    fi
	    prev="$cmd"
	  done

	  if test "$prev" != 'sed 50q "$0"'; then
	    echo_test_string=`eval $prev`
	    export echo_test_string
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
	  else
	    # Oops.  We lost completely, so just stick with echo.
	    ECHO=echo
	  fi
        fi
      fi
    fi
  fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
lt_ECHO=$ECHO
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='Open MPI'
PACKAGE_TARNAME='openmpi'
PACKAGE_VERSION='1.5.4'
PACKAGE_STRING='Open MPI 1.5.4'
PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/'
PACKAGE_URL=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
WRAPPER_EXTRA_FCFLAGS
WRAPPER_EXTRA_FFLAGS
OMPI_WRAPPER_LIBDIR
OMPI_WRAPPER_INCLUDEDIR
OMPI_WRAPPER_F90_REQUIRED_FILE
OMPI_WRAPPER_F77_REQUIRED_FILE
OMPI_WRAPPER_CXX_REQUIRED_FILE
OMPI_WRAPPER_CXX_LIB
OMPI_WRAPPER_EXTRA_INCLUDES
OMPI_WRAPPER_EXTRA_LIBS
OMPI_WRAPPER_EXTRA_LDFLAGS
OMPI_WRAPPER_EXTRA_FCFLAGS
OMPI_WRAPPER_EXTRA_FFLAGS
OMPI_WRAPPER_EXTRA_CXXFLAGS
OMPI_WRAPPER_EXTRA_CFLAGS
OMPI_WRAPPER_EXTRA_CPPFLAGS
ORTE_WRAPPER_LIBDIR
ORTE_WRAPPER_INCLUDEDIR
ORTE_WRAPPER_EXTRA_INCLUDES
ORTE_WRAPPER_EXTRA_LIBS
ORTE_WRAPPER_EXTRA_LDFLAGS
ORTE_WRAPPER_EXTRA_CFLAGS
ORTE_WRAPPER_EXTRA_CXXFLAGS
ORTE_WRAPPER_EXTRA_CPPFLAGS
WRAPPER_EXTRA_LIBS
WRAPPER_EXTRA_LDFLAGS
WRAPPER_EXTRA_CXXFLAGS
WRAPPER_EXTRA_CFLAGS
OPAL_WRAPPER_LIBDIR
OPAL_WRAPPER_INCLUDEDIR
OPAL_WRAPPER_EXTRA_INCLUDES
OPAL_WRAPPER_EXTRA_LIBS
OPAL_WRAPPER_EXTRA_LDFLAGS
OPAL_WRAPPER_EXTRA_CXXFLAGS
OPAL_WRAPPER_EXTRA_CFLAGS
OPAL_WRAPPER_EXTRA_CPPFLAGS
AMCA_PARAM_SETS_DIR
OMPI_LIBMPI_EXTRA_LDFLAGS
OMPI_LIBMPI_EXTRA_LIBS
CXXCPPFLAGS
DEBUGGER_CFLAGS
CFLAGS_WITHOUT_OPTFLAGS
OPAL_HAVE_DLOPEN_FALSE
OPAL_HAVE_DLOPEN_TRUE
LIBLTDL_SUBDIR
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
lt_ECHO
RANLIB
AR
LD
SED
LIBTOOL
DLLTOOL
AS
INCLTDL
LTDLINCL
LTDLDEPS
LIBLTDL
OPAL_LIBEVENT_SOURCES
OMPI_CONTRIB_DIST_SUBDIRS
OMPI_CONTRIB_SUBDIRS
EXT_PROJECT_SUBDIRS
EXT_F90_LIBS
EXT_F77_LIBS
EXT_CXX_LIBS
EXT_C_LIBS
EXT_F90_HEADERS
EXT_F77_HEADERS
EXT_CXX_HEADERS
EXT_C_HEADERS
EXT_ompi_FRAMEWORK_LIBS
EXT_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
EXT_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS
EXT_ompi_FRAMEWORKS_SUBDIRS
EXT_ompi_FRAMEWORKS
EXT_mpiext_STATIC_SUBDIRS
EXT_mpiext_ALL_SUBDIRS
EXT_mpiext_STATIC_LTLIBS
EXT_mpiext_STATIC_COMPONENTS
EXT_mpiext_ALL_COMPONENTS
MCA_PROJECT_SUBDIRS
MCA_mtl_DIRECT_CALL_HEADER
MCA_pml_DIRECT_CALL_HEADER
MCA_ompi_FRAMEWORK_LIBS
MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_ompi_FRAMEWORKS_SUBDIRS
MCA_ompi_FRAMEWORKS
MCA_topo_DSO_SUBDIRS
MCA_topo_STATIC_SUBDIRS
MCA_topo_ALL_SUBDIRS
MCA_topo_STATIC_LTLIBS
MCA_topo_DSO_COMPONENTS
MCA_topo_STATIC_COMPONENTS
MCA_topo_ALL_COMPONENTS
OMPI_BUILD_topo_unity_DSO_FALSE
OMPI_BUILD_topo_unity_DSO_TRUE
MCA_rcache_DSO_SUBDIRS
MCA_rcache_STATIC_SUBDIRS
MCA_rcache_ALL_SUBDIRS
MCA_rcache_STATIC_LTLIBS
MCA_rcache_DSO_COMPONENTS
MCA_rcache_STATIC_COMPONENTS
MCA_rcache_ALL_COMPONENTS
OMPI_BUILD_rcache_vma_DSO_FALSE
OMPI_BUILD_rcache_vma_DSO_TRUE
MCA_pubsub_DSO_SUBDIRS
MCA_pubsub_STATIC_SUBDIRS
MCA_pubsub_ALL_SUBDIRS
MCA_pubsub_STATIC_LTLIBS
MCA_pubsub_DSO_COMPONENTS
MCA_pubsub_STATIC_COMPONENTS
MCA_pubsub_ALL_COMPONENTS
OMPI_BUILD_pubsub_orte_DSO_FALSE
OMPI_BUILD_pubsub_orte_DSO_TRUE
MCA_pml_DSO_SUBDIRS
MCA_pml_STATIC_SUBDIRS
MCA_pml_ALL_SUBDIRS
MCA_pml_STATIC_LTLIBS
MCA_pml_DSO_COMPONENTS
MCA_pml_STATIC_COMPONENTS
MCA_pml_ALL_COMPONENTS
OMPI_BUILD_pml_v_DSO_FALSE
OMPI_BUILD_pml_v_DSO_TRUE
MCA_vprotocol_DSO_SUBDIRS
MCA_vprotocol_STATIC_SUBDIRS
MCA_vprotocol_ALL_SUBDIRS
MCA_vprotocol_STATIC_LTLIBS
MCA_vprotocol_DSO_COMPONENTS
MCA_vprotocol_STATIC_COMPONENTS
MCA_vprotocol_ALL_COMPONENTS
OMPI_BUILD_vprotocol_pessimist_DSO_FALSE
OMPI_BUILD_vprotocol_pessimist_DSO_TRUE
OMPI_BUILD_pml_crcpw_DSO_FALSE
OMPI_BUILD_pml_crcpw_DSO_TRUE
OMPI_BUILD_pml_ob1_DSO_FALSE
OMPI_BUILD_pml_ob1_DSO_TRUE
OMPI_BUILD_pml_csum_DSO_FALSE
OMPI_BUILD_pml_csum_DSO_TRUE
OMPI_BUILD_pml_cm_DSO_FALSE
OMPI_BUILD_pml_cm_DSO_TRUE
OMPI_BUILD_pml_bfo_DSO_FALSE
OMPI_BUILD_pml_bfo_DSO_TRUE
MCA_osc_DSO_SUBDIRS
MCA_osc_STATIC_SUBDIRS
MCA_osc_ALL_SUBDIRS
MCA_osc_STATIC_LTLIBS
MCA_osc_DSO_COMPONENTS
MCA_osc_STATIC_COMPONENTS
MCA_osc_ALL_COMPONENTS
OMPI_BUILD_osc_rdma_DSO_FALSE
OMPI_BUILD_osc_rdma_DSO_TRUE
OMPI_BUILD_osc_pt2pt_DSO_FALSE
OMPI_BUILD_osc_pt2pt_DSO_TRUE
MCA_op_DSO_SUBDIRS
MCA_op_STATIC_SUBDIRS
MCA_op_ALL_SUBDIRS
MCA_op_STATIC_LTLIBS
MCA_op_DSO_COMPONENTS
MCA_op_STATIC_COMPONENTS
MCA_op_ALL_COMPONENTS
MCA_mtl_DSO_SUBDIRS
MCA_mtl_STATIC_SUBDIRS
MCA_mtl_ALL_SUBDIRS
MCA_mtl_STATIC_LTLIBS
MCA_mtl_DSO_COMPONENTS
MCA_mtl_STATIC_COMPONENTS
MCA_mtl_ALL_COMPONENTS
OMPI_BUILD_mtl_psm_DSO_FALSE
OMPI_BUILD_mtl_psm_DSO_TRUE
mtl_psm_LIBS
mtl_psm_LDFLAGS
mtl_psm_CPPFLAGS
mtl_psm_CFLAGS
OMPI_BUILD_mtl_portals_DSO_FALSE
OMPI_BUILD_mtl_portals_DSO_TRUE
mtl_portals_LIBS
mtl_portals_LDFLAGS
mtl_portals_CPPFLAGS
OMPI_BUILD_mtl_mxm_DSO_FALSE
OMPI_BUILD_mtl_mxm_DSO_TRUE
mtl_mxm_LIBS
mtl_mxm_LDFLAGS
mtl_mxm_CPPFLAGS
mtl_mxm_CFLAGS
OMPI_BUILD_mtl_mx_DSO_FALSE
OMPI_BUILD_mtl_mx_DSO_TRUE
mtl_mx_LIBS
mtl_mx_LDFLAGS
mtl_mx_CPPFLAGS
mtl_mx_CFLAGS
MCA_mpool_DSO_SUBDIRS
MCA_mpool_STATIC_SUBDIRS
MCA_mpool_ALL_SUBDIRS
MCA_mpool_STATIC_LTLIBS
MCA_mpool_DSO_COMPONENTS
MCA_mpool_STATIC_COMPONENTS
MCA_mpool_ALL_COMPONENTS
OMPI_BUILD_mpool_pcie_DSO_FALSE
OMPI_BUILD_mpool_pcie_DSO_TRUE
mpool_pcie_LIBS
mpool_pcie_LDFLAGS
mpool_pcie_CPPFLAGS
OMPI_BUILD_mpool_sm_DSO_FALSE
OMPI_BUILD_mpool_sm_DSO_TRUE
OMPI_BUILD_mpool_rdma_DSO_FALSE
OMPI_BUILD_mpool_rdma_DSO_TRUE
OMPI_BUILD_mpool_fake_DSO_FALSE
OMPI_BUILD_mpool_fake_DSO_TRUE
OMPI_MPIF_MPI_IO_INCLUDE
OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE
OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE
MCA_io_DSO_SUBDIRS
MCA_io_STATIC_SUBDIRS
MCA_io_ALL_SUBDIRS
MCA_io_STATIC_LTLIBS
MCA_io_DSO_COMPONENTS
MCA_io_STATIC_COMPONENTS
MCA_io_ALL_COMPONENTS
OMPI_BUILD_io_romio_DSO_FALSE
OMPI_BUILD_io_romio_DSO_TRUE
MCA_io_romio_SHOULD_BUILD_FALSE
MCA_io_romio_SHOULD_BUILD_TRUE
MCA_dpm_DSO_SUBDIRS
MCA_dpm_STATIC_SUBDIRS
MCA_dpm_ALL_SUBDIRS
MCA_dpm_STATIC_LTLIBS
MCA_dpm_DSO_COMPONENTS
MCA_dpm_STATIC_COMPONENTS
MCA_dpm_ALL_COMPONENTS
OMPI_BUILD_dpm_orte_DSO_FALSE
OMPI_BUILD_dpm_orte_DSO_TRUE
MCA_crcp_DSO_SUBDIRS
MCA_crcp_STATIC_SUBDIRS
MCA_crcp_ALL_SUBDIRS
MCA_crcp_STATIC_LTLIBS
MCA_crcp_DSO_COMPONENTS
MCA_crcp_STATIC_COMPONENTS
MCA_crcp_ALL_COMPONENTS
OMPI_BUILD_crcp_bkmrk_DSO_FALSE
OMPI_BUILD_crcp_bkmrk_DSO_TRUE
MCA_common_DSO_SUBDIRS
MCA_common_STATIC_SUBDIRS
MCA_common_ALL_SUBDIRS
MCA_common_STATIC_LTLIBS
MCA_common_DSO_COMPONENTS
MCA_common_STATIC_COMPONENTS
MCA_common_ALL_COMPONENTS
OMPI_BUILD_common_portals_DSO_FALSE
OMPI_BUILD_common_portals_DSO_TRUE
common_portals_LIBS
common_portals_LDFLAGS
common_portals_CPPFLAGS
OMPI_BUILD_common_mx_DSO_FALSE
OMPI_BUILD_common_mx_DSO_TRUE
common_mx_LIBS
common_mx_LDFLAGS
common_mx_CPPFLAGS
common_mx_CFLAGS
OMPI_BUILD_common_sm_DSO_FALSE
OMPI_BUILD_common_sm_DSO_TRUE
MCA_coll_DSO_SUBDIRS
MCA_coll_STATIC_SUBDIRS
MCA_coll_ALL_SUBDIRS
MCA_coll_STATIC_LTLIBS
MCA_coll_DSO_COMPONENTS
MCA_coll_STATIC_COMPONENTS
MCA_coll_ALL_COMPONENTS
OMPI_BUILD_coll_fca_DSO_FALSE
OMPI_BUILD_coll_fca_DSO_TRUE
coll_fca_HOME
coll_fca_LIBS
coll_fca_LDFLAGS
coll_fca_CPPFLAGS
coll_fca_CFLAGS
OMPI_BUILD_coll_tuned_DSO_FALSE
OMPI_BUILD_coll_tuned_DSO_TRUE
OMPI_BUILD_coll_sync_DSO_FALSE
OMPI_BUILD_coll_sync_DSO_TRUE
OMPI_BUILD_coll_sm_DSO_FALSE
OMPI_BUILD_coll_sm_DSO_TRUE
OMPI_BUILD_coll_self_DSO_FALSE
OMPI_BUILD_coll_self_DSO_TRUE
OMPI_BUILD_coll_inter_DSO_FALSE
OMPI_BUILD_coll_inter_DSO_TRUE
OMPI_BUILD_coll_hierarch_DSO_FALSE
OMPI_BUILD_coll_hierarch_DSO_TRUE
OMPI_BUILD_coll_basic_DSO_FALSE
OMPI_BUILD_coll_basic_DSO_TRUE
MCA_btl_DSO_SUBDIRS
MCA_btl_STATIC_SUBDIRS
MCA_btl_ALL_SUBDIRS
MCA_btl_STATIC_LTLIBS
MCA_btl_DSO_COMPONENTS
MCA_btl_STATIC_COMPONENTS
MCA_btl_ALL_COMPONENTS
OMPI_BUILD_btl_udapl_DSO_FALSE
OMPI_BUILD_btl_udapl_DSO_TRUE
btl_udapl_LIBS
btl_udapl_LDFLAGS
btl_udapl_CPPFLAGS
btl_udapl_CFLAGS
OMPI_BUILD_btl_tcp_DSO_FALSE
OMPI_BUILD_btl_tcp_DSO_TRUE
OMPI_BUILD_btl_sm_DSO_FALSE
OMPI_BUILD_btl_sm_DSO_TRUE
btl_sm_CPPFLAGS
OMPI_BUILD_btl_sctp_DSO_FALSE
OMPI_BUILD_btl_sctp_DSO_TRUE
btl_sctp_LIBS
btl_sctp_LDFLAGS
btl_sctp_CPPFLAGS
btl_sctp_CFLAGS
OMPI_BUILD_btl_portals_DSO_FALSE
OMPI_BUILD_btl_portals_DSO_TRUE
btl_portals_LIBS
btl_portals_LDFLAGS
btl_portals_CPPFLAGS
OMPI_BUILD_btl_openib_DSO_FALSE
OMPI_BUILD_btl_openib_DSO_TRUE
MCA_btl_openib_have_dynamic_sl_FALSE
MCA_btl_openib_have_dynamic_sl_TRUE
MCA_btl_openib_have_ibcm_FALSE
MCA_btl_openib_have_ibcm_TRUE
MCA_btl_openib_have_rdmacm_FALSE
MCA_btl_openib_have_rdmacm_TRUE
MCA_btl_openib_have_xrc_FALSE
MCA_btl_openib_have_xrc_TRUE
btl_openib_LIBS
btl_openib_LDFLAGS
btl_openib_CPPFLAGS
btl_openib_CFLAGS
MCA_btl_openib_enable_failover_FALSE
MCA_btl_openib_enable_failover_TRUE
OMPI_BUILD_btl_ofud_DSO_FALSE
OMPI_BUILD_btl_ofud_DSO_TRUE
btl_ofud_LIBS
btl_ofud_LDFLAGS
btl_ofud_CPPFLAGS
btl_ofud_CFLAGS
OMPI_BUILD_btl_mx_DSO_FALSE
OMPI_BUILD_btl_mx_DSO_TRUE
btl_mx_LIBS
btl_mx_LDFLAGS
btl_mx_CPPFLAGS
btl_mx_CFLAGS
OMPI_BUILD_btl_elan_DSO_FALSE
OMPI_BUILD_btl_elan_DSO_TRUE
btl_elan_LIBS
btl_elan_LDFLAGS
btl_elan_CPPFLAGS
btl_elan_CFLAGS
OMPI_BUILD_btl_self_DSO_FALSE
OMPI_BUILD_btl_self_DSO_TRUE
MCA_bml_DSO_SUBDIRS
MCA_bml_STATIC_SUBDIRS
MCA_bml_ALL_SUBDIRS
MCA_bml_STATIC_LTLIBS
MCA_bml_DSO_COMPONENTS
MCA_bml_STATIC_COMPONENTS
MCA_bml_ALL_COMPONENTS
OMPI_BUILD_bml_r2_DSO_FALSE
OMPI_BUILD_bml_r2_DSO_TRUE
MCA_allocator_DSO_SUBDIRS
MCA_allocator_STATIC_SUBDIRS
MCA_allocator_ALL_SUBDIRS
MCA_allocator_STATIC_LTLIBS
MCA_allocator_DSO_COMPONENTS
MCA_allocator_STATIC_COMPONENTS
MCA_allocator_ALL_COMPONENTS
OMPI_BUILD_allocator_bucket_DSO_FALSE
OMPI_BUILD_allocator_bucket_DSO_TRUE
OMPI_BUILD_allocator_basic_DSO_FALSE
OMPI_BUILD_allocator_basic_DSO_TRUE
MCA_orte_FRAMEWORK_LIBS
MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_orte_FRAMEWORKS_SUBDIRS
MCA_orte_FRAMEWORKS
MCA_snapc_DSO_SUBDIRS
MCA_snapc_STATIC_SUBDIRS
MCA_snapc_ALL_SUBDIRS
MCA_snapc_STATIC_LTLIBS
MCA_snapc_DSO_COMPONENTS
MCA_snapc_STATIC_COMPONENTS
MCA_snapc_ALL_COMPONENTS
OMPI_BUILD_snapc_full_DSO_FALSE
OMPI_BUILD_snapc_full_DSO_TRUE
MCA_routed_DSO_SUBDIRS
MCA_routed_STATIC_SUBDIRS
MCA_routed_ALL_SUBDIRS
MCA_routed_STATIC_LTLIBS
MCA_routed_DSO_COMPONENTS
MCA_routed_STATIC_COMPONENTS
MCA_routed_ALL_COMPONENTS
OMPI_BUILD_routed_slave_DSO_FALSE
OMPI_BUILD_routed_slave_DSO_TRUE
OMPI_BUILD_routed_radix_DSO_FALSE
OMPI_BUILD_routed_radix_DSO_TRUE
OMPI_BUILD_routed_linear_DSO_FALSE
OMPI_BUILD_routed_linear_DSO_TRUE
OMPI_BUILD_routed_direct_DSO_FALSE
OMPI_BUILD_routed_direct_DSO_TRUE
OMPI_BUILD_routed_cm_DSO_FALSE
OMPI_BUILD_routed_cm_DSO_TRUE
OMPI_BUILD_routed_binomial_DSO_FALSE
OMPI_BUILD_routed_binomial_DSO_TRUE
MCA_rml_DSO_SUBDIRS
MCA_rml_STATIC_SUBDIRS
MCA_rml_ALL_SUBDIRS
MCA_rml_STATIC_LTLIBS
MCA_rml_DSO_COMPONENTS
MCA_rml_STATIC_COMPONENTS
MCA_rml_ALL_COMPONENTS
OMPI_BUILD_rml_ftrm_DSO_FALSE
OMPI_BUILD_rml_ftrm_DSO_TRUE
OMPI_BUILD_rml_oob_DSO_FALSE
OMPI_BUILD_rml_oob_DSO_TRUE
MCA_rmcast_DSO_SUBDIRS
MCA_rmcast_STATIC_SUBDIRS
MCA_rmcast_ALL_SUBDIRS
MCA_rmcast_STATIC_LTLIBS
MCA_rmcast_DSO_COMPONENTS
MCA_rmcast_STATIC_COMPONENTS
MCA_rmcast_ALL_COMPONENTS
OMPI_BUILD_rmcast_udp_DSO_FALSE
OMPI_BUILD_rmcast_udp_DSO_TRUE
OMPI_BUILD_rmcast_tcp_DSO_FALSE
OMPI_BUILD_rmcast_tcp_DSO_TRUE
MCA_rmaps_DSO_SUBDIRS
MCA_rmaps_STATIC_SUBDIRS
MCA_rmaps_ALL_SUBDIRS
MCA_rmaps_STATIC_LTLIBS
MCA_rmaps_DSO_COMPONENTS
MCA_rmaps_STATIC_COMPONENTS
MCA_rmaps_ALL_COMPONENTS
OMPI_BUILD_rmaps_topo_DSO_FALSE
OMPI_BUILD_rmaps_topo_DSO_TRUE
OMPI_BUILD_rmaps_seq_DSO_FALSE
OMPI_BUILD_rmaps_seq_DSO_TRUE
OMPI_BUILD_rmaps_round_robin_DSO_FALSE
OMPI_BUILD_rmaps_round_robin_DSO_TRUE
OMPI_BUILD_rmaps_resilient_DSO_FALSE
OMPI_BUILD_rmaps_resilient_DSO_TRUE
OMPI_BUILD_rmaps_rank_file_DSO_FALSE
OMPI_BUILD_rmaps_rank_file_DSO_TRUE
OMPI_BUILD_rmaps_load_balance_DSO_FALSE
OMPI_BUILD_rmaps_load_balance_DSO_TRUE
MCA_ras_DSO_SUBDIRS
MCA_ras_STATIC_SUBDIRS
MCA_ras_ALL_SUBDIRS
MCA_ras_STATIC_LTLIBS
MCA_ras_DSO_COMPONENTS
MCA_ras_STATIC_COMPONENTS
MCA_ras_ALL_COMPONENTS
OMPI_BUILD_ras_tm_DSO_FALSE
OMPI_BUILD_ras_tm_DSO_TRUE
ras_tm_LIBS
ras_tm_LDFLAGS
ras_tm_CPPFLAGS
OMPI_BUILD_ras_slurm_DSO_FALSE
OMPI_BUILD_ras_slurm_DSO_TRUE
ras_slurm_LIBS
ras_slurm_LDFLAGS
ras_slurm_CPPFLAGS
OMPI_BUILD_ras_lsf_DSO_FALSE
OMPI_BUILD_ras_lsf_DSO_TRUE
ras_lsf_LIBS
ras_lsf_LDFLAGS
ras_lsf_CPPFLAGS
OMPI_BUILD_ras_loadleveler_DSO_FALSE
OMPI_BUILD_ras_loadleveler_DSO_TRUE
ras_loadleveler_LIBS
ras_loadleveler_LDFLAGS
ras_loadleveler_CPPFLAGS
OMPI_BUILD_ras_gridengine_DSO_FALSE
OMPI_BUILD_ras_gridengine_DSO_TRUE
QRSH
OMPI_BUILD_ras_ccp_DSO_FALSE
OMPI_BUILD_ras_ccp_DSO_TRUE
OMPI_BUILD_ras_alps_DSO_FALSE
OMPI_BUILD_ras_alps_DSO_TRUE
OMPI_BUILD_ras_cm_DSO_FALSE
OMPI_BUILD_ras_cm_DSO_TRUE
MCA_plm_DSO_SUBDIRS
MCA_plm_STATIC_SUBDIRS
MCA_plm_ALL_SUBDIRS
MCA_plm_STATIC_LTLIBS
MCA_plm_DSO_COMPONENTS
MCA_plm_STATIC_COMPONENTS
MCA_plm_ALL_COMPONENTS
OMPI_BUILD_plm_tm_DSO_FALSE
OMPI_BUILD_plm_tm_DSO_TRUE
plm_tm_LIBS
plm_tm_LDFLAGS
plm_tm_CPPFLAGS
OMPI_BUILD_plm_slurm_DSO_FALSE
OMPI_BUILD_plm_slurm_DSO_TRUE
plm_slurm_LIBS
plm_slurm_LDFLAGS
plm_slurm_CPPFLAGS
OMPI_BUILD_plm_rshd_DSO_FALSE
OMPI_BUILD_plm_rshd_DSO_TRUE
OMPI_BUILD_plm_rsh_DSO_FALSE
OMPI_BUILD_plm_rsh_DSO_TRUE
OMPI_BUILD_plm_process_DSO_FALSE
OMPI_BUILD_plm_process_DSO_TRUE
OMPI_BUILD_plm_lsf_DSO_FALSE
OMPI_BUILD_plm_lsf_DSO_TRUE
plm_lsf_LIBS
plm_lsf_LDFLAGS
plm_lsf_CPPFLAGS
OMPI_BUILD_plm_ccp_DSO_FALSE
OMPI_BUILD_plm_ccp_DSO_TRUE
OMPI_BUILD_plm_alps_DSO_FALSE
OMPI_BUILD_plm_alps_DSO_TRUE
MCA_oob_DSO_SUBDIRS
MCA_oob_STATIC_SUBDIRS
MCA_oob_ALL_SUBDIRS
MCA_oob_STATIC_LTLIBS
MCA_oob_DSO_COMPONENTS
MCA_oob_STATIC_COMPONENTS
MCA_oob_ALL_COMPONENTS
OMPI_BUILD_oob_tcp_DSO_FALSE
OMPI_BUILD_oob_tcp_DSO_TRUE
MCA_odls_DSO_SUBDIRS
MCA_odls_STATIC_SUBDIRS
MCA_odls_ALL_SUBDIRS
MCA_odls_STATIC_LTLIBS
MCA_odls_DSO_COMPONENTS
MCA_odls_STATIC_COMPONENTS
MCA_odls_ALL_COMPONENTS
OMPI_BUILD_odls_process_DSO_FALSE
OMPI_BUILD_odls_process_DSO_TRUE
OMPI_BUILD_odls_default_DSO_FALSE
OMPI_BUILD_odls_default_DSO_TRUE
MCA_notifier_DSO_SUBDIRS
MCA_notifier_STATIC_SUBDIRS
MCA_notifier_ALL_SUBDIRS
MCA_notifier_STATIC_LTLIBS
MCA_notifier_DSO_COMPONENTS
MCA_notifier_STATIC_COMPONENTS
MCA_notifier_ALL_COMPONENTS
OMPI_BUILD_notifier_syslog_DSO_FALSE
OMPI_BUILD_notifier_syslog_DSO_TRUE
OMPI_BUILD_notifier_smtp_DSO_FALSE
OMPI_BUILD_notifier_smtp_DSO_TRUE
notifier_smtp_LIBS
notifier_smtp_LDFLAGS
notifier_smtp_CPPFLAGS
notifier_smtp_CFLAGS
OMPI_BUILD_notifier_ftb_DSO_FALSE
OMPI_BUILD_notifier_ftb_DSO_TRUE
notifier_ftb_LIBS
notifier_ftb_LDFLAGS
notifier_ftb_CPPFLAGS
notifier_ftb_CFLAGS
OMPI_BUILD_notifier_command_DSO_FALSE
OMPI_BUILD_notifier_command_DSO_TRUE
MCA_iof_DSO_SUBDIRS
MCA_iof_STATIC_SUBDIRS
MCA_iof_ALL_SUBDIRS
MCA_iof_STATIC_LTLIBS
MCA_iof_DSO_COMPONENTS
MCA_iof_STATIC_COMPONENTS
MCA_iof_ALL_COMPONENTS
OMPI_BUILD_iof_tool_DSO_FALSE
OMPI_BUILD_iof_tool_DSO_TRUE
OMPI_BUILD_iof_orted_DSO_FALSE
OMPI_BUILD_iof_orted_DSO_TRUE
OMPI_BUILD_iof_hnp_DSO_FALSE
OMPI_BUILD_iof_hnp_DSO_TRUE
MCA_grpcomm_DSO_SUBDIRS
MCA_grpcomm_STATIC_SUBDIRS
MCA_grpcomm_ALL_SUBDIRS
MCA_grpcomm_STATIC_LTLIBS
MCA_grpcomm_DSO_COMPONENTS
MCA_grpcomm_STATIC_COMPONENTS
MCA_grpcomm_ALL_COMPONENTS
OMPI_BUILD_grpcomm_hier_DSO_FALSE
OMPI_BUILD_grpcomm_hier_DSO_TRUE
OMPI_BUILD_grpcomm_basic_DSO_FALSE
OMPI_BUILD_grpcomm_basic_DSO_TRUE
OMPI_BUILD_grpcomm_bad_DSO_FALSE
OMPI_BUILD_grpcomm_bad_DSO_TRUE
OMPI_BUILD_grpcomm_cnos_DSO_FALSE
OMPI_BUILD_grpcomm_cnos_DSO_TRUE
MCA_filem_DSO_SUBDIRS
MCA_filem_STATIC_SUBDIRS
MCA_filem_ALL_SUBDIRS
MCA_filem_STATIC_LTLIBS
MCA_filem_DSO_COMPONENTS
MCA_filem_STATIC_COMPONENTS
MCA_filem_ALL_COMPONENTS
OMPI_BUILD_filem_rsh_DSO_FALSE
OMPI_BUILD_filem_rsh_DSO_TRUE
MCA_ess_DSO_SUBDIRS
MCA_ess_STATIC_SUBDIRS
MCA_ess_ALL_SUBDIRS
MCA_ess_STATIC_LTLIBS
MCA_ess_DSO_COMPONENTS
MCA_ess_STATIC_COMPONENTS
MCA_ess_ALL_COMPONENTS
OMPI_BUILD_ess_tool_DSO_FALSE
OMPI_BUILD_ess_tool_DSO_TRUE
OMPI_BUILD_ess_tm_DSO_FALSE
OMPI_BUILD_ess_tm_DSO_TRUE
ess_tm_LIBS
ess_tm_LDFLAGS
ess_tm_CPPFLAGS
OMPI_BUILD_ess_slurmd_DSO_FALSE
OMPI_BUILD_ess_slurmd_DSO_TRUE
ess_slurmd_LIBS
ess_slurmd_LDFLAGS
ess_slurmd_CPPFLAGS
OMPI_BUILD_ess_slurm_DSO_FALSE
OMPI_BUILD_ess_slurm_DSO_TRUE
ess_slurm_LIBS
ess_slurm_LDFLAGS
ess_slurm_CPPFLAGS
OMPI_BUILD_ess_slave_DSO_FALSE
OMPI_BUILD_ess_slave_DSO_TRUE
OMPI_BUILD_ess_singleton_DSO_FALSE
OMPI_BUILD_ess_singleton_DSO_TRUE
OMPI_BUILD_ess_lsf_DSO_FALSE
OMPI_BUILD_ess_lsf_DSO_TRUE
ess_lsf_LIBS
ess_lsf_LDFLAGS
ess_lsf_CPPFLAGS
OMPI_BUILD_ess_hnp_DSO_FALSE
OMPI_BUILD_ess_hnp_DSO_TRUE
OMPI_BUILD_ess_env_DSO_FALSE
OMPI_BUILD_ess_env_DSO_TRUE
OMPI_BUILD_ess_alps_DSO_FALSE
OMPI_BUILD_ess_alps_DSO_TRUE
OMPI_BUILD_ess_cnos_DSO_FALSE
OMPI_BUILD_ess_cnos_DSO_TRUE
OMPI_BUILD_ess_portals_utcp_DSO_FALSE
OMPI_BUILD_ess_portals_utcp_DSO_TRUE
ess_portals_utcp_LIBS
ess_portals_utcp_LDFLAGS
ess_portals_utcp_CPPFLAGS
MCA_errmgr_DSO_SUBDIRS
MCA_errmgr_STATIC_SUBDIRS
MCA_errmgr_ALL_SUBDIRS
MCA_errmgr_STATIC_LTLIBS
MCA_errmgr_DSO_COMPONENTS
MCA_errmgr_STATIC_COMPONENTS
MCA_errmgr_ALL_COMPONENTS
OMPI_BUILD_errmgr_default_DSO_FALSE
OMPI_BUILD_errmgr_default_DSO_TRUE
MCA_debugger_DSO_SUBDIRS
MCA_debugger_STATIC_SUBDIRS
MCA_debugger_ALL_SUBDIRS
MCA_debugger_STATIC_LTLIBS
MCA_debugger_DSO_COMPONENTS
MCA_debugger_STATIC_COMPONENTS
MCA_debugger_ALL_COMPONENTS
OMPI_BUILD_debugger_mpirx_DSO_FALSE
OMPI_BUILD_debugger_mpirx_DSO_TRUE
OMPI_BUILD_debugger_mpir_DSO_FALSE
OMPI_BUILD_debugger_mpir_DSO_TRUE
MCA_opal_FRAMEWORK_LIBS
MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_opal_FRAMEWORKS_SUBDIRS
MCA_opal_FRAMEWORKS
MCA_timer_DSO_SUBDIRS
MCA_timer_STATIC_SUBDIRS
MCA_timer_ALL_SUBDIRS
MCA_timer_STATIC_LTLIBS
MCA_timer_DSO_COMPONENTS
MCA_timer_STATIC_COMPONENTS
MCA_timer_ALL_COMPONENTS
OMPI_BUILD_timer_linux_DSO_FALSE
OMPI_BUILD_timer_linux_DSO_TRUE
OMPI_BUILD_timer_windows_DSO_FALSE
OMPI_BUILD_timer_windows_DSO_TRUE
OMPI_BUILD_timer_solaris_DSO_FALSE
OMPI_BUILD_timer_solaris_DSO_TRUE
OMPI_BUILD_timer_darwin_DSO_FALSE
OMPI_BUILD_timer_darwin_DSO_TRUE
OMPI_BUILD_timer_altix_DSO_FALSE
OMPI_BUILD_timer_altix_DSO_TRUE
OMPI_BUILD_timer_aix_DSO_FALSE
OMPI_BUILD_timer_aix_DSO_TRUE
timer_aix_LIBS
OMPI_BUILD_timer_catamount_DSO_FALSE
OMPI_BUILD_timer_catamount_DSO_TRUE
MCA_sysinfo_DSO_SUBDIRS
MCA_sysinfo_STATIC_SUBDIRS
MCA_sysinfo_ALL_SUBDIRS
MCA_sysinfo_STATIC_LTLIBS
MCA_sysinfo_DSO_COMPONENTS
MCA_sysinfo_STATIC_COMPONENTS
MCA_sysinfo_ALL_COMPONENTS
OMPI_BUILD_sysinfo_darwin_DSO_FALSE
OMPI_BUILD_sysinfo_darwin_DSO_TRUE
OMPI_BUILD_sysinfo_solaris_DSO_FALSE
OMPI_BUILD_sysinfo_solaris_DSO_TRUE
sysinfo_solaris_LIBS
sysinfo_solaris_LDFLAGS
sysinfo_solaris_CPPFLAGS
sysinfo_solaris_CFLAGS
OMPI_BUILD_sysinfo_linux_DSO_FALSE
OMPI_BUILD_sysinfo_linux_DSO_TRUE
MCA_pstat_DSO_SUBDIRS
MCA_pstat_STATIC_SUBDIRS
MCA_pstat_ALL_SUBDIRS
MCA_pstat_STATIC_LTLIBS
MCA_pstat_DSO_COMPONENTS
MCA_pstat_STATIC_COMPONENTS
MCA_pstat_ALL_COMPONENTS
OMPI_BUILD_pstat_darwin_DSO_FALSE
OMPI_BUILD_pstat_darwin_DSO_TRUE
OMPI_BUILD_pstat_linux_DSO_FALSE
OMPI_BUILD_pstat_linux_DSO_TRUE
MCA_paffinity_DSO_SUBDIRS
MCA_paffinity_STATIC_SUBDIRS
MCA_paffinity_ALL_SUBDIRS
MCA_paffinity_STATIC_LTLIBS
MCA_paffinity_DSO_COMPONENTS
MCA_paffinity_STATIC_COMPONENTS
MCA_paffinity_ALL_COMPONENTS
OMPI_BUILD_paffinity_test_DSO_FALSE
OMPI_BUILD_paffinity_test_DSO_TRUE
OMPI_BUILD_paffinity_hwloc_DSO_FALSE
OMPI_BUILD_paffinity_hwloc_DSO_TRUE
HWLOC_BUILD_TESTS_FALSE
HWLOC_BUILD_TESTS_TRUE
HWLOC_BUILD_UTILS_FALSE
HWLOC_BUILD_UTILS_TRUE
HWLOC_HAVE_CPUID_FALSE
HWLOC_HAVE_CPUID_TRUE
HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_FALSE
HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_TRUE
HWLOC_HAVE_X86_64_FALSE
HWLOC_HAVE_X86_64_TRUE
HWLOC_HAVE_X86_32_FALSE
HWLOC_HAVE_X86_32_TRUE
HWLOC_HAVE_MINGW32_FALSE
HWLOC_HAVE_MINGW32_TRUE
HWLOC_HAVE_WINDOWS_FALSE
HWLOC_HAVE_WINDOWS_TRUE
HWLOC_HAVE_HPUX_FALSE
HWLOC_HAVE_HPUX_TRUE
HWLOC_HAVE_OSF_FALSE
HWLOC_HAVE_OSF_TRUE
HWLOC_HAVE_AIX_FALSE
HWLOC_HAVE_AIX_TRUE
HWLOC_HAVE_SOLARIS_FALSE
HWLOC_HAVE_SOLARIS_TRUE
HWLOC_HAVE_FREEBSD_FALSE
HWLOC_HAVE_FREEBSD_TRUE
HWLOC_HAVE_DARWIN_FALSE
HWLOC_HAVE_DARWIN_TRUE
HWLOC_HAVE_IRIX_FALSE
HWLOC_HAVE_IRIX_TRUE
HWLOC_HAVE_LINUX_FALSE
HWLOC_HAVE_LINUX_TRUE
HWLOC_INSTALL_DOXYGEN_FALSE
HWLOC_INSTALL_DOXYGEN_TRUE
HWLOC_BUILD_README_FALSE
HWLOC_BUILD_README_TRUE
HWLOC_BUILD_DOXYGEN_FALSE
HWLOC_BUILD_DOXYGEN_TRUE
HWLOC_HAVE_BUNZIPP_FALSE
HWLOC_HAVE_BUNZIPP_TRUE
HWLOC_HAVE_MBIND_FALSE
HWLOC_HAVE_MBIND_TRUE
HWLOC_HAVE_SET_MEMPOLICY_FALSE
HWLOC_HAVE_SET_MEMPOLICY_TRUE
HWLOC_HAVE_XML_FALSE
HWLOC_HAVE_XML_TRUE
HWLOC_HAVE_CAIRO_FALSE
HWLOC_HAVE_CAIRO_TRUE
HWLOC_HAVE_CUDART_FALSE
HWLOC_HAVE_CUDART_TRUE
HWLOC_HAVE_MYRIEXPRESS_FALSE
HWLOC_HAVE_MYRIEXPRESS_TRUE
HWLOC_HAVE_CUDA_FALSE
HWLOC_HAVE_CUDA_TRUE
HWLOC_HAVE_LIBIBVERBS_FALSE
HWLOC_HAVE_LIBIBVERBS_TRUE
HWLOC_HAVE_SCHED_SETAFFINITY_FALSE
HWLOC_HAVE_SCHED_SETAFFINITY_TRUE
HWLOC_HAVE_LINUX_LIBNUMA_FALSE
HWLOC_HAVE_LINUX_LIBNUMA_TRUE
HWLOC_HAVE_OPENAT_FALSE
HWLOC_HAVE_OPENAT_TRUE
HWLOC_HAVE_MS_LIB_FALSE
HWLOC_HAVE_MS_LIB_TRUE
HWLOC_HAVE_GCC_FALSE
HWLOC_HAVE_GCC_TRUE
HWLOC_BUILD_STANDALONE_FALSE
HWLOC_BUILD_STANDALONE_TRUE
OPAL_PAFFINITY_HWLOC_INTERNAL_FALSE
OPAL_PAFFINITY_HWLOC_INTERNAL_TRUE
paffinity_hwloc_LIBS
paffinity_hwloc_LDFLAGS
paffinity_hwloc_CPPFLAGS
paffinity_hwloc_CFLAGS
HWLOC_EMBEDDED_LIBS
HWLOC_EMBEDDED_LDADD
HWLOC_EMBEDDED_CPPFLAGS
HWLOC_EMBEDDED_CFLAGS
HWLOC_LIBS
HWLOC_LDFLAGS
HWLOC_CPPFLAGS
HWLOC_CFLAGS
HWLOC_REQUIRES
HWLOC_HAVE_XML
HWLOC_XML_LIBS
HWLOC_XML_CFLAGS
HWLOC_LINUX_LIBNUMA_LIBS
BASH
HWLOC_MS_LIB
HWLOC_KERRIGHED_LIBS
HWLOC_KERRIGHED_CFLAGS
HWLOC_PKG_CONFIG
HWLOC_top_srcdir
HWLOC_top_builddir
MCA_memory_DSO_SUBDIRS
MCA_memory_STATIC_SUBDIRS
MCA_memory_ALL_SUBDIRS
MCA_memory_STATIC_LTLIBS
MCA_memory_DSO_COMPONENTS
MCA_memory_STATIC_COMPONENTS
MCA_memory_ALL_COMPONENTS
OMPI_BUILD_memory_malloc_solaris_DSO_FALSE
OMPI_BUILD_memory_malloc_solaris_DSO_TRUE
memory_malloc_solaris_LIBS
OMPI_BUILD_memory_linux_DSO_FALSE
OMPI_BUILD_memory_linux_DSO_TRUE
memory_linux_LIBS
MEMORY_LINUX_UMMUNOTIFY_FALSE
MEMORY_LINUX_UMMUNOTIFY_TRUE
MEMORY_LINUX_PTMALLOC2_FALSE
MEMORY_LINUX_PTMALLOC2_TRUE
MCA_memcpy_DSO_SUBDIRS
MCA_memcpy_STATIC_SUBDIRS
MCA_memcpy_ALL_SUBDIRS
MCA_memcpy_STATIC_LTLIBS
MCA_memcpy_DSO_COMPONENTS
MCA_memcpy_STATIC_COMPONENTS
MCA_memcpy_ALL_COMPONENTS
MCA_memchecker_DSO_SUBDIRS
MCA_memchecker_STATIC_SUBDIRS
MCA_memchecker_ALL_SUBDIRS
MCA_memchecker_STATIC_LTLIBS
MCA_memchecker_DSO_COMPONENTS
MCA_memchecker_STATIC_COMPONENTS
MCA_memchecker_ALL_COMPONENTS
OMPI_BUILD_memchecker_valgrind_DSO_FALSE
OMPI_BUILD_memchecker_valgrind_DSO_TRUE
opal_memchecker_valgrind_CPPFLAGS
OMPI_WANT_MEMCHECKER_FALSE
OMPI_WANT_MEMCHECKER_TRUE
MCA_maffinity_DSO_SUBDIRS
MCA_maffinity_STATIC_SUBDIRS
MCA_maffinity_ALL_SUBDIRS
MCA_maffinity_STATIC_LTLIBS
MCA_maffinity_DSO_COMPONENTS
MCA_maffinity_STATIC_COMPONENTS
MCA_maffinity_ALL_COMPONENTS
OMPI_BUILD_maffinity_libnuma_DSO_FALSE
OMPI_BUILD_maffinity_libnuma_DSO_TRUE
maffinity_libnuma_LIBS
maffinity_libnuma_LDFLAGS
maffinity_libnuma_CPPFLAGS
maffinity_libnuma_CFLAGS
OMPI_BUILD_maffinity_first_use_DSO_FALSE
OMPI_BUILD_maffinity_first_use_DSO_TRUE
MCA_installdirs_DSO_SUBDIRS
MCA_installdirs_STATIC_SUBDIRS
MCA_installdirs_ALL_SUBDIRS
MCA_installdirs_STATIC_LTLIBS
MCA_installdirs_DSO_COMPONENTS
MCA_installdirs_STATIC_COMPONENTS
MCA_installdirs_ALL_COMPONENTS
OMPI_BUILD_installdirs_windows_DSO_FALSE
OMPI_BUILD_installdirs_windows_DSO_TRUE
OMPI_BUILD_installdirs_config_DSO_FALSE
OMPI_BUILD_installdirs_config_DSO_TRUE
OMPI_BUILD_installdirs_env_DSO_FALSE
OMPI_BUILD_installdirs_env_DSO_TRUE
MCA_crs_DSO_SUBDIRS
MCA_crs_STATIC_SUBDIRS
MCA_crs_ALL_SUBDIRS
MCA_crs_STATIC_LTLIBS
MCA_crs_DSO_COMPONENTS
MCA_crs_STATIC_COMPONENTS
MCA_crs_ALL_COMPONENTS
OMPI_BUILD_crs_self_DSO_FALSE
OMPI_BUILD_crs_self_DSO_TRUE
OMPI_BUILD_crs_blcr_DSO_FALSE
OMPI_BUILD_crs_blcr_DSO_TRUE
crs_blcr_LIBS
crs_blcr_LDFLAGS
crs_blcr_CPPFLAGS
crs_blcr_CFLAGS
crs_blcr_WRAPPER_EXTRA_CPPFLAGS
crs_blcr_WRAPPER_EXTRA_LIBS
crs_blcr_WRAPPER_EXTRA_LDFLAGS
OMPI_BUILD_crs_none_DSO_FALSE
OMPI_BUILD_crs_none_DSO_TRUE
MCA_carto_DSO_SUBDIRS
MCA_carto_STATIC_SUBDIRS
MCA_carto_ALL_SUBDIRS
MCA_carto_STATIC_LTLIBS
MCA_carto_DSO_COMPONENTS
MCA_carto_STATIC_COMPONENTS
MCA_carto_ALL_COMPONENTS
OMPI_BUILD_carto_file_DSO_FALSE
OMPI_BUILD_carto_file_DSO_TRUE
OMPI_BUILD_carto_auto_detect_DSO_FALSE
OMPI_BUILD_carto_auto_detect_DSO_TRUE
MCA_backtrace_DSO_SUBDIRS
MCA_backtrace_STATIC_SUBDIRS
MCA_backtrace_ALL_SUBDIRS
MCA_backtrace_STATIC_LTLIBS
MCA_backtrace_DSO_COMPONENTS
MCA_backtrace_STATIC_COMPONENTS
MCA_backtrace_ALL_COMPONENTS
OMPI_BUILD_backtrace_none_DSO_FALSE
OMPI_BUILD_backtrace_none_DSO_TRUE
OMPI_BUILD_backtrace_darwin_DSO_FALSE
OMPI_BUILD_backtrace_darwin_DSO_TRUE
backtrace_darwin_CFLAGS
OMPI_BUILD_backtrace_printstack_DSO_FALSE
OMPI_BUILD_backtrace_printstack_DSO_TRUE
OMPI_BUILD_backtrace_execinfo_DSO_FALSE
OMPI_BUILD_backtrace_execinfo_DSO_TRUE
CASE_SENSITIVE_FS_FALSE
CASE_SENSITIVE_FS_TRUE
LEXLIB
LEX_OUTPUT_ROOT
LEX
LN_S
WANT_FT_THREAD_FALSE
WANT_FT_THREAD_TRUE
OPAL_HAVE_SOLARIS_THREADS_FALSE
OPAL_HAVE_SOLARIS_THREADS_TRUE
OPAL_HAVE_POSIX_THREADS_FALSE
OPAL_HAVE_POSIX_THREADS_TRUE
OMPI_MPI_OFFSET_KIND
OMPI_MPI_ADDRESS_KIND
OMPI_MPI_INTEGER_KIND
OMPI_F90_CKINDS
OMPI_F90_RKINDS
OMPI_F90_IKINDS
OMPI_SIZEOF_F90_DOUBLE_COMPLEX
OMPI_SIZEOF_F90_COMPLEX32
OMPI_SIZEOF_F90_COMPLEX16
OMPI_SIZEOF_F90_COMPLEX8
OMPI_SIZEOF_F90_COMPLEX
OMPI_SIZEOF_F90_DOUBLE_PRECISION
OMPI_SIZEOF_F90_REAL16
OMPI_SIZEOF_F90_REAL8
OMPI_SIZEOF_F90_REAL4
OMPI_SIZEOF_F90_REAL2
OMPI_SIZEOF_F90_REAL
OMPI_SIZEOF_F90_INTEGER16
OMPI_SIZEOF_F90_INTEGER8
OMPI_SIZEOF_F90_INTEGER4
OMPI_SIZEOF_F90_INTEGER2
OMPI_SIZEOF_F90_INTEGER1
OMPI_SIZEOF_F90_INTEGER
OMPI_SIZEOF_F90_LOGICAL8
OMPI_SIZEOF_F90_LOGICAL4
OMPI_SIZEOF_F90_LOGICAL2
OMPI_SIZEOF_F90_LOGICAL1
OMPI_SIZEOF_F90_LOGICAL
OMPI_SIZEOF_F90_CHARACTER
OMPI_FC_MODULE_FLAG
OMPI_F90_ABSOLUTE
OMPI_WANT_F90_BINDINGS_FALSE
OMPI_WANT_F90_BINDINGS_TRUE
FCFLAGS_f90
FCFLAGS_f
OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS
ac_ct_FC
FCFLAGS
FC
WANT_PMPI_F77_BINDINGS_LAYER_FALSE
WANT_PMPI_F77_BINDINGS_LAYER_TRUE
WANT_MPI_F77_BINDINGS_LAYER_FALSE
WANT_MPI_F77_BINDINGS_LAYER_TRUE
OMPI_FORTRAN_STATUS_SIZE
OMPI_F77_ABSOLUTE
OMPI_WANT_F77_BINDINGS_FALSE
OMPI_WANT_F77_BINDINGS_TRUE
ac_ct_F77
FFLAGS
F77
OMPI_ASM_FILE
OPAL_HAVE_ASM_FILE_FALSE
OPAL_HAVE_ASM_FILE_TRUE
PERL
FGREP
OPAL_ASSEMBLY_ARCH
OPAL_ASSEMBLY_FORMAT
OPAL_ASM_SUPPORT_64BIT
OPAL_ASM_TYPE
OPAL_ASM_LSYM
NM
ac_ct_DUMPBIN
DUMPBIN
OPAL_ASM_GSYM
OMPI_AS_LABEL_SUFFIX
OBJDUMP
OMPI_AS_GLOBAL
OPAL_ASM_TEXT
am__fastdepCCAS_FALSE
am__fastdepCCAS_TRUE
CCASDEPMODE
CCASFLAGS
CCAS
WANT_MPI_CXX_BINDINGS_FALSE
WANT_MPI_CXX_BINDINGS_TRUE
OMPI_CXX_ABSOLUTE
OPAL_CXX_ABSOLUTE
CXXCPP
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
COMPILE_PROFILING_SEPARATELY_FALSE
COMPILE_PROFILING_SEPARATELY_TRUE
WANT_PMPI_BINDINGS_LAYER_FALSE
WANT_PMPI_BINDINGS_LAYER_TRUE
WANT_MPI_BINDINGS_LAYER_FALSE
WANT_MPI_BINDINGS_LAYER_TRUE
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE
OPAL_CC_ABSOLUTE
OMPI_FORTRAN_MAX_ARRAY_RANK
MPIF_H_PMPI_W_FUNCS
OMPI_F90_BUILD_SIZE
OMPI_WANT_BUILD_F90_LARGE_FALSE
OMPI_WANT_BUILD_F90_LARGE_TRUE
OMPI_WANT_BUILD_F90_MEDIUM_FALSE
OMPI_WANT_BUILD_F90_MEDIUM_TRUE
OMPI_WANT_BUILD_F90_SMALL_FALSE
OMPI_WANT_BUILD_F90_SMALL_TRUE
OMPI_WANT_BUILD_F90_TRIVIAL_FALSE
OMPI_WANT_BUILD_F90_TRIVIAL_TRUE
WANT_PERUSE_FALSE
WANT_PERUSE_TRUE
ORTE_DISABLE_FULL_SUPPORT_FALSE
ORTE_DISABLE_FULL_SUPPORT_TRUE
OPAL_MAX_DATAREP_STRING
OPAL_MAX_PORT_NAME
OPAL_MAX_INFO_VAL
OPAL_MAX_INFO_KEY
OPAL_MAX_OBJECT_NAME
OPAL_MAX_ERROR_STRING
OPAL_MAX_PROCESSOR_NAME
OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE
OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE
OMPI_INSTALL_BINARIES_FALSE
OMPI_INSTALL_BINARIES_TRUE
WANT_FT_FALSE
WANT_FT_TRUE
WANT_INSTALL_HEADERS_FALSE
WANT_INSTALL_HEADERS_TRUE
top_ompi_builddir
top_ompi_srcdir
ac_prefix_program
CLEANFILES
OMPI_TOP_SRCDIR
OMPI_TOP_BUILDDIR
libopen_pal_so_version
libopen_rte_so_version
libmca_common_portals_so_version
libmca_common_mx_so_version
libmca_common_sm_so_version
libmpi_f90_so_version
libmpi_f77_so_version
libmpi_cxx_so_version
libmpi_so_version
OPAL_RELEASE_DATE
OPAL_VERSION
OPAL_SVN_R
OPAL_WANT_SVN
OPAL_GREEK_VERSION
OPAL_RELEASE_VERSION
OPAL_MINOR_VERSION
OPAL_MAJOR_VERSION
ORTE_RELEASE_DATE
ORTE_VERSION
ORTE_SVN_R
ORTE_WANT_SVN
ORTE_GREEK_VERSION
ORTE_RELEASE_VERSION
ORTE_MINOR_VERSION
ORTE_MAJOR_VERSION
OMPI_RELEASE_DATE
OMPI_VERSION
OMPI_SVN_R
OMPI_WANT_SVN
OMPI_GREEK_VERSION
OMPI_RELEASE_VERSION
OMPI_MINOR_VERSION
OMPI_MAJOR_VERSION
PROJECT_ORTE_FALSE
PROJECT_ORTE_TRUE
PROJECT_OMPI_FALSE
PROJECT_OMPI_TRUE
CONFIGURE_DEPENDENCIES
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
OPAL_PARAM_FROM_PLATFORM
OPAL_DEFAULT_MCA_PARAM_CONF
EGREP
GREP
CPP
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
target_os
target_vendor
target_cpu
target
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
OMPI_CONFIGURE_DATE
OMPI_CONFIGURE_HOST
OMPI_CONFIGURE_USER
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_platform
enable_dependency_tracking
enable_silent_rules
enable_dist
enable_coverage
enable_branch_probabilities
enable_mem_debug
enable_mem_profile
enable_picky
enable_debug
enable_debug_symbols
with_devel_headers
enable_pretty_print_stacktrace
enable_pty_support
enable_weak_symbols
enable_dlopen
enable_heterogeneous
enable_trace
with_cross
with_ft
enable_binaries
enable_script_wrapper_compilers
enable_per_user_config_files
enable_ipv6
with_package_string
with_ident_string
with_dst_checksum
with_max_processor_name
with_max_error_string
with_max_object_name
with_max_info_key
with_max_info_val
with_max_port_name
with_max_datarep_string
with_libltdl
with_rte_support
enable_orterun_prefix_by_default
enable_mpirun_prefix_by_default
enable_multicast
enable_mpi_interface_warning
enable_sparse_groups
enable_peruse
enable_mpi_f77
enable_mpi_f90
with_mpi_f90_size
enable_mpi_profile
enable_mpi_cxx
enable_mpi_cxx_seek
with_mpi_param_check
with_f90_max_array_dim
enable_shared
enable_static
with_wrapper_cflags
with_wrapper_cxxflags
with_wrapper_ldflags
with_wrapper_libs
with_wrapper_fflags
with_wrapper_fcflags
enable_cxx_exceptions
with_exflags
enable_smp_locks
with_broken_qsort
with_threads
enable_opal_multi_threads
enable_ft_thread
enable_mpi_thread_multiple
with_cs_fs
enable_mca_no_build
enable_mca_dso
enable_mca_static
enable_mca_direct
with_blcr
with_blcr_libdir
with_libnuma
with_libnuma_libdir
enable_memchecker
with_valgrind
with_memory_manager
with_hwloc
with_hwloc_libdir
enable_visibility
with_libpicl
with_libpicl_libdir
with_timer
with_portals
with_portals_libs
with_alps
with_lsf
with_lsf_libdir
with_slurm
with_tm
with_ftb
with_ftb_libdir
with_esmtp
with_esmtp_libdir
with_sge
with_loadleveler
with_elan
with_elan_libdir
with_mx
with_mx_libdir
with_openib
with_openib_libdir
enable_openib_control_hdr_padding
enable_openib_connectx_xrc
enable_openib_rdmacm
enable_openib_dynamic_sl
enable_btl_openib_failover
with_portals_config
with_sctp
with_sctp_libdir
with_knem
with_udapl
with_udapl_libdir
with_fca
enable_mpi_io
enable_io_romio
with_io_romio_flags
with_pcie
with_mxm
with_mxm_libdir
with_psm
with_psm_libdir
enable_mpi_ext
enable_contrib_no_build
enable_libompitrace
enable_vt
with_contrib_vt_flags
with_event_rtsig
with_pic
enable_fast_install
with_gnu_ld
enable_libtool_lock
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
CXXCPP
CCAS
CCASFLAGS
F77
FFLAGS
FC
FCFLAGS
HWLOC_PKG_CONFIG
HWLOC_KERRIGHED_CFLAGS
HWLOC_KERRIGHED_LIBS
HWLOC_MS_LIB
HWLOC_XML_CFLAGS
HWLOC_XML_LIBS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information."
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures Open MPI 1.5.4 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmpi]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of Open MPI 1.5.4:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --enable-dist           guarantee that that the "dist" make target will be
                          functional, although may not guarantee that any
                          other make target will be functional.
  --enable-coverage       enable code coverage files to be generated
  --enable-branch-probabilities
                          enable profile arcs and branch probability
                          optimization
  --enable-mem-debug      enable memory debugging (debugging only) (default:
                          disabled)
  --enable-mem-profile    enable memory profiling (debugging only) (default:
                          disabled)
  --enable-picky          enable developer-level compiler pickyness when
                          building Open MPI (default: disabled)
  --enable-debug          enable developer-level debugging code (not for
                          general MPI users!) (default: disabled)
  --disable-debug-symbols Disable adding compiler flags to enable debugging
                          symbols if --enable-debug is specified. For
                          non-debugging builds, this flag has no effect.
  --enable-pretty-print-stacktrace
                          Pretty print stacktrace on process signal (default:
                          enabled)
  --enable-pty-support    Enable/disable PTY support for STDIO forwarding.
                          (default: enabled)
  --enable-weak-symbols   use weak symbols, if available (default: enabled)
  --enable-dlopen         Whether build should attempt to use dlopen (or
                          similar) to dynamically load components. Disabling
                          dlopen implies --disable-mca-dso. (default: enabled)
  --enable-heterogeneous  Enable features required for heterogeneous platform
                          support (default: disabled)
  --enable-trace          Enable internal tracing of OMPI/ORTE/OPAL calls --
                          used only for developer debugging, not tracing of
                          MPI applications (default: disabled)
  --enable-binaries       Build and install binaries required for Open MPI,
                          such as the wrapper compilers. Useful for multi-lib
                          installations. (default: enabled)
  --enable-script-wrapper-compilers
                          Use less featured script-based wrapper compilers
                          instead of the standard C-based wrapper compilers.
                          This option ignores the --disable-binaries option
                          and is mainly useful in cross-compile environments
  --enable-per-user-config-files
                          Disable per-user configuration files, to save disk
                          accesses during job strart-up. This is likely
                          desirable for large jobs. Note that this can also be
                          acheived by environment variables at run-time.
                          (default: enabled)
  --enable-ipv6           Enable IPv6 support, but only if the underlying
                          system supports it (default: disabled)
  --enable-orterun-prefix-by-default
                          Make "orterun ..." behave exactly the same as
                          "orterun --prefix \$prefix" (where \$prefix is the
                          value given to --prefix in configure)
  --enable-mpirun-prefix-by-default
                          Synonym for --enable-orterun-prefix-by-default
  --enable-multicast      Enable reliable multicast messaging (default:
                          disabled)
  --enable-mpi-interface-warning
                          enable warnings in wrong (e.g. deprecated) usage in
                          user-level code (default: disabled)
  --enable-sparse-groups  enable sparse process groups (default: not enabled)
  --enable-peruse         enable PERUSE interface (default: disabled)
  --enable-mpi-f77        enable f77 MPI bindings (default: enabled)
  --enable-mpi-f90        enable f90 MPI bindings (default: enabled)
  --enable-mpi-profile    enable MPI profiling (default: enabled)
  --enable-mpi-cxx        enable C++ MPI bindings (default: enabled)
  --enable-mpi-cxx-seek   enable support for MPI::SEEK_SET, MPI::SEEK_END, and
                          MPI::SEEK_POS in C++ bindings (default: enabled)
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=no]
  --enable-cxx-exceptions enable support for C++ exceptions (default:
                          disabled)
  --enable-smp-locks      enable smp locks in atomic ops. Do not disable if
                          code will ever run in SMP or multi-threaded
                          environment. (default: enabled)
  --enable-opal-multi-threads
                          Enable thread support inside OPAL (default:
                          disabled)
  --disable-ft-thread     Disable fault tolerance thread running inside all
                          processes. Requires progress and/or MPI threads
                          (default: enabled)
  --enable-mpi-thread-multiple
                          Enable MPI_THREAD_MULTIPLE support (default:
                          disabled)
  --enable-mca-no-build=LIST
                          Comma-separated list of <type>-<component> pairs
                          that will not be built. Example:
                          "--enable-mca-no-build=maffinity,btl-portals" will
                          disable building all maffinity components and the
                          "portals" btl components.
  --enable-mca-dso=LIST   Comma-separated list of types and/or type-component
                          pairs that will be built as run-time loadable
                          components (as opposed to statically linked in), if
                          supported on this platform. The default is to build
                          all components as DSOs.
  --enable-mca-static=LIST
                          Comma-separated list of types and/or type-component
                          pairs that will be built statically linked into the
                          library. The default (if DSOs are supported) is to
                          build all components as DSOs. Enabling a component
                          as static disables it building as a DSO.
  --enable-mca-direct=LIST
                          Comma-separated list of type-component pairs that
                          will be hard coded as the one component to use for a
                          given component type, saving the (small) overhead of
                          the component architecture. LIST must not be empty
                          and implies given component pairs are build as
                          static components.
  --enable-memchecker     Enable memory and buffer checks. Note that disabling
                          will *also* add "memchecker" to the
                          --enable-mca-no-build list (default: disabled)
  --enable-visibility     enable visibility feature of certain
                          compilers/linkers (default: enabled)
  --enable-openib-control-hdr-padding
                          Add padding bytes to the openib control header
                          (default:disabled)
  --enable-openib-connectx-xrc
                          Enable ConnectX XRC support. If you do not have
                          InfiniBand ConnectX adapters, you may disable the
                          ConnectX XRC support. If you do not know which
                          InfiniBand adapter is installed on your cluster,
                          leave this option enabled (default: enabled)
  --enable-openib-rdmacm  Enable Open Fabrics RDMACM support in openib BTL
                          (default: enabled)
  --enable-openib-dynamic-sl
                          Enable openib BTL to query Subnet Manager for IB SL
                          (default: enabled)
  --enable-btl-openib-failover
                          enable openib BTL failover (default: disabled)
  --disable-mpi-io        Disable built-in support for MPI-2 I/O, likely
                          because an externally-provided MPI I/O package will
                          be used. Default is to use the internal component
                          system and its specially modified version of ROMIO
  --disable-io-romio      Disable the ROMIO MPI-IO component
  --enable-mpi-ext=LIST   Comma-separated list of extensions that should be
                          built (default: none).
  --enable-contrib-no-build=LIST
                          Comma-separated list of contributed package NAMEs
                          that will not be built. Possible values:
                          libompitrace, vt. Example:
                          "--enable-contrib-no-build=libompitrace,vt" will
                          disable building both the "libompitrace" and "vt"
                          contributed software packages.
  --disable-libompitrace  disable support for contributed package libompitrace
                          (default: enabled)
  --disable-vt            disable support for contributed package vt (default:
                          enabled)
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-platform=FILE    Load options for build from FILE. Options on the
                          command line not in FILE are used. Options on the
                          command line and in FILE are replaced by what is in
                          FILE.
  --with-devel-headers    normal MPI users/applications do not need this
                          (mpi.h and mpif.h are ALWAYS installed). Developer
                          headers are only necessary for MCA module authors
                          (default: disabled).
  --with-cross=FILE       Specify configure values that can not be determined
                          in a cross-compilation environment. See the Open MPI
                          FAQ.
  --with-ft=TYPE          Specify the type of fault tolerance to enable.
                          Options: LAM (LAM/MPI-like), cr (Checkpoint/Restart)
                          (default: disabled)
  --with-package-string=STRING
                          Use a branding string throughout Open MPI
  --with-ident-string=STRING
                          Embed an ident string into Open MPI object files
  --with-dst-checksum     Use an alternative checksum algorithm for messages
  --with-max-processor-name=VALUE
                          maximum length of processor names. VALUE argument
                          has to be specified (default: [256]).
  --with-max-error-string=VALUE
                          maximum length of error strings. VALUE argument has
                          to be specified (default: [256]).
  --with-max-object-name=VALUE
                          maximum length of object names. VALUE argument has
                          to be specified (default: [64]).
  --with-max-info-key=VALUE
                          maximum length of info keys. VALUE argument has to
                          be specified (default: [36]).
  --with-max-info-val=VALUE
                          maximum length of info vals. VALUE argument has to
                          be specified (default: [256]).
  --with-max-port-name=VALUE
                          maximum length of port names. VALUE argument has to
                          be specified (default: [1024]).
  --with-max-datarep-string=VALUE
                          maximum length of datarep strings. VALUE argument
                          has to be specified (default: [128]).
  --with-libltdl(=DIR)    Where to find libltdl (this option is ignored if
                          --disable-dlopen is used). DIR can take one of three
                          values: "internal", "external", or a valid directory
                          name. "internal" (or no DIR value) forces Open MPI
                          to use its internal copy of libltdl. "external"
                          forces Open MPI to use an external installation of
                          libltdl. Supplying a valid directory name also
                          forces Open MPI to use an external installation of
                          libltdl, and adds DIR/include, DIR/lib, and
                          DIR/lib64 to the search path for headers and
                          libraries.
  --without-rte-support   Build without RTE support for systems that do not
                          require it (default: full RTE support built)
  --with-mpi-f90-size=SIZE
                          specify the types of functions in the Fortran 90 MPI
                          module, where SIZE is one of: trivial (MPI-2
                          F90-specific functions only), small (trivial + all
                          MPI functions without choice buffers), medium (small
                          + all MPI functions with one choice buffer), large
                          (medium + all MPI functions with 2 choice buffers,
                          but only when both buffers are the same type).
                          Default SIZE is "small".
  --with-mpi-param-check(=VALUE)
                          behavior of MPI function parameter checking. Valid
                          values are: always, never, runtime. If
                          --with-mpi-param-check is specified with no VALUE
                          argument, it is equivalent to a VALUE of "always";
                          --without-mpi-param-check is equivalent to "never"
                          (default: runtime).
  --with-f90-max-array-dim=<DIM>
                          The maximum array dimension supported in the F90 MPI
                          bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK).
  --with-wrapper-cflags   Extra flags to add to CFLAGS when using mpicc
  --with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using
                          mpiCC/mpic++
  --with-wrapper-ldflags  Extra flags to add to LDFLAGS when using wrapper
                          compilers
  --with-wrapper-libs     Extra flags to add to LIBS when using wrapper
                          compilers
  --with-wrapper-fflags   Extra flags to add to FFLAGS when using mpif77
  --with-wrapper-fcflags  Extra flags to add to FCFLAGS when using mpif90
  --with-exflags          Specify flags necessary to enable C++ exceptions
  --with-broken-qsort     Build with FreeBSD qsort instead of native qsort
                          (default: no)
  --with-threads          Set thread type (solaris / posix)
  --with-cs-fs            Destination FS is case sensitive (default: set to
                          value of the build FS's case sensitivity)
  --with-blcr(=DIR)       Path to BLCR Installation
  --with-blcr-libdir=DIR  Search for BLCR libraries in DIR
  --with-libnuma(=DIR)    Build libnuma support, optionally adding
                          DIR/include, DIR/lib, and DIR/lib64 to the search
                          path for headers and libraries
  --with-libnuma-libdir=DIR
                          Search for the libnuma libraries in DIR
  --with-valgrind(=DIR)   Directory where the valgrind software is installed
  --with-memory-manager=TYPE
                          Use TYPE for intercepting memory management calls to
                          control memory pinning.
  --with-hwloc(=DIR)      Build hwloc support. DIR can take one of three
                          values: "internal", "external", or a valid directory
                          name. "internal" (or no DIR value) forces Open MPI
                          to use its internal copy of hwloc. "external" forces
                          Open MPI to use an external installation of hwloc.
                          Supplying a valid directory name also forces Open
                          MPI to use an external installation of hwloc, and
                          adds DIR/include, DIR/lib, and DIR/lib64 to the
                          search path for headers and libraries.
  --with-hwloc-libdir=DIR Search for hwloc libraries in DIR. Should only be
                          used if an external copy of hwloc is being used.
  --with-libpicl(=DIR)    Build libpicl support, optionally adding
                          DIR/include, DIR/lib, and DIR/lib64 to the search
                          path for headers and libraries
  --with-libpicl-libdir=DIR
                          Search for the libpicl libraries in DIR
  --with-timer=TYPE       Build high resolution timer component TYPE
  --with-portals=DIR      Specify the installation directory of PORTALS
  --with-portals-libs=LIBS
                          Libraries to link with for portals
  --with-alps             Build ALPS scheduler component (default: no)
  --with-lsf(=DIR)        Build LSF support
  --with-lsf-libdir=DIR   Search for LSF libraries in DIR
  --with-slurm            Build SLURM scheduler component (default: yes)
  --with-tm(=DIR)         Build TM (Torque, PBSPro, and compatible) support,
                          optionally adding DIR/include, DIR/lib, and
                          DIR/lib64 to the search path for headers and
                          libraries
  --with-ftb(=DIR)        Build FTB (Fault Tolerance Backplane) support,
                          searching for libraries in DIR
  --with-ftb-libdir=DIR   Search for FTB (Fault Tolerance Backplane) libraries
                          in DIR
  --with-esmtp(=DIR)      Build esmtp support, optionally adding DIR/include,
                          DIR/lib, and DIR/lib64 to the search path for
                          headers and libraries
  --with-esmtp-libdir=DIR Search for the esmtp libraries in DIR
  --with-sge              Build SGE or Grid Engine support (default: no)
  --with-loadleveler      Build LoadLeveler scheduler component (default: yes)
  --with-elan(=DIR)       Build Elan (QsNet2) support, searching for libraries
                          in DIR
  --with-elan-libdir=DIR  Search for Elan (QsNet2) libraries in DIR
  --with-mx(=DIR)         Build MX (Myrinet Express) support, optionally
                          adding DIR/include, DIR/lib, and DIR/lib64 to the
                          search path for headers and libraries
  --with-mx-libdir=DIR    Search for MX (Myrinet Express) libraries in DIR
  --with-openib(=DIR)     Build OpenFabrics support, optionally adding
                          DIR/include, DIR/lib, and DIR/lib64 to the search
                          path for headers and libraries
  --with-openib-libdir=DIR
                          Search for OpenFabrics libraries in DIR
  --with-portals(=DIR)    Build Portals support, optionally adding
                          DIR/include, DIR/lib, and DIR/lib64 to the search
                          path for headers and libraries
  --with-portals-config   configuration to use for Portals support. One of
                          "utcp", "xt3", "xt3-modex". (default: utcp)
  --with-portals-libs=LIBS
                          Libraries to link with for portals
  --with-sctp(=DIR)       Build SCTP support, searching for libraries in DIR
  --with-sctp-libdir=DIR  Search for SCTP libraries in DIR
  --with-knem(=DIR)       Build knem Linux kernel module support, searching
                          for headers in DIR
  --with-udapl(=DIR)      Build uDAPL support, optionally adding DIR/include,
                          DIR/lib, and DIR/lib64 to the search path for
                          headers and libraries
  --with-udapl-libdir=DIR Search for uDAPL libraries in DIR
  --with-fca(=DIR)        Build fca (Mellanox Fabric Collective Accelerator)
                          support, searching for libraries in DIR
  --with-io-romio-flags=FLAGS
                          Pass FLAGS to the ROMIO distribution configuration
                          script
  --with-pcie(=DIR)       Build PCIE (Axon) support, optionally adding DIR to
                          the compiler search path. Specifically, the test
                          will add -IDIR to the compiler command line, and
                          will attempt to compile #include
                          <linux/axon_ioctl.h>.
  --with-mxm(=DIR)        Build Mellanox Messaging support
  --with-mxm-libdir=DIR   Search for Mellanox Messaging libraries in DIR
  --with-psm(=DIR)        Build PSM (Qlogic InfiniPath) support, optionally
                          adding DIR/include, DIR/lib, and DIR/lib64 to the
                          search path for headers and libraries
  --with-psm-libdir=DIR   Search for PSM (QLogic InfiniPath PSM) libraries in
                          DIR
  --with-contrib-vt-flags=FLAGS
                          Pass FLAGS to the VampirTrace distribution
                          configuration script
  --with-event-rtsig      compile with support for real time signals
                          (experimental)
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  CCAS        assembler compiler command (defaults to CC)
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
  FC          Fortran compiler command
  FCFLAGS     Fortran compiler flags
  HWLOC_PKG_CONFIG
              path to pkg-config utility
  HWLOC_KERRIGHED_CFLAGS
              C compiler flags for KERRIGHED, overriding pkg-config
  HWLOC_KERRIGHED_LIBS
              linker flags for KERRIGHED, overriding pkg-config
  HWLOC_MS_LIB
              Path to Microsoft's Visual Studio `lib' tool
  HWLOC_XML_CFLAGS
              C compiler flags for XML, overriding pkg-config
  HWLOC_XML_LIBS
              linker flags for XML, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <http://www.open-mpi.org/community/help/>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
Open MPI configure 1.5.4
generated by GNU Autoconf 2.65

Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_cxx_try_run LINENO
# ------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_cxx_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_run

# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
# ----------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_cxx_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_compute_int

# ac_fn_f77_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_f77_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_f77_try_compile

# ac_fn_f77_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_f77_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_f77_try_link

# ac_fn_f77_try_run LINENO
# ------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_f77_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_f77_try_run

# ac_fn_fc_try_compile LINENO
# ---------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_fc_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_compile

# ac_fn_fc_try_link LINENO
# ------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_fc_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_link

# ac_fn_fc_try_run LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_fc_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_run

# ac_fn_c_check_decl LINENO SYMBOL VAR
# ------------------------------------
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
$as_echo_n "checking whether $2 is declared... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $2
  (void) $2;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_decl

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_member

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_func
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Open MPI $as_me 1.5.4, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_aux_dir=
for ac_dir in config "$srcdir"/config; do
  for ac_t in install-sh install.sh shtool; do
    if test -f "$ac_dir/$ac_t"; then
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/$ac_t -c"
      break 2
    fi
  done
done
if test -z "$ac_aux_dir"; then
  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.




#
# Start it up
#



# Some helper script functions.  Unfortunately, we cannot use  kinds
# of arugments here because of the m4 substitution.  So we have to set
# special variable names before invoking the function.  :-\

ompi_show_title() {
  cat <<EOF

============================================================================
== ${1}
============================================================================
EOF
}


ompi_show_subtitle() {
  cat <<EOF

*** ${1}
EOF
}


ompi_show_subsubtitle() {
  cat <<EOF

+++ ${1}
EOF
}

ompi_show_subsubsubtitle() {
  cat <<EOF

--- ${1}
EOF
}

#
# Save some stats about this build
#

OMPI_CONFIGURE_USER="`whoami`"
OMPI_CONFIGURE_HOST="`hostname | head -n 1`"
OMPI_CONFIGURE_DATE="`date`"

#
# Save these details so that they can be used in ompi_info later
#



ompi_show_title "Configuring Open MPI"

#
# Setup some things that must be done before AM-INIT-AUTOMAKE
#

ompi_show_subtitle "Startup tests"
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if test "${ac_cv_build+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if test "${ac_cv_host+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
$as_echo_n "checking target system type... " >&6; }
if test "${ac_cv_target+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$target_alias" = x; then
  ac_cv_target=$ac_cv_host
else
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
$as_echo "$ac_cv_target" >&6; }
case $ac_cv_target in
*-*-*) ;;
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
esac
target=$ac_cv_target
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_target
shift
target_cpu=$1
target_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
target_os=$*
IFS=$ac_save_IFS
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac


# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-

cat >>confdefs.h <<_ACEOF
#define OPAL_ARCH "$target"
_ACEOF

if test "$host" != "$target"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compile detected" >&5
$as_echo "$as_me: WARNING: Cross-compile detected" >&2;}
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling is only partially supported" >&5
$as_echo "$as_me: WARNING: Cross-compiling is only partially supported" >&2;}
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Proceed at your own risk!" >&5
$as_echo "$as_me: WARNING: Proceed at your own risk!" >&2;}
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of object files: cannot compile
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  MINIX=yes
else
  MINIX=
fi


  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#	  define __EXTENSIONS__ 1
	  $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h



# Get our platform support file.  This has to be done very, very early
# because it twiddles random bits of autoconf


# Check whether --with-platform was given.
if test "${with_platform+set}" = set; then :
  withval=$with_platform;
fi

    if test "$with_platform" = "yes" ; then
        as_fn_error "--with-platform argument must include FILE option" "$LINENO" 5
    elif test "$with_platform" = "no" ; then
        as_fn_error "--without-platform is not a valid argument" "$LINENO" 5
    elif test "$with_platform" != "" ; then
        # if no path part, check in contrib/platform
        if test "`basename $with_platform`" = "$with_platform" ; then
            if test -r "${srcdir}/contrib/platform/$with_platform" ; then
                with_platform="${srcdir}/contrib/platform/$with_platform"
            fi
        fi

        # make sure file exists
        if test ! -r "$with_platform" ; then
            as_fn_error "platform file $with_platform not found" "$LINENO" 5
        fi

        # eval into environment

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:6328: Loading environment file $with_platform, with contents below" >&5
else
    echo Loading environment file $with_platform, with contents below >&5
fi

# 1 is the filename
if test -n "$with_platform" -a -f "$with_platform"; then
    cat $with_platform >&5
fi
        . "$with_platform"

        # see if they left us a name
        if test "$OMPI_PLATFORM_LOADED" != "" ; then
           platform_loaded="$OMPI_PLATFORM_LOADED"
        else
           platform_loaded="$with_platform"
        fi
        echo "Loaded platform arguments for $platform_loaded"

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:6350: Loaded platform arguments for $platform_loaded" >&5
else
    echo Loaded platform arguments for $platform_loaded >&5
fi

        # look for default mca param file

        # setup by getting full pathname for the platform directories
        platform_base="`dirname $with_platform`"
        # get full pathname of where we are so we can return
        platform_savedir="`pwd`"
        # go to where the platform file is located
        cd "$platform_base"
        # get the full path to this location
        platform_file_dir=`pwd`
        # return to where we started
        cd "$platform_savedir"

        # define an alternate default mca param filename
        platform_alt_mca_file="`basename $platform_loaded`.conf"

        # look where platform file is located for platform.conf name
        if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then
            OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/$platform_alt_mca_file

            OPAL_PARAM_FROM_PLATFORM="yes"

        # if not, see if a file is there with the default name
        elif test -r "${platform_file_dir}/openmpi-mca-params.conf" ; then
            OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/openmpi-mca-params.conf

            OPAL_PARAM_FROM_PLATFORM="yes"

        # if not, then just use the default
        else
            OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf

            OPAL_PARAM_FROM_PLATFORM="no"

        fi

    else
        OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf

    fi


#
# Init automake
#
am__api_version='1.11'

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='openmpi'
 VERSION='1.5.4'


# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
$as_echo_n "checking how to create a ustar tar archive... " >&6; }
# Loop over all known methods to create a tar archive until one works.
_am_tools='gnutar plaintar pax cpio none'
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
# Do not fold the above two line into one, because Tru64 sh and
# Solaris sh will not grok spaces in the rhs of `-'.
for _am_tool in $_am_tools
do
  case $_am_tool in
  gnutar)
    for _am_tar in tar gnutar gtar;
    do
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
   ($_am_tar --version) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } && break
    done
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
    am__untar="$_am_tar -xf -"
    ;;
  plaintar)
    # Must skip GNU tar: if it does not support --format= it doesn't create
    # ustar tarball either.
    (tar --version) >/dev/null 2>&1 && continue
    am__tar='tar chf - "$$tardir"'
    am__tar_='tar chf - "$tardir"'
    am__untar='tar xf -'
    ;;
  pax)
    am__tar='pax -L -x ustar -w "$$tardir"'
    am__tar_='pax -L -x ustar -w "$tardir"'
    am__untar='pax -r'
    ;;
  cpio)
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
    am__untar='cpio -i -H ustar -d'
    ;;
  none)
    am__tar=false
    am__tar_=false
    am__untar=false
    ;;
  esac

  # If the value was cached, stop now.  We just wanted to have am__tar
  # and am__untar set.
  test -n "${am_cv_prog_tar_ustar}" && break

  # tar/untar a dummy directory, and stop if the command works
  rm -rf conftest.dir
  mkdir conftest.dir
  echo GrepMe > conftest.dir/file
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
  rm -rf conftest.dir
  if test -s conftest.tar; then
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
   ($am__untar <conftest.tar) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  fi
done
rm -rf conftest.dir

if test "${am_cv_prog_tar_ustar+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  am_cv_prog_tar_ustar=$_am_tool
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
$as_echo "$am_cv_prog_tar_ustar" >&6; }




depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi




# If Automake supports silent rules, enable them.
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


# Make configure depend on the VERSION file, since it's used in AC_INIT
CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'


# Set up project specific AM_CONDITIONALs
 if true; then
  PROJECT_OMPI_TRUE=
  PROJECT_OMPI_FALSE='#'
else
  PROJECT_OMPI_TRUE='#'
  PROJECT_OMPI_FALSE=
fi

 if true; then
  PROJECT_ORTE_TRUE=
  PROJECT_ORTE_FALSE='#'
else
  PROJECT_ORTE_TRUE='#'
  PROJECT_ORTE_FALSE=
fi


ompi_show_subtitle "Checking versions"

# Get the version of OMPI that we are installing



    : ${ompi_ver_need_svn=1}
    : ${svnversion_result=-1}

        if test -f "$srcdir/VERSION"; then
        srcdir=`dirname $srcdir/VERSION`
        ompi_vers=`sed -n "
	t clear
	: clear
	s/^major/OMPI_MAJOR_VERSION/
	s/^minor/OMPI_MINOR_VERSION/
	s/^release/OMPI_RELEASE_VERSION/
	s/^greek/OMPI_GREEK_VERSION/
	s/^want_svn/OMPI_WANT_SVN/
	s/^svn_r/OMPI_SVN_R/
	s/^date/OMPI_RELEASE_DATE/
	t print
	b
	: print
	p" < "$srcdir/VERSION"`
	eval "$ompi_vers"

        # Only print release version if it isn't 0
        if test $OMPI_RELEASE_VERSION -ne 0 ; then
            OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION.$OMPI_RELEASE_VERSION"
        else
            OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION"
        fi
        OMPI_VERSION="${OMPI_VERSION}${OMPI_GREEK_VERSION}"
        OMPI_BASE_VERSION=$OMPI_VERSION

        if test $OMPI_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
            if test "$svnversion_result" != "-1" ; then
                OMPI_SVN_R=$svnversion_result
            fi
            if test "$OMPI_SVN_R" = "-1" ; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVN version" >&5
$as_echo_n "checking for SVN version... " >&6; }
                d=`date '+%m-%d-%Y'`
                if test -d "$srcdir/.svn" ; then
                    OMPI_SVN_R=r`svnversion "$srcdir"`
                    if test $? != 0; then
                        # The following is too long for Fortran
                        # OMPI_SVN_R="unknown svn version (svnversion not found); $d"
                        OMPI_SVN_R="? (no svnversion); $d"
                    fi
                elif test -d "$srcdir/.hg" ; then
                    # Check to see if we can find the hg command
                    # remember that $? reflects the status of the
                    # *last* command in a pipe change, so if "hg ..
                    # cut ..." runs and "hg" is not found, $? will
                    # reflect the status of "cut", not hg not being
                    # found.  So test for hg specifically first.
                    hg --version > /dev/null 2>&1
                    if test $? = 0; then
                        OMPI_SVN_R=hg`hg -v -R "$srcdir" tip | grep ^changeset: | head -n 1 | cut -d: -f3`
                    else
                        # The following is too long for Fortran
                        # OMPI_SVN_R="unknown hg version (hg not found); $d"
                        OMPI_SVN_R="? (no hg); $d"
                    fi
                fi
                if test "OMPI_SVN_R" = ""; then
                    OMPI_SVN_R="svn$d"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
            fi
            OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}"
        fi
    fi











    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open MPI version" >&5
$as_echo_n "checking Open MPI version... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_VERSION" >&5
$as_echo "$OMPI_VERSION" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open MPI release date" >&5
$as_echo_n "checking Open MPI release date... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_RELEASE_DATE" >&5
$as_echo "$OMPI_RELEASE_DATE" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open MPI Subversion repository version" >&5
$as_echo_n "checking Open MPI Subversion repository version... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_SVN_R" >&5
$as_echo "$OMPI_SVN_R" >&6; }


cat >>confdefs.h <<_ACEOF
#define OMPI_MAJOR_VERSION $OMPI_MAJOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_MINOR_VERSION $OMPI_MINOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_RELEASE_VERSION $OMPI_RELEASE_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_GREEK_VERSION "$OMPI_GREEK_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_VERSION "$OMPI_RELEASE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_RELEASE_DATE "$OMPI_RELEASE_DATE"
_ACEOF


    ac_config_files="$ac_config_files ompi/include/ompi/version.h"





    : ${ompi_ver_need_svn=1}
    : ${svnversion_result=-1}

        if test -f "$srcdir/VERSION"; then
        srcdir=`dirname $srcdir/VERSION`
        ompi_vers=`sed -n "
	t clear
	: clear
	s/^major/ORTE_MAJOR_VERSION/
	s/^minor/ORTE_MINOR_VERSION/
	s/^release/ORTE_RELEASE_VERSION/
	s/^greek/ORTE_GREEK_VERSION/
	s/^want_svn/ORTE_WANT_SVN/
	s/^svn_r/ORTE_SVN_R/
	s/^date/ORTE_RELEASE_DATE/
	t print
	b
	: print
	p" < "$srcdir/VERSION"`
	eval "$ompi_vers"

        # Only print release version if it isn't 0
        if test $ORTE_RELEASE_VERSION -ne 0 ; then
            ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_RELEASE_VERSION"
        else
            ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION"
        fi
        ORTE_VERSION="${ORTE_VERSION}${ORTE_GREEK_VERSION}"
        ORTE_BASE_VERSION=$ORTE_VERSION

        if test $ORTE_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
            if test "$svnversion_result" != "-1" ; then
                ORTE_SVN_R=$svnversion_result
            fi
            if test "$ORTE_SVN_R" = "-1" ; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVN version" >&5
$as_echo_n "checking for SVN version... " >&6; }
                d=`date '+%m-%d-%Y'`
                if test -d "$srcdir/.svn" ; then
                    ORTE_SVN_R=r`svnversion "$srcdir"`
                    if test $? != 0; then
                        # The following is too long for Fortran
                        # ORTE_SVN_R="unknown svn version (svnversion not found); $d"
                        ORTE_SVN_R="? (no svnversion); $d"
                    fi
                elif test -d "$srcdir/.hg" ; then
                    # Check to see if we can find the hg command
                    # remember that $? reflects the status of the
                    # *last* command in a pipe change, so if "hg ..
                    # cut ..." runs and "hg" is not found, $? will
                    # reflect the status of "cut", not hg not being
                    # found.  So test for hg specifically first.
                    hg --version > /dev/null 2>&1
                    if test $? = 0; then
                        ORTE_SVN_R=hg`hg -v -R "$srcdir" tip | grep ^changeset: | head -n 1 | cut -d: -f3`
                    else
                        # The following is too long for Fortran
                        # ORTE_SVN_R="unknown hg version (hg not found); $d"
                        ORTE_SVN_R="? (no hg); $d"
                    fi
                fi
                if test "ORTE_SVN_R" = ""; then
                    ORTE_SVN_R="svn$d"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
            fi
            ORTE_VERSION="${ORTE_VERSION}${ORTE_SVN_R}"
        fi
    fi











    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open MPI Run-Time Environment version" >&5
$as_echo_n "checking Open MPI Run-Time Environment version... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_VERSION" >&5
$as_echo "$ORTE_VERSION" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open MPI Run-Time Environment release date" >&5
$as_echo_n "checking Open MPI Run-Time Environment release date... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_RELEASE_DATE" >&5
$as_echo "$ORTE_RELEASE_DATE" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open MPI Run-Time Environment Subversion repository version" >&5
$as_echo_n "checking Open MPI Run-Time Environment Subversion repository version... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_SVN_R" >&5
$as_echo "$ORTE_SVN_R" >&6; }


cat >>confdefs.h <<_ACEOF
#define ORTE_MAJOR_VERSION $ORTE_MAJOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ORTE_MINOR_VERSION $ORTE_MINOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ORTE_RELEASE_VERSION $ORTE_RELEASE_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ORTE_GREEK_VERSION "$ORTE_GREEK_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ORTE_VERSION "$ORTE_RELEASE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ORTE_RELEASE_DATE "$ORTE_RELEASE_DATE"
_ACEOF


    ac_config_files="$ac_config_files orte/include/orte/version.h"





    : ${ompi_ver_need_svn=1}
    : ${svnversion_result=-1}

        if test -f "$srcdir/VERSION"; then
        srcdir=`dirname $srcdir/VERSION`
        ompi_vers=`sed -n "
	t clear
	: clear
	s/^major/OPAL_MAJOR_VERSION/
	s/^minor/OPAL_MINOR_VERSION/
	s/^release/OPAL_RELEASE_VERSION/
	s/^greek/OPAL_GREEK_VERSION/
	s/^want_svn/OPAL_WANT_SVN/
	s/^svn_r/OPAL_SVN_R/
	s/^date/OPAL_RELEASE_DATE/
	t print
	b
	: print
	p" < "$srcdir/VERSION"`
	eval "$ompi_vers"

        # Only print release version if it isn't 0
        if test $OPAL_RELEASE_VERSION -ne 0 ; then
            OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION.$OPAL_RELEASE_VERSION"
        else
            OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION"
        fi
        OPAL_VERSION="${OPAL_VERSION}${OPAL_GREEK_VERSION}"
        OPAL_BASE_VERSION=$OPAL_VERSION

        if test $OPAL_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
            if test "$svnversion_result" != "-1" ; then
                OPAL_SVN_R=$svnversion_result
            fi
            if test "$OPAL_SVN_R" = "-1" ; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVN version" >&5
$as_echo_n "checking for SVN version... " >&6; }
                d=`date '+%m-%d-%Y'`
                if test -d "$srcdir/.svn" ; then
                    OPAL_SVN_R=r`svnversion "$srcdir"`
                    if test $? != 0; then
                        # The following is too long for Fortran
                        # OPAL_SVN_R="unknown svn version (svnversion not found); $d"
                        OPAL_SVN_R="? (no svnversion); $d"
                    fi
                elif test -d "$srcdir/.hg" ; then
                    # Check to see if we can find the hg command
                    # remember that $? reflects the status of the
                    # *last* command in a pipe change, so if "hg ..
                    # cut ..." runs and "hg" is not found, $? will
                    # reflect the status of "cut", not hg not being
                    # found.  So test for hg specifically first.
                    hg --version > /dev/null 2>&1
                    if test $? = 0; then
                        OPAL_SVN_R=hg`hg -v -R "$srcdir" tip | grep ^changeset: | head -n 1 | cut -d: -f3`
                    else
                        # The following is too long for Fortran
                        # OPAL_SVN_R="unknown hg version (hg not found); $d"
                        OPAL_SVN_R="? (no hg); $d"
                    fi
                fi
                if test "OPAL_SVN_R" = ""; then
                    OPAL_SVN_R="svn$d"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
            fi
            OPAL_VERSION="${OPAL_VERSION}${OPAL_SVN_R}"
        fi
    fi











    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open Portable Access Layer version" >&5
$as_echo_n "checking Open Portable Access Layer version... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_VERSION" >&5
$as_echo "$OPAL_VERSION" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open Portable Access Layer release date" >&5
$as_echo_n "checking Open Portable Access Layer release date... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_RELEASE_DATE" >&5
$as_echo "$OPAL_RELEASE_DATE" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Open Portable Access Layer Subversion repository version" >&5
$as_echo_n "checking Open Portable Access Layer Subversion repository version... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_SVN_R" >&5
$as_echo "$OPAL_SVN_R" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_MAJOR_VERSION $OPAL_MAJOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_MINOR_VERSION $OPAL_MINOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_RELEASE_VERSION $OPAL_RELEASE_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_GREEK_VERSION "$OPAL_GREEK_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_VERSION "$OPAL_RELEASE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_RELEASE_DATE "$OPAL_RELEASE_DATE"
_ACEOF


    ac_config_files="$ac_config_files opal/include/opal/version.h"



# Get shared library version numbers

. $srcdir/VERSION




          # It's icky that we have to hard-code the names of the
          # common components here.  :-( This could probably be done
          # transparently by adding some intelligence in autogen.sh
          # and/or ompi_mca.m4, but I don't have the cycles to do this
          # right now.






#
# Hardwire OPAL progress threads to be off
#
OPAL_ENABLE_PROGRESS_THREADS=0
enable_progress_threads="no"

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_PROGRESS_THREADS $OPAL_ENABLE_PROGRESS_THREADS
_ACEOF



# List header files to generate

ac_config_headers="$ac_config_headers opal/include/opal_config.h"

ac_config_headers="$ac_config_headers orte/include/orte_config.h"

ac_config_headers="$ac_config_headers ompi/include/ompi_config.h ompi/include/mpi.h ompi/include/mpi_portable_platform.h"


# override/fixup the version numbers set by AC_INIT, since on
# developer builds, there's no good way to know what the version is
# before running configure :(.  We only use the base version number
# (ie, no svn r numbers) for the version set in AC_INIT.  This will
# always match reality because we add the VERSION file (the only way
# to change the major.minor.release{greek}) into the configure
# dependencies.  PACKAGE_VERSION the AC_DEFINE doesn't change once set
# the first time -- AC_INIT's input (so it doesn't have an r number in
# it).  PACKAGE_VERSION the AC_SUBST can be rewritten along the way,
# and we'd like it to have the r number in it so that it shows up in
# the tarball name, so it is set to the full version here.
PACKAGE_VERSION="$OPAL_VERSION"
PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}"
VERSION="${PACKAGE_VERSION}"

ompi_show_subtitle "Initialization, setup"

OMPI_TOP_BUILDDIR="`pwd`"

cd "$srcdir"
OMPI_TOP_SRCDIR="`pwd`"

cd "$OMPI_TOP_BUILDDIR"

{ $as_echo "$as_me:${as_lineno-$LINENO}: builddir: $OMPI_TOP_BUILDDIR" >&5
$as_echo "$as_me: builddir: $OMPI_TOP_BUILDDIR" >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: srcdir: $OMPI_TOP_SRCDIR" >&5
$as_echo "$as_me: srcdir: $OMPI_TOP_SRCDIR" >&6;}
if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
$as_echo "$as_me: Detected VPATH build" >&6;}
fi

# Setup the top of the opal/include/opal_config.h file




# Other basic setup stuff (shared with components)


#
# Save some stats about this build
#

OMPI_CONFIGURE_USER="`whoami`"
OMPI_CONFIGURE_HOST="`hostname | head -n 1`"
OMPI_CONFIGURE_DATE="`date`"

#
# Make automake clean emacs ~ files for "make clean"
#

CLEANFILES="*~ .\#*"


#
# See if we can find an old installation of OMPI to overwrite
#

# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if ompi_clean
# is not found in the path and the user did not specify --prefix,
# we'll get a $prefix of "."

ompi_prefix_save="$prefix"
if test "x$prefix" = xNONE; then
  $as_echo_n "checking for prefix by " >&6
  # Extract the first word of "ompi_clean", so it can be a program name with args.
set dummy ompi_clean; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_prefix_program+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_prefix_program in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_prefix_program=$ac_cv_path_ac_prefix_program
if test -n "$ac_prefix_program"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
$as_echo "$ac_prefix_program" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test -n "$ac_prefix_program"; then
    prefix=`$as_dirname -- "$ac_prefix_program" ||
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
	 X"$ac_prefix_program" : 'X\(//\)$' \| \
	 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_prefix_program" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    prefix=`$as_dirname -- "$prefix" ||
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$prefix" : 'X\(//\)[^/]' \| \
	 X"$prefix" : 'X\(//\)$' \| \
	 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$prefix" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  fi
fi

if test "$prefix" = "."; then
    prefix="$ompi_prefix_save"
fi
unset ompi_prefix_save

#
# Basic sanity checking; we can't install to a relative path
#

case "$prefix" in
  /*/bin)
    prefix="`dirname $prefix`"
    echo installing to directory \"$prefix\"
    ;;
  /*)
    echo installing to directory \"$prefix\"
    ;;
  NONE)
    echo installing to directory \"$ac_default_prefix\"
    ;;
  [a-zA-Z]:*)
    echo installing to directory \"$prefix\"
    ;;
  *)
    as_fn_error "prefix \"$prefix\" must be an absolute directory path" "$LINENO" 5
    ;;
esac

# Allow the --enable-dist flag to be passed in

# Check whether --enable-dist was given.
if test "${enable_dist+set}" = set; then :
  enableval=$enable_dist; OMPI_WANT_DIST=yes
else
  OMPI_WANT_DIST=no
fi


if test "$OMPI_WANT_DIST" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring in 'make dist' mode" >&5
$as_echo "$as_me: WARNING: Configuring in 'make dist' mode" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most make targets may be non-functional!" >&5
$as_echo "$as_me: WARNING: Most make targets may be non-functional!" >&2;}
fi

# BEGIN: Derived from GASNet

# Suggestion from Paul Hargrove to disable --program-prefix and
# friends.  Heavily influenced by GASNet 1.12 acinclude.m4
# functionality to do the same thing (copyright listed at top of this
# file).

# echo program_prefix=$program_prefix  program_suffix=$program_suffix program_transform_name=$program_transform_name
# undo prefix autoconf automatically adds during cross-compilation
if test "$cross_compiling" = yes && test "$program_prefix" = "${target_alias}-" ; then
    program_prefix=NONE
fi
# normalize empty prefix/suffix
if test -z "$program_prefix" ; then
    program_prefix=NONE
fi
if test -z "$program_suffix" ; then
    program_suffix=NONE
fi
# undo transforms caused by empty prefix/suffix
if expr "$program_transform_name" : 's.^..$' >/dev/null || \
   expr "$program_transform_name" : 's.$$..$' >/dev/null || \
   expr "$program_transform_name" : 's.$$..;s.^..$' >/dev/null ; then
    program_transform_name="s,x,x,"
fi
if test "$program_prefix$program_suffix$program_transform_name" != "NONENONEs,x,x," ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The Open MPI configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." >&5
$as_echo "$as_me: WARNING: *** The Open MPI configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." >&2;}
    as_fn_error "*** Cannot continue" "$LINENO" 5
fi

# END: Derived from GASNet


top_ompi_srcdir="$OMPI_TOP_SRCDIR"

top_ompi_builddir="$OMPI_TOP_BUILDDIR"


############################################################################
# Configuration options
############################################################################


ompi_show_subtitle "OPAL Configuration options"


#
# Is this a developer copy?
#

if test -d .svn -o -d .hg; then
    OMPI_DEVEL=1
else
    OMPI_DEVEL=0
fi


#
# Code coverage options
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to run code coverage" >&5
$as_echo_n "checking if want to run code coverage... " >&6; }
# Check whether --enable-coverage was given.
if test "${enable_coverage+set}" = set; then :
  enableval=$enable_coverage;
fi

if test "$enable_coverage" = "yes"; then
    if test "$enable_shared" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Code coverage can run only with static libraries. Please
run configure with --enable-static --disable-shared if
you want code coverage. Also ensure that you execute
make clean too ensure removal of all leftover shared
mpi libraries" >&5
$as_echo "$as_me: WARNING: Code coverage can run only with static libraries. Please
run configure with --enable-static --disable-shared if
you want code coverage. Also ensure that you execute
make clean too ensure removal of all leftover shared
mpi libraries" >&2;}
        as_fn_error "Cannot continue processing" "$LINENO" 5
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_COVERAGE=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_COVERAGE=0
fi


#
# Branch Probabilities options
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to compile with branch probabilities" >&5
$as_echo_n "checking if want to compile with branch probabilities... " >&6; }
# Check whether --enable-branch-probabilities was given.
if test "${enable_branch_probabilities+set}" = set; then :
  enableval=$enable_branch_probabilities;
fi

if test "$enable_branch_probabilities" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_BRANCH_PROBABILITIES=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_BRANCH_PROBABILITIES=0
fi


#
# Memory debugging
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to debug memory usage" >&5
$as_echo_n "checking if want to debug memory usage... " >&6; }
# Check whether --enable-mem-debug was given.
if test "${enable_mem_debug+set}" = set; then :
  enableval=$enable_mem_debug;
fi

if test "$enable_mem_debug" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MEM_DEBUG=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_MEM_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a "$OMPI_DEVEL" = 1; then
    WANT_MEM_DEBUG=1
    echo "--> developer override: enable mem profiling by default"
fi
#################### Early development override ####################

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_MEM_DEBUG $WANT_MEM_DEBUG
_ACEOF


#
# Memory profiling
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to profile memory usage" >&5
$as_echo_n "checking if want to profile memory usage... " >&6; }
# Check whether --enable-mem-profile was given.
if test "${enable_mem_profile+set}" = set; then :
  enableval=$enable_mem_profile;
fi

if test "$enable_mem_profile" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MEM_PROFILE=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_MEM_PROFILE=0
fi
#################### Early development override ####################
if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a "$OMPI_DEVEL" = 1; then
    WANT_MEM_PROFILE=1
    echo "--> developer override: enable mem profiling by default"
fi
#################### Early development override ####################

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_MEM_PROFILE $WANT_MEM_PROFILE
_ACEOF


#
# Developer picky compiler options
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level compiler pickyness" >&5
$as_echo_n "checking if want developer-level compiler pickyness... " >&6; }
# Check whether --enable-picky was given.
if test "${enable_picky+set}" = set; then :
  enableval=$enable_picky;
fi

if test "$enable_picky" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_PICKY_COMPILER=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_PICKY_COMPILER=0
fi
#################### Early development override ####################
if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a "$OMPI_DEVEL" = 1; then
    WANT_PICKY_COMPILER=1
    echo "--> developer override: enable picky compiler by default"
fi
#################### Early development override ####################

#
# Developer debugging
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level debugging code" >&5
$as_echo_n "checking if want developer-level debugging code... " >&6; }
# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then :
  enableval=$enable_debug;
fi

if test "$enable_debug" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_DEBUG=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a "$OMPI_DEVEL" = 1; then
    WANT_DEBUG=1
    echo "--> developer override: enable debugging code by default"
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0"; then
    CFLAGS="-DNDEBUG $CFLAGS"
    CXXFLAGS="-DNDEBUG $CXXFLAGS"
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_DEBUG $WANT_DEBUG
_ACEOF


# Check whether --enable-debug-symbols was given.
if test "${enable_debug_symbols+set}" = set; then :
  enableval=$enable_debug_symbols;
fi


#
# Do we want to install all of OPAL/ORTE and OMPI's header files?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to install project-internal header files" >&5
$as_echo_n "checking if want to install project-internal header files... " >&6; }

# Check whether --with-devel-headers was given.
if test "${with_devel_headers+set}" = set; then :
  withval=$with_devel_headers;
fi

if test "$with_devel_headers" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_INSTALL_HEADERS=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_INSTALL_HEADERS=0
fi
 if test "$WANT_INSTALL_HEADERS" = 1; then
  WANT_INSTALL_HEADERS_TRUE=
  WANT_INSTALL_HEADERS_FALSE='#'
else
  WANT_INSTALL_HEADERS_TRUE='#'
  WANT_INSTALL_HEADERS_FALSE=
fi



#
# Do we want the pretty-print stack trace feature?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pretty-print stacktrace" >&5
$as_echo_n "checking if want pretty-print stacktrace... " >&6; }
# Check whether --enable-pretty-print-stacktrace was given.
if test "${enable_pretty_print_stacktrace+set}" = set; then :
  enableval=$enable_pretty_print_stacktrace;
fi

if test "$enable_pretty_print_stacktrace" = "no" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_PRETTY_PRINT_STACKTRACE=0
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_PRETTY_PRINT_STACKTRACE=1
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE
_ACEOF



#
# Do we want PTY support?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pty support" >&5
$as_echo_n "checking if want pty support... " >&6; }
# Check whether --enable-pty-support was given.
if test "${enable_pty_support+set}" = set; then :
  enableval=$enable_pty_support;
fi

if test "$enable_pty_support" = "no" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    OPAL_ENABLE_PTY_SUPPORT=0
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    OPAL_ENABLE_PTY_SUPPORT=1
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_PTY_SUPPORT $OPAL_ENABLE_PTY_SUPPORT
_ACEOF



#
# Do we want to disable weak symbols for some reason?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want weak symbol support" >&5
$as_echo_n "checking if want weak symbol support... " >&6; }
# Check whether --enable-weak-symbols was given.
if test "${enable_weak_symbols+set}" = set; then :
  enableval=$enable_weak_symbols;
fi

if test "$enable_weak_symbols" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_WEAK_SYMBOLS=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_WEAK_SYMBOLS=0
fi


#
# Do we want to allow DLOPEN?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want dlopen support" >&5
$as_echo_n "checking if want dlopen support... " >&6; }
# Check whether --enable-dlopen was given.
if test "${enable_dlopen+set}" = set; then :
  enableval=$enable_dlopen;
fi

if test "$enable_dlopen" = "no" ; then
    enable_mca_dso="no"
    enable_mca_static="yes"
    OPAL_ENABLE_DLOPEN_SUPPORT=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
    OPAL_ENABLE_DLOPEN_SUPPORT=1
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


#
# Heterogeneous support
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want heterogeneous support" >&5
$as_echo_n "checking if want heterogeneous support... " >&6; }
# Check whether --enable-heterogeneous was given.
if test "${enable_heterogeneous+set}" = set; then :
  enableval=$enable_heterogeneous;
fi

if test "$enable_heterogeneous" = "yes" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
     ompi_want_heterogeneous=1
else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
     ompi_want_heterogeneous=0
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_HETEROGENEOUS_SUPPORT $ompi_want_heterogeneous
_ACEOF



#
# Internal trace file logging (debugging)
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want trace file debugging" >&5
$as_echo_n "checking if want trace file debugging... " >&6; }
# Check whether --enable-trace was given.
if test "${enable_trace+set}" = set; then :
  enableval=$enable_trace;
fi

if test "$enable_trace" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    opal_want_trace=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    opal_want_trace=0
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_TRACE $opal_want_trace
_ACEOF




#
# Cross-compile data
#

# Check whether --with-cross was given.
if test "${with_cross+set}" = set; then :
  withval=$with_cross;
fi

if test "$with_cross" = "yes" ; then
    as_fn_error "--with-cross argument must include FILE option" "$LINENO" 5
elif test "$with_cross" = "no" ; then
    as_fn_error "--without-cross is not a valid argument" "$LINENO" 5
elif test "$with_cross" != "" ; then
    if test ! -r $with_cross ; then
        as_fn_error "could not find cross-compile data file $with_cross" "$LINENO" 5
    fi

    # eval into environment

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:8271: Loading cross-compile file $with_cross, with contents below" >&5
else
    echo Loading cross-compile file $with_cross, with contents below >&5
fi

# 1 is the filename
if test -n "$with_cross" -a -f "$with_cross"; then
    cat $with_cross >&5
fi
    . "$with_cross"
fi

#
# --with-ft=TYPE
#  TYPE:
#    - LAM (synonym for 'cr' currently)
#    - cr
#  /* General FT sections */
#  #if OPAL_ENABLE_FT == 0 /* FT Disabled globaly */
#  #if OPAL_ENABLE_FT == 1 /* FT Enabled globaly */
#  /* CR Specific sections */
#  #if OPAL_ENABLE_FT_CR == 0 /* FT Ckpt/Restart Disabled */
#  #if OPAL_ENABLE_FT_CR == 1 /* FT Ckpt/Restart Enabled */
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want fault tolerance" >&5
$as_echo_n "checking if want fault tolerance... " >&6; }

# Check whether --with-ft was given.
if test "${with_ft+set}" = set; then :
  withval=$with_ft; ompi_want_ft=1
else
  ompi_want_ft=0
fi

if test "$with_ft" = "no" -o "$ompi_want_ft" = "0"; then
    ompi_want_ft=0
    ompi_want_ft_cr=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled fault tolerance" >&5
$as_echo "Disabled fault tolerance" >&6; }
else
    ompi_want_ft=1
    ompi_want_ft_cr=0
    ompi_want_ft_type=none

    as_save_IFS=$IFS
    IFS=","
    for opt in $with_ft; do
        IFS=$as_save_IFS

        # Default value
        if test "$opt" = "" -o "$opt" = "yes"; then
            ompi_want_ft_cr=1
        elif test "$opt" = "LAM"; then
            ompi_want_ft_cr=1
        elif test "$opt" = "lam"; then
            ompi_want_ft_cr=1
        elif test "$opt" = "CR"; then
            ompi_want_ft_cr=1
        elif test "$opt" = "cr"; then
            ompi_want_ft_cr=1
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognized FT TYPE: $opt" >&5
$as_echo "Unrecognized FT TYPE: $opt" >&6; }
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done
    if test "$ompi_want_ft_cr" = 1; then
        ompi_want_ft_type="cr"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabled $ompi_want_ft_type (Specified $with_ft)" >&5
$as_echo "Enabled $ompi_want_ft_type (Specified $with_ft)" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&5
$as_echo "$as_me: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** a research quality implementation, and care  *" >&5
$as_echo "$as_me: WARNING: *** a research quality implementation, and care  *" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** should be used when choosing to enable it.   *" >&5
$as_echo "$as_me: WARNING: *** should be used when choosing to enable it.   *" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_FT $ompi_want_ft
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_FT_CR $ompi_want_ft_cr
_ACEOF

 if test "$ompi_want_ft" = "1"; then
  WANT_FT_TRUE=
  WANT_FT_FALSE='#'
else
  WANT_FT_TRUE='#'
  WANT_FT_FALSE=
fi


#
# Do we want to install binaries?
#
# Check whether --enable-binaries was given.
if test "${enable_binaries+set}" = set; then :
  enableval=$enable_binaries;
fi

 if test "$enable_binaries" != "no"; then
  OMPI_INSTALL_BINARIES_TRUE=
  OMPI_INSTALL_BINARIES_FALSE='#'
else
  OMPI_INSTALL_BINARIES_TRUE='#'
  OMPI_INSTALL_BINARIES_FALSE=
fi


# Check whether --enable-script-wrapper-compilers was given.
if test "${enable_script_wrapper_compilers+set}" = set; then :
  enableval=$enable_script_wrapper_compilers;
fi

  if test "$enable_script_wrapper_compilers" = "yes"; then
      WANT_SCRIPT_WRAPPER_COMPILERS=1
  else
      WANT_SCRIPT_WRAPPER_COMPILERS=0
  fi
 if test "$enable_script_wrapper_compilers" = "yes"; then
  OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE=
  OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE='#'
else
  OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE='#'
  OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE=
fi


#
# Support per-user config files?
#
# Check whether --enable-per-user-config-files was given.
if test "${enable_per_user_config_files+set}" = set; then :
  enableval=$enable_per_user_config_files;
fi

if test "$enable_per_user_config_files" = "no" ; then
  result=0
else
  result=1
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_WANT_HOME_CONFIG_FILES $result
_ACEOF


#
# Do we want to enable IPv6 support?
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want IPv6 support" >&5
$as_echo_n "checking if want IPv6 support... " >&6; }
# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi

if test "$enable_ipv6" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    opal_want_ipv6=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    opal_want_ipv6=0
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_IPV6 $opal_want_ipv6
_ACEOF



#
# Package/brand string
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want package/brand string" >&5
$as_echo_n "checking if want package/brand string... " >&6; }

# Check whether --with-package-string was given.
if test "${with_package_string+set}" = set; then :
  withval=$with_package_string;
fi

if test "$with_package_string" = "" -o "$with_package_string" = "no"; then
    with_package_string="Open MPI $OMPI_CONFIGURE_USER@$OMPI_CONFIGURE_HOST Distribution"
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_PACKAGE_STRING "$with_package_string"
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_package_string" >&5
$as_echo "$with_package_string" >&6; }

#
# Ident string
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want ident string" >&5
$as_echo_n "checking if want ident string... " >&6; }

# Check whether --with-ident-string was given.
if test "${with_ident_string+set}" = set; then :
  withval=$with_ident_string;
fi

if test "$with_ident_string" = "" -o "$with_ident_string" = "no"; then
    with_ident_string="%VERSION%"
fi
with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/'$OMPI_VERSION/`"

cat >>confdefs.h <<_ACEOF
#define OPAL_IDENT_STRING "$with_ident_string"
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ident_string" >&5
$as_echo "$with_ident_string" >&6; }


#
# Use alternative checksum algorithm
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to use an alternative checksum algo for messages" >&5
$as_echo_n "checking if want to use an alternative checksum algo for messages... " >&6; }

# Check whether --with-dst-checksum was given.
if test "${with_dst_checksum+set}" = set; then :
  withval=$with_dst_checksum;
fi

if test "$with_dst_checksum" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    CFLAGS="-DOPAL_CSUM_DST $CFLAGS"
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


#
# User level (mpi.h.in) visible maximum lengths of strings.
# These may be required in lower-level libraries to set up matching
# data-structures (e.g. OPAL_MAX_OBJECT_NAME).
#
# Default values (as of OMPI-1.3), and some sane minimum and maximum values
#

# No lower and upper bound required or enforced

    max_value=256
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of processor name" >&5
$as_echo_n "checking maximum length of processor name... " >&6; }

# Check whether --with-max-processor-name was given.
if test "${with_max_processor_name+set}" = set; then :
  withval=$with_max_processor_name;
fi

    if test ! -z "$with_max_processor_name" -a "$with_max_processor_name" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_processor_name + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_processor_name -ge 16 -a $with_max_processor_name -le 1024; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_processor_name)" >&5
$as_echo "bad value ($with_max_processor_name)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-processor-names value must be >= 16 and <= 1024" >&5
$as_echo "$as_me: WARNING: --with-max-processor-names value must be >= 16 and <= 1024" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_processor_name
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_PROCESSOR_NAME $max_value
_ACEOF

    OPAL_MAX_PROCESSOR_NAME=$max_value



# Min length according to information passed in ompi/errhandler/errcode.c

    max_value=256
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of error string" >&5
$as_echo_n "checking maximum length of error string... " >&6; }

# Check whether --with-max-error-string was given.
if test "${with_max_error_string+set}" = set; then :
  withval=$with_max_error_string;
fi

    if test ! -z "$with_max_error_string" -a "$with_max_error_string" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_error_string + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_error_string -ge 64 -a $with_max_error_string -le 1024; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_error_string)" >&5
$as_echo "bad value ($with_max_error_string)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-error-strings value must be >= 64 and <= 1024" >&5
$as_echo "$as_me: WARNING: --with-max-error-strings value must be >= 64 and <= 1024" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_error_string
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_ERROR_STRING $max_value
_ACEOF

    OPAL_MAX_ERROR_STRING=$max_value



# Min length according to MPI-2.1, p. 236 (information passed in ompi/communicator/comm.c: min only 48)

    max_value=64
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of object name" >&5
$as_echo_n "checking maximum length of object name... " >&6; }

# Check whether --with-max-object-name was given.
if test "${with_max_object_name+set}" = set; then :
  withval=$with_max_object_name;
fi

    if test ! -z "$with_max_object_name" -a "$with_max_object_name" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_object_name + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_object_name -ge 64 -a $with_max_object_name -le 256; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_object_name)" >&5
$as_echo "bad value ($with_max_object_name)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-object-names value must be >= 64 and <= 256" >&5
$as_echo "$as_me: WARNING: --with-max-object-names value must be >= 64 and <= 256" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_object_name
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_OBJECT_NAME $max_value
_ACEOF

    OPAL_MAX_OBJECT_NAME=$max_value



# Min and Max length according to MPI-2.1, p. 287 is 32; longest key in ROMIO however 33

    max_value=36
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of info key" >&5
$as_echo_n "checking maximum length of info key... " >&6; }

# Check whether --with-max-info-key was given.
if test "${with_max_info_key+set}" = set; then :
  withval=$with_max_info_key;
fi

    if test ! -z "$with_max_info_key" -a "$with_max_info_key" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_info_key + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_info_key -ge 34 -a $with_max_info_key -le 255; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_info_key)" >&5
$as_echo "bad value ($with_max_info_key)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-info-keys value must be >= 34 and <= 255" >&5
$as_echo "$as_me: WARNING: --with-max-info-keys value must be >= 34 and <= 255" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_info_key
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_INFO_KEY $max_value
_ACEOF

    OPAL_MAX_INFO_KEY=$max_value



# No lower and upper bound required or enforced!

    max_value=256
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of info val" >&5
$as_echo_n "checking maximum length of info val... " >&6; }

# Check whether --with-max-info-val was given.
if test "${with_max_info_val+set}" = set; then :
  withval=$with_max_info_val;
fi

    if test ! -z "$with_max_info_val" -a "$with_max_info_val" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_info_val + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_info_val -ge 32 -a $with_max_info_val -le 1024; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_info_val)" >&5
$as_echo "bad value ($with_max_info_val)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-info-vals value must be >= 32 and <= 1024" >&5
$as_echo "$as_me: WARNING: --with-max-info-vals value must be >= 32 and <= 1024" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_info_val
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_INFO_VAL $max_value
_ACEOF

    OPAL_MAX_INFO_VAL=$max_value



# Min length according to _POSIX_HOST_NAME_MAX=255 (4*HOST_NAME_MAX)

    max_value=1024
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of port name" >&5
$as_echo_n "checking maximum length of port name... " >&6; }

# Check whether --with-max-port-name was given.
if test "${with_max_port_name+set}" = set; then :
  withval=$with_max_port_name;
fi

    if test ! -z "$with_max_port_name" -a "$with_max_port_name" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_port_name + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_port_name -ge 255 -a $with_max_port_name -le 2048; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_port_name)" >&5
$as_echo "bad value ($with_max_port_name)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-port-names value must be >= 255 and <= 2048" >&5
$as_echo "$as_me: WARNING: --with-max-port-names value must be >= 255 and <= 2048" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_port_name
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_PORT_NAME $max_value
_ACEOF

    OPAL_MAX_PORT_NAME=$max_value



# Min length accroding to MPI-2.1, p. 418

    max_value=128
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum length of datarep string" >&5
$as_echo_n "checking maximum length of datarep string... " >&6; }

# Check whether --with-max-datarep-string was given.
if test "${with_max_datarep_string+set}" = set; then :
  withval=$with_max_datarep_string;
fi

    if test ! -z "$with_max_datarep_string" -a "$with_max_datarep_string" != "no" ; then
        # Ensure it's a number (hopefully an integer!), and >0
        expr $with_max_datarep_string + 1 > /dev/null 2> /dev/null
        if test "$?" != "0"; then :
  happy=0
else
  if test $with_max_datarep_string -ge 64 -a $with_max_datarep_string -le 256; then :
  happy=1
else
  happy=0
fi
fi

        # If badness in the above tests, bail
        if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_max_datarep_string)" >&5
$as_echo "bad value ($with_max_datarep_string)" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-max-datarep-strings value must be >= 64 and <= 256" >&5
$as_echo "$as_me: WARNING: --with-max-datarep-strings value must be >= 64 and <= 256" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        max_value=$with_max_datarep_string
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_value" >&5
$as_echo "$max_value" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_MAX_DATAREP_STRING $max_value
_ACEOF

    OPAL_MAX_DATAREP_STRING=$max_value



# How to build libltdl

# Check whether --with-libltdl was given.
if test "${with_libltdl+set}" = set; then :
  withval=$with_libltdl;
fi



ompi_show_subtitle "ORTE Configuration options"

#
# Minimal RTE support
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want full RTE support" >&5
$as_echo_n "checking if want full RTE support... " >&6; }

# Check whether --with-rte-support was given.
if test "${with_rte_support+set}" = set; then :
  withval=$with_rte_support;
fi

if test "$with_rte_support" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    orte_without_full_support=1
    list_of_frameworks="errmgr,ess-singleton,ess-hnp,ess-tool,ess-env,filem,grpcomm-basic,grpcomm-bad,iof,odls,oob,plm,ras,rmaps,rml,routed,snapc,btl-sm,coll-sm,common-sm,mpool-sm,dpm-orte,pubsub-orte,rmcast,routed"
    if test -z $enable_mca_no_build ; then
      enable_mca_no_build="$list_of_frameworks"
    else
      enable_mca_no_build="$enable_mca_no_build,$list_of_frameworks"
    fi
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    orte_without_full_support=0
fi

cat >>confdefs.h <<_ACEOF
#define ORTE_DISABLE_FULL_SUPPORT $orte_without_full_support
_ACEOF

 if test "$with_rte_support" = "no"; then
  ORTE_DISABLE_FULL_SUPPORT_TRUE=
  ORTE_DISABLE_FULL_SUPPORT_FALSE='#'
else
  ORTE_DISABLE_FULL_SUPPORT_TRUE='#'
  ORTE_DISABLE_FULL_SUPPORT_FALSE=
fi



#
# Do we want orterun's --prefix behavior to be enabled by default?
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want orterun \"--prefix\" behavior to be enabled by default" >&5
$as_echo_n "checking if want orterun \"--prefix\" behavior to be enabled by default... " >&6; }
# Check whether --enable-orterun-prefix-by-default was given.
if test "${enable_orterun_prefix_by_default+set}" = set; then :
  enableval=$enable_orterun_prefix_by_default;
fi

# Check whether --enable-mpirun-prefix-by-default was given.
if test "${enable_mpirun_prefix_by_default+set}" = set; then :
  enableval=$enable_mpirun_prefix_by_default;
fi

if test "$enable_orterun_prefix_by_default" = ""; then
    enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default
fi
if test "$enable_orterun_prefix_by_default" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    orte_want_orterun_prefix_by_default=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    orte_want_orterun_prefix_by_default=0
fi

cat >>confdefs.h <<_ACEOF
#define ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT $orte_want_orterun_prefix_by_default
_ACEOF


#
# Do we want reliable multicast enabled?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want reliable multicast" >&5
$as_echo_n "checking if want reliable multicast... " >&6; }
# Check whether --enable-multicast was given.
if test "${enable_multicast+set}" = set; then :
  enableval=$enable_multicast;
fi

if test "$enable_multicast" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    orte_want_multicast=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    orte_want_multicast=0
fi

cat >>confdefs.h <<_ACEOF
#define ORTE_ENABLE_MULTICAST $orte_want_multicast
_ACEOF




ompi_show_subtitle "OMPI Configuration options"

#
# Do we want to enable MPI interface warnings (e.g. deprecated functionality and others)?
#
# XXX This __disabled__ by default for 1.5, but will be __enabled__ for 1.7 by default
# Users should be notified about this proposed change.
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want compile-time warnings inside of mpi.h" >&5
$as_echo_n "checking if want compile-time warnings inside of mpi.h... " >&6; }
# Check whether --enable-mpi-interface-warning was given.
if test "${enable_mpi_interface_warning+set}" = set; then :
  enableval=$enable_mpi_interface_warning;
fi

if test "$enable_mpi_interface_warning" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    OMPI_WANT_MPI_INTERFACE_WARNING=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    OMPI_WANT_MPI_INTERFACE_WARNING=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_MPI_INTERFACE_WARNING $OMPI_WANT_MPI_INTERFACE_WARNING
_ACEOF


#
# Sparse Groups
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want sparse process groups" >&5
$as_echo_n "checking if want sparse process groups... " >&6; }
# Check whether --enable-sparse-groups was given.
if test "${enable_sparse_groups+set}" = set; then :
  enableval=$enable_sparse_groups;
fi

if test "$enable_sparse_groups" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    GROUP_SPARSE=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    GROUP_SPARSE=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_GROUP_SPARSE $GROUP_SPARSE
_ACEOF



#
# Do we want to enable peruse interface?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want peruse support" >&5
$as_echo_n "checking if want peruse support... " >&6; }
# Check whether --enable-peruse was given.
if test "${enable_peruse+set}" = set; then :
  enableval=$enable_peruse;
fi

if test "$enable_peruse" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_PERUSE=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_PERUSE=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_PERUSE $WANT_PERUSE
_ACEOF

 if test "$WANT_PERUSE" = "1"; then
  WANT_PERUSE_TRUE=
  WANT_PERUSE_FALSE='#'
else
  WANT_PERUSE_TRUE='#'
  WANT_PERUSE_FALSE=
fi


#
# Fortran 77
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want Fortran 77 bindings" >&5
$as_echo_n "checking if want Fortran 77 bindings... " >&6; }
# Check whether --enable-mpi-f77 was given.
if test "${enable_mpi_f77+set}" = set; then :
  enableval=$enable_mpi_f77;
fi

if test "$enable_mpi_f77" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    OMPI_WANT_F77_BINDINGS=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    OMPI_WANT_F77_BINDINGS=0
fi

#
# Fortran 90
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want Fortran 90 bindings" >&5
$as_echo_n "checking if want Fortran 90 bindings... " >&6; }
# Check whether --enable-mpi-f90 was given.
if test "${enable_mpi_f90+set}" = set; then :
  enableval=$enable_mpi_f90;
fi

if test "$enable_mpi_f90" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    OMPI_WANT_F90_BINDINGS=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    OMPI_WANT_F90_BINDINGS=0
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 bindings \"size\"" >&5
$as_echo_n "checking Fortran 90 bindings \"size\"... " >&6; }

# Check whether --with-mpi-f90-size was given.
if test "${with_mpi_f90_size+set}" = set; then :
  withval=$with_mpi_f90_size;
fi


if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled (Fortran 90 bindings disabled)" >&5
$as_echo "disabled (Fortran 90 bindings disabled)" >&6; }
elif test "$with_mpi_f90_size" = "no"; then
    OMPI_WANT_F90_BINDINGS=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling F90 MPI module (used specified)" >&5
$as_echo "disabling F90 MPI module (used specified)" >&6; }
else
    # Default value
    if test "$with_mpi_f90_size" = ""; then
        with_mpi_f90_size=small
    fi

    # Check for each of the sizes
    if test "$with_mpi_f90_size" = "trivial"; then
        OMPI_F90_BUILD_SIZE=trivial
    elif test "$with_mpi_f90_size" = "small"; then
        OMPI_F90_BUILD_SIZE=small
    elif test "$with_mpi_f90_size" = "medium"; then
        OMPI_F90_BUILD_SIZE=medium
    elif test "$with_mpi_f90_size" = "large"; then
        OMPI_F90_BUILD_SIZE=large
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognized size: $with_mpi_f90_size" >&5
$as_echo "Unrecognized size: $with_mpi_f90_size" >&6; }
        as_fn_error "Cannot continue" "$LINENO" 5
    fi
fi

 if test "$OMPI_F90_BUILD_SIZE" = "trivial"; then
  OMPI_WANT_BUILD_F90_TRIVIAL_TRUE=
  OMPI_WANT_BUILD_F90_TRIVIAL_FALSE='#'
else
  OMPI_WANT_BUILD_F90_TRIVIAL_TRUE='#'
  OMPI_WANT_BUILD_F90_TRIVIAL_FALSE=
fi

 if test "$OMPI_F90_BUILD_SIZE" = "small"; then
  OMPI_WANT_BUILD_F90_SMALL_TRUE=
  OMPI_WANT_BUILD_F90_SMALL_FALSE='#'
else
  OMPI_WANT_BUILD_F90_SMALL_TRUE='#'
  OMPI_WANT_BUILD_F90_SMALL_FALSE=
fi

 if test "$OMPI_F90_BUILD_SIZE" = "medium"; then
  OMPI_WANT_BUILD_F90_MEDIUM_TRUE=
  OMPI_WANT_BUILD_F90_MEDIUM_FALSE='#'
else
  OMPI_WANT_BUILD_F90_MEDIUM_TRUE='#'
  OMPI_WANT_BUILD_F90_MEDIUM_FALSE=
fi

 if test "$OMPI_F90_BUILD_SIZE" = "large"; then
  OMPI_WANT_BUILD_F90_LARGE_TRUE=
  OMPI_WANT_BUILD_F90_LARGE_FALSE='#'
else
  OMPI_WANT_BUILD_F90_LARGE_TRUE='#'
  OMPI_WANT_BUILD_F90_LARGE_FALSE=
fi



if test "$OMPI_WANT_F90_BINDINGS" != "0"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_F90_BUILD_SIZE" >&5
$as_echo "$OMPI_F90_BUILD_SIZE" >&6; }
fi

#
# MPI profiling
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want PMPI" >&5
$as_echo_n "checking if want PMPI... " >&6; }
# Check whether --enable-mpi-profile was given.
if test "${enable_mpi_profile+set}" = set; then :
  enableval=$enable_mpi_profile;
fi

if test "$enable_mpi_profile" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MPI_PROFILING=1
    MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME"
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_MPI_PROFILING=0
    MPIF_H_PMPI_W_FUNCS=
fi



#
# C++
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want C++ bindings" >&5
$as_echo_n "checking if want C++ bindings... " >&6; }
# Check whether --enable-mpi-cxx was given.
if test "${enable_mpi_cxx+set}" = set; then :
  enableval=$enable_mpi_cxx;
fi

if test "$enable_mpi_cxx" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MPI_CXX_SUPPORT=1
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    WANT_MPI_CXX_SUPPORT=0
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want MPI::SEEK_SET support" >&5
$as_echo_n "checking if want MPI::SEEK_SET support... " >&6; }
# Check whether --enable-mpi-cxx-seek was given.
if test "${enable_mpi_cxx_seek+set}" = set; then :
  enableval=$enable_mpi_cxx_seek;
fi

if test "$enable_mpi_cxx_seek" != "no" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  OMPI_WANT_MPI_CXX_SEEK=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  OMPI_WANT_MPI_CXX_SEEK=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_MPI_CXX_SEEK $OMPI_WANT_MPI_CXX_SEEK
_ACEOF



#
# Do we want to disable MPI parameter checking at run-time?
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want run-time MPI parameter checking" >&5
$as_echo_n "checking if want run-time MPI parameter checking... " >&6; }

# Check whether --with-mpi-param-check was given.
if test "${with_mpi_param_check+set}" = set; then :
  withval=$with_mpi_param_check;
fi

mpi_param_check=ompi_mpi_param_check
if test "$with_mpi_param_check" = "no" -o \
    "$with_mpi_param_check" = "never"; then
    mpi_param_check=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
$as_echo "never" >&6; }
elif test "$with_mpi_param_check" = "yes" -o \
    "$with_mpi_param_check" = "always"; then
    mpi_param_check=1
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
$as_echo "always" >&6; }
elif test "$with_mpi_param_check" = "runtime" -o \
    -z "$with_mpi_params_check"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: runtime" >&5
$as_echo "runtime" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unrecognized --with-mpi-param-check value" >&5
$as_echo "$as_me: WARNING: *** Unrecognized --with-mpi-param-check value" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See \"configure --help\" output" >&5
$as_echo "$as_me: WARNING: *** See \"configure --help\" output" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Defaulting to \"runtime\"" >&5
$as_echo "$as_me: WARNING: *** Defaulting to \"runtime\"" >&2;}
fi

cat >>confdefs.h <<_ACEOF
#define MPI_PARAM_CHECK $mpi_param_check
_ACEOF



#
# What is the max array rank that we want to support in the f90 bindings?
#

OMPI_FORTRAN_MAX_ARRAY_RANK=4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking max supported array dimension in F90 MPI bindings" >&5
$as_echo_n "checking max supported array dimension in F90 MPI bindings... " >&6; }

# Check whether --with-f90-max-array-dim was given.
if test "${with_f90_max_array_dim+set}" = set; then :
  withval=$with_f90_max_array_dim;
fi

if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then
    # Ensure it's a number (hopefully an integer!), and >=1 and <=7
    happy=1
    expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null
    if test "$?" != "0"; then :
  happy=0
else
  expr $with_f90_max_array_dim \>= 1 \& $with_f90_max_array_dim \<= 7 > /dev/null 2>/dev/null
           if test "$?" != "0"; then :
  happy=0
fi
fi

    # If badness in the above tests, bail
    if test "$happy" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ($with_f90_max_array_dim)" >&5
$as_echo "bad value ($with_f90_max_array_dim)" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&5
$as_echo "$as_me: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&2;}
           as_fn_error "Cannot continue" "$LINENO" 5
fi
    OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_FORTRAN_MAX_ARRAY_RANK" >&5
$as_echo "$OMPI_FORTRAN_MAX_ARRAY_RANK" >&6; }




if test "$enable_binaries" = "no" -a "$enable_dist" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --disable-binaries is incompatible with --enable dist" >&5
$as_echo "$as_me: WARNING: --disable-binaries is incompatible with --enable dist" >&2;}
    as_fn_error "Cannot continue" "$LINENO" 5
fi

############################################################################
# Libtool: part one
# (before C compiler setup)
############################################################################

#
# Part one of libtool magic.  Enable static so that we have the --with
# tests done up here and can check for OS.  Save the values of
# $enable_static and $enable_shared before setting the defaults,
# because if the user specified --[en|dis]able-[static|shared] on the
# command line, they'll already be set.  In this way, we can tell if
# the user requested something or if the default was set here.
#

ompi_enable_shared="$enable_shared"
ompi_enable_static="$enable_static"
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=yes
fi









# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=no
fi











    WRAPPER_EXTRA_CPPFLAGS=
    WRAPPER_EXTRA_CFLAGS=
    WRAPPER_EXTRA_CXXFLAGS=
    WRAPPER_EXTRA_LDFLAGS=
    WRAPPER_EXTRA_LIBS=

    USER_WRAPPER_EXTRA_CFLAGS=
    USER_WRAPPER_EXTRA_CXXFLAGS=
    USER_WRAPPER_EXTRA_LDFLAGS=
    USER_WRAPPER_EXTRA_LIBS=


# Check whether --with-wrapper-cflags was given.
if test "${with_wrapper_cflags+set}" = set; then :
  withval=$with_wrapper_cflags;
fi

    if test "$with_wrapper_cflags" = "yes" -o "$with_wrapper_cflags" = "no"; then
        as_fn_error "--with-wrapper-cflags must have an argument.  Aborting" "$LINENO" 5
    elif test ! -z "$with_wrapper_cflags" ; then
        USER_WRAPPER_EXTRA_CFLAGS="$with_wrapper_cflags"
    fi


# Check whether --with-wrapper-cxxflags was given.
if test "${with_wrapper_cxxflags+set}" = set; then :
  withval=$with_wrapper_cxxflags;
fi

    if test "$with_wrapper_cxxflags" = "yes" -o "$with_wrapper_cxxflags" = "no"; then
        as_fn_error "--with-wrapper-cxxflags must have an argument.  Aborting" "$LINENO" 5
    elif test ! -z "$with_wrapper_cxxflags" ; then
        USER_WRAPPER_EXTRA_CXXFLAGS="$with_wrapper_cxxflags"
    fi



# Check whether --with-wrapper-ldflags was given.
if test "${with_wrapper_ldflags+set}" = set; then :
  withval=$with_wrapper_ldflags;
fi

    if test "$with_wrapper_ldflags" = "yes" -o "$with_wrapper_ldflags" = "no"; then
        as_fn_error "--with-wrapper-ldflags must have an argument.  Aborting" "$LINENO" 5
    elif test ! -z "$with_wrapper_ldflags" ; then
        USER_WRAPPER_EXTRA_LDFLAGS="$with_wrapper_ldflags"
    fi


# Check whether --with-wrapper-libs was given.
if test "${with_wrapper_libs+set}" = set; then :
  withval=$with_wrapper_libs;
fi

    if test "$with_wrapper_libs" = "yes" -o "$with_wrapper_libs" = "no"; then
        as_fn_error "--with-wrapper-libs must have an argument.  Aborting" "$LINENO" 5
    elif test ! -z "$with_wrapper_libs" ; then
        USER_WRAPPER_EXTRA_LIBS="$with_wrapper_libs"
    fi

# There is no [need for] ORTE_SETUP_WRAPPER_INIT; this is not an
# accidental omission

    WRAPPER_EXTRA_FFLAGS=
    WRAPPER_EXTRA_FCFLAGS=
    USER_WRAPPER_EXTRA_FFLAGS=
    USER_WRAPPER_EXTRA_FCFLAGS=


# Check whether --with-wrapper-fflags was given.
if test "${with_wrapper_fflags+set}" = set; then :
  withval=$with_wrapper_fflags;
fi

    if test "$with_wrapper_fflags" = "yes" -o "$with_wrapper_fflags" = "no"; then
        as_fn_error "--with-wrapper-fflags must have an argument.  Aborting" "$LINENO" 5
    elif test ! -z "$with_wrapper_fflags" ; then
        USER_WRAPPER_EXTRA_FFLAGS="$with_wrapper_fflags"
    fi


# Check whether --with-wrapper-fcflags was given.
if test "${with_wrapper_fcflags+set}" = set; then :
  withval=$with_wrapper_fcflags;
fi

    if test "$with_wrapper_fcflags" = "yes" -o "$with_wrapper_fcflags" = "no"; then
        as_fn_error "--with-wrapper-fcflags must have an argument.  Aborting" "$LINENO" 5
    elif test ! -z "$with_wrapper_fcflags" ; then
        USER_WRAPPER_EXTRA_FCFLAGS="$with_wrapper_fcflags"
    fi


##################################
# Check for known incompatibility
##################################

# Do *not* print a message that we're checking the OS because this
# test is *not* meant to be an all-inclusive "if it passes this test,
# then configure must succeed" test.  This test is *only* mean to
# screen out the versions of OS X where we know OMPI will cause kernel
# panics because of bad implementations of pty's.  See
# https://svn.open-mpi.org/trac/ompi/ticket/1637 for details.

# We do not support OS X before version 10.4 (Tiger)
case $host_os in
# Corresponds to OS X 10.0 - 10.3 (additional [] quoting for m4)
darwin[4567]*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI does not support OS X prior to version 10.4 (Tiger)" >&5
$as_echo "$as_me: WARNING: Open MPI does not support OS X prior to version 10.4 (Tiger)" >&2;}
    as_fn_error "Cannot continue" "$LINENO" 5
esac

############################################################################
# Check for compilers and preprocessors
############################################################################
ompi_show_title "Compiler and preprocessor tests"

##################################
# C compiler characteristics
##################################


    ompi_show_subtitle "C compiler and preprocessor"

	# $%@#!@#% AIX!!  This has to be called before anything invokes the C
    # compiler.


    #
    # Check for the compiler
    #
    ompi_cflags_save="$CFLAGS"
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    BASECC="`basename $CC`"
    CFLAGS="$ompi_cflags_save"

cat >>confdefs.h <<_ACEOF
#define OPAL_CC "$CC"
_ACEOF

    set dummy $CC
    ompi_cc_argv0=$2

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$ompi_cc_argv0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OPAL_CC_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi



    # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little
    # careful about ordering here, and AC_REQUIRE these things so that
    # they get stamped out in the right order.








    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5
$as_echo_n "checking for the C compiler vendor... " >&6; }
if test "${ompi_cv_c_compiler_vendor+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    ompi_check_compiler_vendor_result="unknown"

    # GNU is probably the most common, so check that one as soon as
    # possible.  Intel pretends to be GNU, so need to check Intel
    # before checking for GNU.

    # Intel
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="intel"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # GNU
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __GNUC__
#error "symbol __GNUC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="gnu"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Borland Turbo C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TURBOC__
#error "symbol __TURBOC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Borland C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __BORLANDC__
#error "symbol __BORLANDC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Comeau C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __COMO__
#error "symbol __COMO__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="comeau"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Compaq C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DECCXX
#error "symbol __DECCXX not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Cray C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef _CRAYC
#error "symbol _CRAYC not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="cray"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Diab C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DCC__
#error "symbol __DCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="diab"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Digital Mars
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="digital mars"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # HP ANSI C / aC++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__HP_cc) || defined(__HP_aCC) )
#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="hp"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # IBM XL C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="ibm"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(_AIX) && !defined(__GNUC__) )
#error "condition defined(_AIX) && !defined(__GNUC__) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="ibm"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # KAI C++ (rest in peace)
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __KCC
#error "symbol __KCC not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="kai"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # LCC
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __LCC__
#error "symbol __LCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="lcc"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MetaWare High C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __HIGHC__
#error "symbol __HIGHC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="metaware high"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Metrowerks Codewarrior
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __MWERKS__
#error "symbol __MWERKS__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="metrowerks"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MIPSpro (SGI)
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(sgi) || defined(__sgi) )
#error "condition defined(sgi) || defined(__sgi) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sgi"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MPW C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="mpw"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Microsoft
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :
  # Always use C compiler when checking for Microsoft, as
           # Visual C++ doesn't recognize .cc as a C++ file.
           ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(_MSC_VER) || defined(__MSC_VER) )
#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="microsoft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
           ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi

    # Norcroft C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __CC_NORCROFT
#error "symbol __CC_NORCROFT not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="norcroft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Pelles C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __POCC__
#error "symbol __POCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="pelles"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Portland Group
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __PGI
#error "symbol __PGI not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="portland group"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # SAS/C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sas"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Sun Workshop C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sun"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # TenDRA C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TenDRA__
#error "symbol __TenDRA__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="tendra"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Tiny C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TINYC__
#error "symbol __TINYC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="tiny"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # USL C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __USLC__
#error "symbol __USLC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="usl"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Watcom C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __WATCOMC__
#error "symbol __WATCOMC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="watcom"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    ompi_cv_c_compiler_vendor="$ompi_check_compiler_vendor_result"
    unset ompi_check_compiler_vendor_result

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_compiler_vendor" >&5
$as_echo "$ompi_cv_c_compiler_vendor" >&6; }

    ompi_c_vendor="$ompi_cv_c_compiler_vendor"


    # Check for standard headers, needed here because needed before
    # the types checks.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi


    # GNU C and autotools are inconsistent about whether this is
    # defined so let's make it true everywhere for now...  However, IBM
    # XL compilers on PPC Linux behave really badly when compiled with
    # _GNU_SOURCE defined, so don't define it in that situation.
    #
    # Don't use AC_GNU_SOURCE because it requires that no compiler
    # tests are done before setting it, and we need to at least do
    # enough tests to figure out if we're using XL or not.
    if test "$ompi_cv_c_compiler_vendor" != "ibm"; then :

           $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

fi

    # Do we want code coverage
    if test "$WANT_COVERAGE" = "1"; then
        if test "$ompi_c_vendor" = "gnu" ; then
            # For compilers > gcc-4.x, use --coverage for
            # compiling and linking to circumvent trouble with
            # libgcov.
            CFLAGS_orig="$CFLAGS"
            LDFLAGS_orig="$LDFLAGS"

            CFLAGS="$CFLAGS_orig --coverage"
            LDFLAGS="$LDFLAGS_orig --coverage"
            OMPI_COVERAGE_FLAGS=

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports --coverage" >&5
$as_echo_n "checking if $CC supports --coverage... " >&6; }
if test "${ompi_cv_cc_coverage+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_cc_coverage="yes"
else
  ompi_cv_cc_coverage="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_coverage" >&5
$as_echo "$ompi_cv_cc_coverage" >&6; }

            if test "$ompi_cv_cc_coverage" = "yes" ; then
                OMPI_COVERAGE_FLAGS="--coverage"
                CLEANFILES="*.gcno ${CLEANFILES}"
                CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}"
            else
                OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs"
                CLEANFILES="*.bb *.bbg ${CLEANFILES}"
                CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}"
            fi
            CFLAGS="$CFLAGS_orig $OMPI_COVERAGE_FLAGS"
            LDFLAGS="$LDFLAGS_orig $OMPI_COVERAGE_FLAGS"
            WRAPPER_EXTRA_CFLAGS="${WRAPPER_EXTRA_CFLAGS} $OMPI_COVERAGE_FLAGS"
            WRAPPER_EXTRA_LDFLAGS="${WRAPPER_EXTRA_LDFLAGS} $OMPI_COVERAGE_FLAGS"


# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
$as_echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}

            WANT_DEBUG=1
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Code coverage functionality is currently available only with GCC" >&5
$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;}
            as_fn_error "Configure: Cannot continue" "$LINENO" 5
       fi
    fi

    # Do we want debugging?
    if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
        if test "$ompi_c_vendor" = "gnu"; then
            CFLAGS="$CFLAGS -g"  # keep the -g3 for when it will become a standard option.
        else
            CFLAGS="$CFLAGS -g"
        fi


# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5
$as_echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;}
    fi

    # These flags are generally gcc-specific; even the
    # gcc-impersonating compilers won't accept them.
    OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS"
    if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then
        add="-Wall -Wundef -Wno-long-long -Wsign-compare"
        add="$add -Wmissing-prototypes -Wstrict-prototypes"
        add="$add -Wcomment -pedantic"

        # see if -Wno-long-double works...
        CFLAGS_orig="$CFLAGS"
        # CFLAGS="$CFLAGS -Wno-long-double"
        # Starting with GCC-4.4, the compiler complains about not
        # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too.
        #
        # Actually, this is not real fix, as GCC will pass on any -Wno- flag,
        # have fun with the warning: -Wno-britney
        CFLAGS="$CFLAGS $add -Wno-long-double -Wstrict-prototypes"

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-long-double" >&5
$as_echo_n "checking if $CC supports -Wno-long-double... " >&6; }
if test "${ompi_cv_cc_wno_long_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_cc_wno_long_double="yes"
else
  ompi_cv_cc_wno_long_double="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_wno_long_double" >&5
$as_echo "$ompi_cv_cc_wno_long_double" >&6; }

        CFLAGS="$CFLAGS_orig"
        if test "$ompi_cv_cc_wno_long_double" = "yes" ; then
            add="$add -Wno-long-double"
        fi

        add="$add -Werror-implicit-function-declaration "

        CFLAGS="$CFLAGS $add"

# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;}
        unset add
    fi

    # See if this version of gcc allows -finline-functions and/or
    # -fno-strict-aliasing.  Even check the gcc-impersonating compilers.
    if test "$GCC" = "yes"; then
        CFLAGS_orig="$CFLAGS"

        CFLAGS="$CFLAGS_orig -finline-functions"
        add=
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5
$as_echo_n "checking if $CC supports -finline-functions... " >&6; }
if test "${ompi_cv_cc_finline_functions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_cc_finline_functions="yes"
else
  ompi_cv_cc_finline_functions="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_finline_functions" >&5
$as_echo "$ompi_cv_cc_finline_functions" >&6; }
        if test "$ompi_cv_cc_finline_functions" = "yes" ; then
            add=" -finline-functions"
        fi
        CFLAGS="$CFLAGS_orig$add"

        CFLAGS_orig="$CFLAGS"
        CFLAGS="$CFLAGS_orig -fno-strict-aliasing"
        add=
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_cc_fno_strict_aliasing="yes"
else
  ompi_cv_cc_fno_strict_aliasing="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_fno_strict_aliasing" >&5
$as_echo "$ompi_cv_cc_fno_strict_aliasing" >&6; }
        if test "$ompi_cv_cc_fno_strict_aliasing" = "yes" ; then
            add=" -fno-strict-aliasing"
        fi
        CFLAGS="$CFLAGS_orig$add"


# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        unset add
    fi

    # Try to enable restrict keyword
    RESTRICT_CFLAGS=
    case "$ompi_c_vendor" in
        intel)
            RESTRICT_CFLAGS="-restrict"
        ;;
        sgi)
            RESTRICT_CFLAGS="-LANG:restrict=ON"
        ;;
    esac
    if test ! -z "$RESTRICT_CFLAGS" ; then
        CFLAGS_orig="$CFLAGS"
        CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS"
        add=
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $RESTRICT_CFLAGS" >&5
$as_echo_n "checking if $CC supports $RESTRICT_CFLAGS... " >&6; }
if test "${ompi_cv_cc_restrict_cflags+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_cc_restrict_cflags="yes"
else
  ompi_cv_cc_restrict_cflags="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_restrict_cflags" >&5
$as_echo "$ompi_cv_cc_restrict_cflags" >&6; }
        if test "$ompi_cv_cc_restrict_cflags" = "yes" ; then
            add=" $RESTRICT_CFLAGS"
        fi

        CFLAGS="${CFLAGS_orig}${add}"

# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        if test "$add" != "" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        fi
        unset add
    fi

    # see if the C compiler supports __builtin_expect
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_expect" >&5
$as_echo_n "checking if $CC supports __builtin_expect... " >&6; }
if test "${ompi_cv_cc_supports___builtin_expect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
void *ptr = (void*) 0;
           if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_cc_supports___builtin_expect="yes"
else
  ompi_cv_cc_supports___builtin_expect="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_supports___builtin_expect" >&5
$as_echo "$ompi_cv_cc_supports___builtin_expect" >&6; }
    if test "$ompi_cv_cc_supports___builtin_expect" = "yes" ; then
        have_cc_builtin_expect=1
    else
        have_cc_builtin_expect=0
    fi

cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE_BUILTIN_EXPECT $have_cc_builtin_expect
_ACEOF


    # see if the C compiler supports __builtin_prefetch
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_prefetch" >&5
$as_echo_n "checking if $CC supports __builtin_prefetch... " >&6; }
if test "${ompi_cv_cc_supports___builtin_prefetch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int ptr;
           __builtin_prefetch(&ptr,0,0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_cc_supports___builtin_prefetch="yes"
else
  ompi_cv_cc_supports___builtin_prefetch="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_supports___builtin_prefetch" >&5
$as_echo "$ompi_cv_cc_supports___builtin_prefetch" >&6; }
    if test "$ompi_cv_cc_supports___builtin_prefetch" = "yes" ; then
        have_cc_builtin_prefetch=1
    else
        have_cc_builtin_prefetch=0
    fi

cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE_BUILTIN_PREFETCH $have_cc_builtin_prefetch
_ACEOF


    # Preload the optflags for the case where the user didn't specify
    # any.  If we're using GNU compilers, use -O3 (since it GNU
    # doesn't require all compilation units to be compiled with the
    # same level of optimization -- selecting a high level of
    # optimization is not prohibitive).  If we're using anything else,
    # be conservative and just use -O.
    #
    # Note: gcc-impersonating compilers accept -O3
    if test "$WANT_DEBUG" = "1"; then
        OPTFLAGS=
    else
        if test "$GCC" = yes; then
            OPTFLAGS="-O3"
        else
            OPTFLAGS="-O"
        fi
    fi



# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$OMPI_CFLAGS_BEFORE_PICKY""
co_found=0
for co_word in $co_arg; do
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  co_found=1 ;;

    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    OMPI_CFLAGS_BEFORE_PICKY="$co_result"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimization flags" >&5
$as_echo_n "checking for C optimization flags... " >&6; }


# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$CFLAGS""
co_found=0
for co_word in $co_arg; do
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  co_found=1 ;;

    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $co_result" >&5
$as_echo "$co_result" >&6; }
    CFLAGS="$co_result"


# If we build on a windows environment with the windows compiler and linker
# then we need some translation functions from the opal/win32 directory.
 if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
  OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE=
  OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE='#'
else
  OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE='#'
  OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE=
fi


# Do all Interix detections if necessary


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Interix environment" >&5
$as_echo_n "checking for Interix environment... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#if !defined(__INTERIX)
                    #error Normal Unix environment
                    #endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  is_interix=yes
else
  is_interix=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_interix" >&5
$as_echo "$is_interix" >&6; }
    if test "$is_interix" = "yes"; then

        ompi_show_subtitle "Interix detection"

        if ! test -d /usr/include/port; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling Open MPI under Interix require an up-to-date" >&5
$as_echo "$as_me: WARNING: Compiling Open MPI under Interix require an up-to-date" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version of libport. Please ask your system administrator" >&5
$as_echo "$as_me: WARNING: version of libport. Please ask your system administrator" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to install it (pkg_update -L libport)." >&5
$as_echo "$as_me: WARNING: to install it (pkg_update -L libport)." >&2;}
            as_fn_error "*** Cannot continue" "$LINENO" 5
        fi
        #
        # These are the minimum requirements for Interix ...
        #
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:     -lport was added to the linking flags" >&5
$as_echo "$as_me: WARNING:     -lport was added to the linking flags" >&2;}
        LDFLAGS="-lport $LDFLAGS"
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:     -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&5
$as_echo "$as_me: WARNING:     -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&2;}
        CFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CFLAGS"
        CPPFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CPPFLAGS"
        CXXFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CXXFLAGS"

    fi



# Does the compiler support "ident"-like constructs?


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C ident string support" >&5
$as_echo_n "checking for C ident string support... " >&6; }

    opal_pragma_ident_happy=0
    opal_ident_happy=0
    opal_static_const_char_happy=0

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12057: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12064: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_ident_happy=1
         ompi_message="#pragma ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12099: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12106: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12141: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12148: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12170: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12198: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12228: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12235: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12257: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12300: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12307: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12329: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12366: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12396: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12403: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12438: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12445: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12467: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12495: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12525: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12532: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12554: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12597: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12604: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12626: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12678: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12685: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12720: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12727: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12749: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12777: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12807: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12814: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12836: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:12879: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:12886: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:12908: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}



cat >>confdefs.h <<_ACEOF
#define OPAL_CC_USE_PRAGMA_IDENT $opal_pragma_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_CC_USE_IDENT $opal_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_CC_USE_PRAGMA_COMMENT $opal_pragma_comment_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_CC_USE_CONST_CHAR_IDENT $opal_static_const_char_happy
_ACEOF


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_message" >&5
$as_echo "$ompi_message" >&6; }

    unset opal_pragma_ident_happy opal_ident_happy opal_static_const_char_happy ompi_message


#
# Check for some types
#

ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
if test "x$ac_cv_type_int64_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT64_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
if test "x$ac_cv_type_uint64_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT64_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "int128_t" "ac_cv_type_int128_t" "$ac_includes_default"
if test "x$ac_cv_type_int128_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT128_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "$ac_includes_default"
if test "x$ac_cv_type_uint128_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT128_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi


ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
if test "x$ac_cv_type_long_double" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_DOUBLE 1
_ACEOF


fi

# We only need these types if we're building the OMPI project, but
# OPAL currently doesn't protect for their lack of presence well.
ac_fn_c_check_type "$LINENO" "float _Complex" "ac_cv_type_float__Complex" "$ac_includes_default"
if test "x$ac_cv_type_float__Complex" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_FLOAT__COMPLEX 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "double _Complex" "ac_cv_type_double__Complex" "$ac_includes_default"
if test "x$ac_cv_type_double__Complex" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_DOUBLE__COMPLEX 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "long double _Complex" "ac_cv_type_long_double__Complex" "$ac_includes_default"
if test "x$ac_cv_type_long_double__Complex" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_DOUBLE__COMPLEX 1
_ACEOF


fi


ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
if test "x$ac_cv_type_mode_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_MODE_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
if test "x$ac_cv_type_ssize_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF


fi

ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi


#
# Check for type sizes
#

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
$as_echo_n "checking size of char... " >&6; }
if test "${ac_cv_sizeof_char+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (char)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
$as_echo "$ac_cv_sizeof_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (short)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


if test $ac_cv_type_long_long = yes; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if test "${ac_cv_sizeof_long_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


fi
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
$as_echo_n "checking size of float... " >&6; }
if test "${ac_cv_sizeof_float+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_float" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (float)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_float=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
$as_echo "$ac_cv_sizeof_float" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
$as_echo_n "checking size of double... " >&6; }
if test "${ac_cv_sizeof_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (double)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_ACEOF


if test $ac_cv_type_long_double = yes; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
$as_echo_n "checking size of long double... " >&6; }
if test "${ac_cv_sizeof_long_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long double)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
$as_echo "$ac_cv_sizeof_long_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
_ACEOF


fi

# We only need these types if we're building the OMPI project, but
# OPAL currently doesn't protect for their lack of presence well.
if test "$ac_cv_type_float__Complex" = yes; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float _Complex" >&5
$as_echo_n "checking size of float _Complex... " >&6; }
if test "${ac_cv_sizeof_float__Complex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float _Complex))" "ac_cv_sizeof_float__Complex"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_float__Complex" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (float _Complex)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_float__Complex=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float__Complex" >&5
$as_echo "$ac_cv_sizeof_float__Complex" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT__COMPLEX $ac_cv_sizeof_float__Complex
_ACEOF


fi
if test "$ac_cv_type_double__Complex" = yes; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double _Complex" >&5
$as_echo_n "checking size of double _Complex... " >&6; }
if test "${ac_cv_sizeof_double__Complex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double _Complex))" "ac_cv_sizeof_double__Complex"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_double__Complex" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (double _Complex)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_double__Complex=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double__Complex" >&5
$as_echo "$ac_cv_sizeof_double__Complex" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE__COMPLEX $ac_cv_sizeof_double__Complex
_ACEOF


fi
if test "$ac_cv_type_long_double__Complex" = yes; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double _Complex" >&5
$as_echo_n "checking size of long double _Complex... " >&6; }
if test "${ac_cv_sizeof_long_double__Complex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double _Complex))" "ac_cv_sizeof_long_double__Complex"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_double__Complex" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long double _Complex)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long_double__Complex=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double__Complex" >&5
$as_echo "$ac_cv_sizeof_long_double__Complex" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_DOUBLE__COMPLEX $ac_cv_sizeof_long_double__Complex
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if test "${ac_cv_sizeof_void_p+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_void_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (void *)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_void_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
$as_echo_n "checking size of size_t... " >&6; }
if test "${ac_cv_sizeof_size_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_size_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (size_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_size_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
$as_echo "$ac_cv_sizeof_size_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


if test $ac_cv_type_ssize_t = yes ; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
$as_echo_n "checking size of ssize_t... " >&6; }
if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_ssize_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (ssize_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_ssize_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
$as_echo "$ac_cv_sizeof_ssize_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
_ACEOF


fi
if test $ac_cv_type_ptrdiff_t = yes; then
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
$as_echo_n "checking size of ptrdiff_t... " >&6; }
if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_ptrdiff_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_ptrdiff_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
_ACEOF


fi
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
$as_echo_n "checking size of wchar_t... " >&6; }
if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_wchar_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (wchar_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_wchar_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
$as_echo "$ac_cv_sizeof_wchar_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
_ACEOF




#
# Check for type alignments
#


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of _Bool" >&5
$as_echo_n "checking alignment of _Bool... " >&6; }
if test "${ompi_cv_c_align__Bool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align__Bool"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; _Bool y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; _Bool x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align__Bool=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align__Bool" >&5
$as_echo "$ompi_cv_c_align__Bool" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_BOOL $ompi_cv_c_align__Bool
_ACEOF

eval "OPAL_ALIGNMENT_BOOL=$ompi_cv_c_align__Bool"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int8_t" >&5
$as_echo_n "checking alignment of int8_t... " >&6; }
if test "${ompi_cv_c_align_int8_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_int8_t"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int8_t y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; int8_t x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_int8_t=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_int8_t" >&5
$as_echo "$ompi_cv_c_align_int8_t" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT8 $ompi_cv_c_align_int8_t
_ACEOF

eval "OPAL_ALIGNMENT_INT8=$ompi_cv_c_align_int8_t"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int16_t" >&5
$as_echo_n "checking alignment of int16_t... " >&6; }
if test "${ompi_cv_c_align_int16_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_int16_t"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int16_t y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; int16_t x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_int16_t=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_int16_t" >&5
$as_echo "$ompi_cv_c_align_int16_t" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT16 $ompi_cv_c_align_int16_t
_ACEOF

eval "OPAL_ALIGNMENT_INT16=$ompi_cv_c_align_int16_t"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int32_t" >&5
$as_echo_n "checking alignment of int32_t... " >&6; }
if test "${ompi_cv_c_align_int32_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_int32_t"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int32_t y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; int32_t x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_int32_t=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_int32_t" >&5
$as_echo "$ompi_cv_c_align_int32_t" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT32 $ompi_cv_c_align_int32_t
_ACEOF

eval "OPAL_ALIGNMENT_INT32=$ompi_cv_c_align_int32_t"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int64_t" >&5
$as_echo_n "checking alignment of int64_t... " >&6; }
if test "${ompi_cv_c_align_int64_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_int64_t"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int64_t y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; int64_t x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_int64_t=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_int64_t" >&5
$as_echo "$ompi_cv_c_align_int64_t" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT64 $ompi_cv_c_align_int64_t
_ACEOF

eval "OPAL_ALIGNMENT_INT64=$ompi_cv_c_align_int64_t"

rm -rf conftest*
if test "$ac_cv_type_int128_t" = yes ; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int128_t" >&5
$as_echo_n "checking alignment of int128_t... " >&6; }
if test "${ompi_cv_c_align_int128_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_int128_t"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int128_t y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; int128_t x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_int128_t=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_int128_t" >&5
$as_echo "$ompi_cv_c_align_int128_t" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT128 $ompi_cv_c_align_int128_t
_ACEOF

eval "OPAL_ALIGNMENT_INT128=$ompi_cv_c_align_int128_t"

rm -rf conftest*
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of char" >&5
$as_echo_n "checking alignment of char... " >&6; }
if test "${ompi_cv_c_align_char+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_char"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; char x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_char=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_char" >&5
$as_echo "$ompi_cv_c_align_char" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_CHAR $ompi_cv_c_align_char
_ACEOF

eval "OPAL_ALIGNMENT_CHAR=$ompi_cv_c_align_char"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
$as_echo_n "checking alignment of short... " >&6; }
if test "${ompi_cv_c_align_short+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_short"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; short x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_short=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_short" >&5
$as_echo "$ompi_cv_c_align_short" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_SHORT $ompi_cv_c_align_short
_ACEOF

eval "OPAL_ALIGNMENT_SHORT=$ompi_cv_c_align_short"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of wchar_t" >&5
$as_echo_n "checking alignment of wchar_t... " >&6; }
if test "${ompi_cv_c_align_wchar_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_wchar_t"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; wchar_t x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_wchar_t=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_wchar_t" >&5
$as_echo "$ompi_cv_c_align_wchar_t" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_WCHAR $ompi_cv_c_align_wchar_t
_ACEOF

eval "OPAL_ALIGNMENT_WCHAR=$ompi_cv_c_align_wchar_t"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
$as_echo_n "checking alignment of int... " >&6; }
if test "${ompi_cv_c_align_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_int"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; int x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_int=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_int" >&5
$as_echo "$ompi_cv_c_align_int" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT $ompi_cv_c_align_int
_ACEOF

eval "OPAL_ALIGNMENT_INT=$ompi_cv_c_align_int"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
$as_echo_n "checking alignment of long... " >&6; }
if test "${ompi_cv_c_align_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_long"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; long x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_long=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_long" >&5
$as_echo "$ompi_cv_c_align_long" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG $ompi_cv_c_align_long
_ACEOF

eval "OPAL_ALIGNMENT_LONG=$ompi_cv_c_align_long"

rm -rf conftest*
if test "$ac_cv_type_long_long" = yes; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long" >&5
$as_echo_n "checking alignment of long long... " >&6; }
if test "${ompi_cv_c_align_long_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_long_long"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; long long x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_long_long=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_long_long" >&5
$as_echo "$ompi_cv_c_align_long_long" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG_LONG $ompi_cv_c_align_long_long
_ACEOF

eval "OPAL_ALIGNMENT_LONG_LONG=$ompi_cv_c_align_long_long"

rm -rf conftest*
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5
$as_echo_n "checking alignment of float... " >&6; }
if test "${ompi_cv_c_align_float+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_float"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; float x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_float=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_float" >&5
$as_echo "$ompi_cv_c_align_float" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_FLOAT $ompi_cv_c_align_float
_ACEOF

eval "OPAL_ALIGNMENT_FLOAT=$ompi_cv_c_align_float"

rm -rf conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
$as_echo_n "checking alignment of double... " >&6; }
if test "${ompi_cv_c_align_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_double"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; double x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_double=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_double" >&5
$as_echo "$ompi_cv_c_align_double" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_DOUBLE $ompi_cv_c_align_double
_ACEOF

eval "OPAL_ALIGNMENT_DOUBLE=$ompi_cv_c_align_double"

rm -rf conftest*
if test "$ac_cv_type_long_double" = yes; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double" >&5
$as_echo_n "checking alignment of long double... " >&6; }
if test "${ompi_cv_c_align_long_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_long_double"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; long double x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_long_double=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_long_double" >&5
$as_echo "$ompi_cv_c_align_long_double" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG_DOUBLE $ompi_cv_c_align_long_double
_ACEOF

eval "OPAL_ALIGNMENT_LONG_DOUBLE=$ompi_cv_c_align_long_double"

rm -rf conftest*
fi

# We only need these types if we're building the OMPI project, but
# OPAL currently doesn't protect for their lack of presence well.
if test "$ac_cv_type_float__Complex" = yes; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float _Complex" >&5
$as_echo_n "checking alignment of float _Complex... " >&6; }
if test "${ompi_cv_c_align_float__Complex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_float__Complex"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float _Complex y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; float _Complex x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_float__Complex=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_float__Complex" >&5
$as_echo "$ompi_cv_c_align_float__Complex" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_FLOAT_COMPLEX $ompi_cv_c_align_float__Complex
_ACEOF

eval "OPAL_ALIGNMENT_FLOAT_COMPLEX=$ompi_cv_c_align_float__Complex"

rm -rf conftest*
fi
if test "$ac_cv_type_double__Complex" = yes; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double _Complex" >&5
$as_echo_n "checking alignment of double _Complex... " >&6; }
if test "${ompi_cv_c_align_double__Complex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_double__Complex"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double _Complex y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; double _Complex x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_double__Complex=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_double__Complex" >&5
$as_echo "$ompi_cv_c_align_double__Complex" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_DOUBLE_COMPLEX $ompi_cv_c_align_double__Complex
_ACEOF

eval "OPAL_ALIGNMENT_DOUBLE_COMPLEX=$ompi_cv_c_align_double__Complex"

rm -rf conftest*
fi
if test "$ac_cv_type_long_double__Complex" = yes; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double _Complex" >&5
$as_echo_n "checking alignment of long double _Complex... " >&6; }
if test "${ompi_cv_c_align_long_double__Complex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_long_double__Complex"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double _Complex y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; long double _Complex x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_long_double__Complex=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_long_double__Complex" >&5
$as_echo "$ompi_cv_c_align_long_double__Complex" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG_DOUBLE_COMPLEX $ompi_cv_c_align_long_double__Complex
_ACEOF

eval "OPAL_ALIGNMENT_LONG_DOUBLE_COMPLEX=$ompi_cv_c_align_long_double__Complex"

rm -rf conftest*
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
$as_echo_n "checking alignment of void *... " >&6; }
if test "${ompi_cv_c_align_void_p+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_void_p"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; void * x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_align_void_p=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_void_p" >&5
$as_echo "$ompi_cv_c_align_void_p" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_VOID_P $ompi_cv_c_align_void_p
_ACEOF

eval "OPAL_ALIGNMENT_VOID_P=$ompi_cv_c_align_void_p"

rm -rf conftest*

#
# Does the C compiler native support "bool"? (i.e., without
# <stdbool.h> or any other help)
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C bool type" >&5
$as_echo_n "checking for C bool type... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
int
main ()
{
bool bar, foo = true; bar = foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  OPAL_NEED_C_BOOL=0 MSG=yes
else
  OPAL_NEED_C_BOOL=1 MSG=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OPAL_NEED_C_BOOL $OPAL_NEED_C_BOOL
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
$as_echo "$MSG" >&6; }
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
$as_echo_n "checking size of _Bool... " >&6; }
if test "${ac_cv_sizeof__Bool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type__Bool" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (_Bool)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof__Bool=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
$as_echo "$ac_cv_sizeof__Bool" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF__BOOL $ac_cv_sizeof__Bool
_ACEOF



#
# Check for other compiler characteristics
#

if test "$GCC" = "yes"; then

    # gcc 2.96 will emit oodles of warnings if you use "inline" with
    # -pedantic (which we do in developer builds).  However,
    # "__inline__" is ok.  So we have to force gcc to select the
    # right one.  If you use -pedantic, the AC_C_INLINE test will fail
    # (because it names a function foo() -- without the (void)).  So
    # we turn off all the picky flags, turn on -ansi mode (which is
    # implied by -pedantic), and set warnings to be errors.  Hence,
    # this does the following (for 2.96):
    #
    # - causes the check for "inline" to emit a warning, which then
    # fails
    # - checks for __inline__, which then emits no error, and works
    #
    # This also works nicely for gcc 3.x because "inline" will work on
    # the first check, and all is fine.  :-)

    CFLAGS_save="$CFLAGS"
    CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY -Werror -ansi"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac

# Microsoft compilers support 2 versions of restrict. One for functions, and
# one for variables. The problem is that they don't have an equivalent
# syntax, and the autoconf restrict detection is unable to detect them
# correctly. It detect the restrict keyword as __restrict which break the
# rules for function syntax which is declspec(restrict).
if test "x$ompi_cv_c_compiler_vendor" != "xmicrosoft"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
if test "${ac_cv_c_restrict+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_restrict=no
   # The order here caters to the fact that C++ does not require restrict.
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
typedef int * int_ptr;
	int foo (int_ptr $ac_kw ip) {
	return ip[0];
       }
int
main ()
{
int s[1];
	int * $ac_kw t = s;
	t[0] = 0;
	return foo(t)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_restrict=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     test "$ac_cv_c_restrict" != no && break
   done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
$as_echo "$ac_cv_c_restrict" >&6; }

 case $ac_cv_c_restrict in
   restrict) ;;
   no) $as_echo "#define restrict /**/" >>confdefs.h
 ;;
   *)  cat >>confdefs.h <<_ACEOF
#define restrict $ac_cv_c_restrict
_ACEOF
 ;;
 esac

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for weak symbol support" >&5
$as_echo_n "checking for weak symbol support... " >&6; }
if test "${ompi_cv_c_weak_symbols+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    # need two files because icc will incorrectly not create the
    # symbols if they are not used in the object file in which they
    # are defined.  Blah!
    # To get to compile with icc, have them in a separate header.
    cat > conftest_weak.h <<EOF
int real(int i);
int fake(int i);
EOF

    cat > conftest_weak.c <<EOF
#include "conftest_weak.h"
#pragma weak fake = real
int real(int i) { return i; }
EOF

    cat > conftest.c <<EOF
#include "conftest_weak.h"
int main() { return fake(3); }
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:15342: $CC $CFLAGS  -c conftest_weak.c" >&5
$CC $CFLAGS  -c conftest_weak.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:15349: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:15359: $CC $CFLAGS  conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS" >&5
$CC $CFLAGS  conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:15366: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_c_weak_symbols_happy=1
else
    unset ompi_status
    ompi_c_weak_symbols_happy=0
fi
else
    unset ompi_status
    ompi_c_weak_symbols_happy=0
fi

    if test "$ompi_c_weak_symbols_happy" = "1"; then :
  ompi_cv_c_weak_symbols="yes"
else
  ompi_cv_c_weak_symbols="no"
fi

    unset ompi_c_weak_symbols_happy
    rm -f conftest_weak.h conftest_weak.c conftest.c conftest

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_weak_symbols" >&5
$as_echo "$ompi_cv_c_weak_symbols" >&6; }

    if test "$ompi_cv_c_weak_symbols" = "yes"; then :
  OPAL_C_HAVE_WEAK_SYMBOLS=1
else
  OPAL_C_HAVE_WEAK_SYMBOLS=0
fi

if test "$GCC" = "yes"; then
    CFLAGS="$CFLAGS_save"
fi

if test "x$CC" = "xicc"; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether icc-8.1 for EM64T works with variable arguments" >&5
$as_echo_n "checking whether icc-8.1 for EM64T works with variable arguments... " >&6; }
if test "$cross_compiling" = yes; then :
  ompi_ac_icc_varargs=1
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

void func (int c, char * f, ...)
{
  va_list arglist;
  va_start (arglist, f);
  /* vprintf (f, arglist); */
  va_end (arglist);
}

int main ()
{
  FILE *f;
  func (4711, "Help %d [%s]\n", 10, "ten");
  f=fopen ("conftestval", "w");
  if (!f) exit (1);
  return 0;
}


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_ac_icc_varargs=`test -f conftestval`
else
  ompi_ac_icc_varargs=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


if test "$ompi_ac_icc_varargs" = "1"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5
$as_echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5
$as_echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;}
    as_fn_error "*** Cannot continue." "$LINENO" 5
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

rm -rf conftest*
fi

# If we want the profiling layer:
# - If the C compiler has weak symbols, use those.
# - If not, then set to compile the code again with #define's in a
#   separate directory.

if test "$WANT_WEAK_SYMBOLS" = "0"; then
    OPAL_C_HAVE_WEAK_SYMBOLS=0
fi
if test "$WANT_MPI_PROFILING" = "1"; then
    if test "$OPAL_C_HAVE_WEAK_SYMBOLS" = "1"; then
        OMPI_PROFILING_COMPILE_SEPARATELY=0
    else
        OMPI_PROFILING_COMPILE_SEPARATELY=1
    fi
else
    OMPI_PROFILING_COMPILE_SEPARATELY=0
fi

# Check if we support the offsetof compiler directive




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in have_offsetof_msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"have_offsetof_msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for functional offsetof macro" >&5
$as_echo_n "checking for functional offsetof macro... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include<stddef.h>
int
main ()
{
struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  have_offsetof_msg="yes"
else
  have_offsetof_msg="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test "$have_offsetof_msg" = "no"; then
        CPPFLAGS="$CPPFLAGS -DNO_PGI_OFFSET"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include<stddef.h>
int
main ()
{
struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  have_offsetof_msg="yes"
else
  have_offsetof_msg="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        if test "$have_offsetof_msg" = "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_offsetof_msg" >&5
$as_echo "$have_offsetof_msg" >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not support offsetof macro" >&5
$as_echo "$as_me: WARNING: Your compiler does not support offsetof macro" >&2;}
            as_fn_error "Configure: Cannot continue" "$LINENO" 5
        fi
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_offsetof_msg" >&5
$as_echo "$have_offsetof_msg" >&6; }

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



# Setup OMPI bindings (if we're building the OMPI project).  Note that
# opal_wrapper.c has a hard-coded use of the OMPI_ENABLE_MPI_PROFILING
# macro, so we need to define it (to 0) even if we're not building the
# OMPI project.


    # There are 2 layers to the MPI Language binidings One layer
    # generates MPI_* bindings. The other layer generates PMPI_*
    # bindings. The following conditions determine whether each (or
    # both) these layers are built.
    # 1. MPI_* bindings are needed if:
    #    - Profiling is not required
    #    - Profiling is required but weak symbols are not
    #      supported
    # 2. PMPI_* bindings are needed if profiling is required.  Hence we
    # define 2 conditionals which tell us whether each of these layers
    # need to be built or NOT
    #

     if test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
  WANT_MPI_BINDINGS_LAYER_TRUE=
  WANT_MPI_BINDINGS_LAYER_FALSE='#'
else
  WANT_MPI_BINDINGS_LAYER_TRUE='#'
  WANT_MPI_BINDINGS_LAYER_FALSE=
fi


     if test "$WANT_MPI_PROFILING" = 1; then
  WANT_PMPI_BINDINGS_LAYER_TRUE=
  WANT_PMPI_BINDINGS_LAYER_FALSE='#'
else
  WANT_PMPI_BINDINGS_LAYER_TRUE='#'
  WANT_PMPI_BINDINGS_LAYER_FALSE=
fi

     if test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
  COMPILE_PROFILING_SEPARATELY_TRUE=
  COMPILE_PROFILING_SEPARATELY_FALSE='#'
else
  COMPILE_PROFILING_SEPARATELY_TRUE='#'
  COMPILE_PROFILING_SEPARATELY_FALSE=
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_MPI_PROFILING $WANT_MPI_PROFILING
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_WEAK_SYMBOLS $OPAL_C_HAVE_WEAK_SYMBOLS
_ACEOF




##################################
# C++ compiler characteristics
##################################


    ompi_show_subtitle "C++ compiler and preprocessor"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in opal_cxxflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"opal_cxxflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    opal_cxxflags_save="$CXXFLAGS"
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    CXXFLAGS="$opal_cxxflags_save"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done









    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in opal_cxx_compiler_works; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"opal_cxx_compiler_works\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # Must REQUIRE the PROG_CXX macro and not call it directly here for
    # reasons well-described in the AC2.64 (and beyond) docs.

    BASECXX="`basename $CXX`"

    if test "x$CXX" = "x"; then :
  CXX=none
fi
    set dummy $CXX
    opal_cxx_argv0=$2

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$opal_cxx_argv0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OPAL_CXX_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    if test "x$OPAL_CXX_ABSOLUTE" = "x"; then :
  OPAL_CXX_ABSOLUTE=none
fi


cat >>confdefs.h <<_ACEOF
#define OPAL_CXX "$CXX"
_ACEOF




    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C++ compiler vendor" >&5
$as_echo_n "checking for the C++ compiler vendor... " >&6; }
if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


    ompi_check_compiler_vendor_result="unknown"

    # GNU is probably the most common, so check that one as soon as
    # possible.  Intel pretends to be GNU, so need to check Intel
    # before checking for GNU.

    # Intel
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="intel"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # GNU
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __GNUC__
#error "symbol __GNUC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="gnu"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Borland Turbo C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TURBOC__
#error "symbol __TURBOC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Borland C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __BORLANDC__
#error "symbol __BORLANDC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Comeau C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __COMO__
#error "symbol __COMO__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="comeau"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Compaq C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DECCXX
#error "symbol __DECCXX not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Cray C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef _CRAYC
#error "symbol _CRAYC not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="cray"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Diab C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DCC__
#error "symbol __DCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="diab"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Digital Mars
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="digital mars"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # HP ANSI C / aC++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__HP_cc) || defined(__HP_aCC) )
#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="hp"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # IBM XL C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="ibm"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(_AIX) && !defined(__GNUC__) )
#error "condition defined(_AIX) && !defined(__GNUC__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="ibm"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # KAI C++ (rest in peace)
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __KCC
#error "symbol __KCC not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="kai"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # LCC
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __LCC__
#error "symbol __LCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="lcc"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MetaWare High C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __HIGHC__
#error "symbol __HIGHC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="metaware high"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Metrowerks Codewarrior
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __MWERKS__
#error "symbol __MWERKS__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="metrowerks"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MIPSpro (SGI)
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(sgi) || defined(__sgi) )
#error "condition defined(sgi) || defined(__sgi) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sgi"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MPW C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="mpw"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Microsoft
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :
  # Always use C compiler when checking for Microsoft, as
           # Visual C++ doesn't recognize .cc as a C++ file.
           ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(_MSC_VER) || defined(__MSC_VER) )
#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="microsoft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
           ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

fi

    # Norcroft C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __CC_NORCROFT
#error "symbol __CC_NORCROFT not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="norcroft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Pelles C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __POCC__
#error "symbol __POCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="pelles"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Portland Group
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __PGI
#error "symbol __PGI not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="portland group"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # SAS/C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sas"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Sun Workshop C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sun"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # TenDRA C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TenDRA__
#error "symbol __TenDRA__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="tendra"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Tiny C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TINYC__
#error "symbol __TINYC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="tiny"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # USL C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __USLC__
#error "symbol __USLC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="usl"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Watcom C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __WATCOMC__
#error "symbol __WATCOMC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="watcom"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result"
    unset ompi_check_compiler_vendor_result

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_compiler_vendor" >&5
$as_echo "$ompi_cv_cxx_compiler_vendor" >&6; }

    opal_cxx_vendor="$ompi_cv_c_compiler_vendor"



    # Do we want code coverage
    if test "$WANT_COVERAGE" = "1"; then
        if test "$opal_cxx_vendor" = "gnu" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $OPAL_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
$as_echo "$as_me: WARNING: $OPAL_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}
            WANT_DEBUG=1
            CXXFLAGS="${CXXFLAGS} $OPAL_COVERAGE_FLAGS"
            WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OPAL_COVERAGE_FLAGS"
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Code coverage functionality is currently available only with GCC suite" >&5
$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;}
            as_fn_error "Configure: cannot continue" "$LINENO" 5
        fi
    fi

    # Do we want debugging?
    if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
        CXXFLAGS="$CXXFLAGS -g"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5
$as_echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;}
    fi

    # These flags are generally g++-specific; even the g++-impersonating
    # compilers won't accept them.
    OPAL_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS"
    if test "$WANT_PICKY_COMPILER" = 1 -a "$opal_cxx_vendor" = "gnu"; then
        add="-Wall -Wundef -Wno-long-long"

        # see if -Wno-long-double works...
        ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        CXXFLAGS_orig="$CXXFLAGS"
        CXXFLAGS="$CXXFLAGS $add -Wno-long-double -fstrict-prototype"
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports -Wno-long-double" >&5
$as_echo_n "checking if $CXX supports -Wno-long-double... " >&6; }
if test "${opal_cv_cxx_wno_long_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  opal_cv_cxx_wno_long_double="yes"
else
  opal_cv_cxx_wno_long_double="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_cxx_wno_long_double" >&5
$as_echo "$opal_cv_cxx_wno_long_double" >&6; }
        CXXFLAGS="$CXXFLAGS_orig"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        if test "$opal_cv_cxx_wno_long_double" = "yes" ; then
            add="$add -Wno-long-double"
        fi

        CXXFLAGS="$CXXFLAGS $add"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        if test "$add" != "" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5
$as_echo "$as_me: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&2;}
        fi
        unset add
    fi

    # See if this version of g++ allows -finline-functions
    if test "$GXX" = "yes"; then
        CXXFLAGS_orig="$CXXFLAGS"
        CXXFLAGS="$CXXFLAGS -finline-functions"
        add=
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports -finline-functions" >&5
$as_echo_n "checking if $CXX supports -finline-functions... " >&6; }
if test "${opal_cv_cxx_finline_functions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv_cxx_finline_functions="yes"
else
  opal_cv_cxx_finline_functions="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_cxx_finline_functions" >&5
$as_echo "$opal_cv_cxx_finline_functions" >&6; }
        if test "$opal_cv_cxx_finline_functions" = "yes" ; then
            add=" -finline-functions"
        fi
        CXXFLAGS="$CXXFLAGS_orig$add"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        if test "$add" != "" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CXXFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CXXFLAGS" >&2;}
        fi
        unset add
    fi

    # Make sure we can link with the C compiler
    if test "$opal_cv_cxx_compiler_vendor" != "microsoft" ; then



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C and C++ are link compatible" >&5
$as_echo_n "checking if C and C++ are link compatible... " >&6; }
if test "${ompi_cv_c_link_Cpp+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

     testfunc_name="testfunc"

     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:17285: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:17292: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" int testfunc(int);
#else
extern int testfunc(int);
#endif

int
main ()
{
return testfunc(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_cv_c_link_Cpp="yes"
else
  ompi_cv_c_link_Cpp="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Cpp="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_link_Cpp" >&5
$as_echo "$ompi_cv_c_link_Cpp" >&6; }

  if test "x$ompi_cv_c_link_Cpp" = x""yes; then :

else
  cat <<EOF >&2
**********************************************************************
* It appears that your C++ compiler is unable to link against object
* files created by your C compiler.  This generally indicates either
* a conflict between the options specified in CFLAGS and CXXFLAGS
* or a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compilers and what error resulted when the commands were executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
         as_fn_error "C and C++ compilers are not link compatible.  Can not continue." "$LINENO" 5
fi

    fi

    # If we are on HP-UX, ensure that we're using aCC
    case "$host" in
    *hpux*)
        if test "$BASECXX" = "CC"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You will probably have problems compiling the MPI 2" >&5
$as_echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&5
$as_echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&5
$as_echo "$as_me: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the environment variable \"CXX=aCC\"." >&5
$as_echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;}
        fi
        ;;
    esac

    # Note: gcc-imperonating compilers accept -O3
    if test "$WANT_DEBUG" = "1"; then
        OPTFLAGS=
    else
        if test "$GXX" = yes; then
            OPTFLAGS="-O3"
        else
            OPTFLAGS="-O"
        fi
    fi

    # config/opal_ensure_contains_optflags.m4


# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$CXXFLAGS""
co_found=0
for co_word in $co_arg; do
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  co_found=1 ;;

    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ optimization flags" >&5
$as_echo_n "checking for C++ optimization flags... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $co_result" >&5
$as_echo "$co_result" >&6; }
    CXXFLAGS="$co_result"

    # bool type size and alignment
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
$as_echo_n "checking size of bool... " >&6; }
if test "${ac_cv_sizeof_bool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_bool" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (bool)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_bool=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
$as_echo "$ac_cv_sizeof_bool" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_BOOL $ac_cv_sizeof_bool
_ACEOF



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of bool" >&5
$as_echo_n "checking alignment of bool... " >&6; }
if test "${ompi_cv_c_align_bool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_cxx_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_bool"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; bool x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
  ompi_cv_c_align_bool=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_bool" >&5
$as_echo "$ompi_cv_c_align_bool" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_CXX_BOOL $ompi_cv_c_align_bool
_ACEOF

eval "OPAL_ALIGNMENT_CXX_BOOL=$ompi_cv_c_align_bool"

rm -rf conftest*
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



# The MPI project has a boatload more C++ tests (ORTE does not).

    ompi_show_subtitle "C++ compiler and preprocessor"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_cxxflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_cxxflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    ompi_cxxflags_save="$CXXFLAGS"
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    CXXFLAGS="$ompi_cxxflags_save"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done








    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_cxx_compiler_works; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_cxx_compiler_works\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # There's a few cases here:
    #
    # 1. --enable-mpi-cxx was supplied: error if we don't find a C++
    #    compiler
    # 2. --disable-mpi-cxx was supplied: check for a C++ compiler anyway
    #    (so we can have a functional mpic++ wrapper compiler), but
    #    don't error if we don't find one.
    # 3. neither was specified: same was #2
    #
    # Then only proceed to do all the rest of the C++ checks if we
    # both found a c++ compiler and want the C++ bindings (i.e., either
    # case #1 or #3)

    # Must REQUIRE the PROG_CXX macro and not call it directly here for
    # reasons well-described in the AC2.64 (and beyond) docs.

    BASECXX="`basename $CXX`"

    if test "x$CXX" = "x"; then :
  CXX=none
fi
    set dummy $CXX
    ompi_cxx_argv0=$2

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$ompi_cxx_argv0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_CXX_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    if test "x$OMPI_CXX_ABSOLUTE" = "x"; then :
  OMPI_CXX_ABSOLUTE=none
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX "$CXX"
_ACEOF



    # Make sure that the C++ compiler both works and is actually a C++
    # compiler (if not cross-compiling).  Don't just use the AC macro
    # so that we can have a pretty message.  Do something here that
    # should force the linking of C++-specific things (e.g., STL
    # strings) so that we can force a hard check of compiling,
    # linking, and running a C++ application.  Note that some C
    # compilers, such as at least some versions of the GNU and Intel
    # compilers, will detect that the file extension is ".cc" and
    # therefore switch into a pseudo-C++ personality which works for
    # *compiling*, but does not work for *linking*.  So in this test,
    # we want to cover the entire spectrum (compiling, linking,
    # running).  Note that it is not a fatal error if the C++ compiler
    # does not work unless the user specifically requested the C++
    # bindings.
    if test "$CXX" = "none"; then :
  ompi_cxx_compiler_works=no
else
  if test "$ompi_cv_cxx_compiler_vendor" = "microsoft" ; then :
  ompi_cxx_compiler_works=yes
else


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler works" >&5
$as_echo_n "checking if C++ compiler works... " >&6; }
if test "${ompi_cv_Cpp_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

         if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string>

int
main ()
{
std::string foo = "Hello, world"
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_cv_Cpp_works="links (cross compiling)"
else
  ompi_cv_Cpp_works="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string>

int
main ()
{
std::string foo = "Hello, world"
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
  ompi_cv_Cpp_works="yes"
else
  ompi_cv_Cpp_works="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_Cpp_works" >&5
$as_echo "$ompi_cv_Cpp_works" >&6; }
    if test "x$ompi_cv_Cpp_works" = x""no; then :
  cat <<EOF >&2
**********************************************************************
* It appears that your C++ compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
           ompi_cxx_compiler_works=no
else
  ompi_cxx_compiler_works=yes
fi


fi
fi

    if test "$ompi_cxx_compiler_works" = "yes"; then :

    # Do we want code coverage
    if test "$WANT_COVERAGE" = "1"; then
        if test "$ompi_cxx_vendor" = "gnu" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
$as_echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}
            WANT_DEBUG=1
            CXXFLAGS="${CXXFLAGS} $OMPI_COVERAGE_FLAGS"
            WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OMPI_COVERAGE_FLAGS"
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Code coverage functionality is currently available only with GCC suite" >&5
$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;}
            as_fn_error "Configure: cannot continue" "$LINENO" 5
        fi
    fi

    # Do we want debugging?
    if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
        CXXFLAGS="$CXXFLAGS -g"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5
$as_echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;}
    fi

    # These flags are generally g++-specific; even the g++-impersonating
    # compilers won't accept them.
    OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS"
    if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then
        add="-Wall -Wundef -Wno-long-long"

        # see if -Wno-long-double works...
        ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        CXXFLAGS_orig="$CXXFLAGS"
        CXXFLAGS="$CXXFLAGS $add -Wno-long-double -fstrict-prototype"
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports -Wno-long-double" >&5
$as_echo_n "checking if $CXX supports -Wno-long-double... " >&6; }
if test "${ompi_cv_cxx_wno_long_double+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_cv_cxx_wno_long_double="yes"
else
  ompi_cv_cxx_wno_long_double="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_wno_long_double" >&5
$as_echo "$ompi_cv_cxx_wno_long_double" >&6; }
        CXXFLAGS="$CXXFLAGS_orig"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        if test "$ompi_cv_cxx_wno_long_double" = "yes" ; then
            add="$add -Wno-long-double"
        fi

        CXXFLAGS="$CXXFLAGS $add"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        if test "$add" != "" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5
$as_echo "$as_me: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&2;}
        fi
        unset add
    fi

    # See if this version of g++ allows -finline-functions
    if test "$GXX" = "yes"; then
        CXXFLAGS_orig="$CXXFLAGS"
        CXXFLAGS="$CXXFLAGS -finline-functions"
        add=
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports -finline-functions" >&5
$as_echo_n "checking if $CXX supports -finline-functions... " >&6; }
if test "${ompi_cv_cxx_finline_functions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_cxx_finline_functions="yes"
else
  ompi_cv_cxx_finline_functions="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_finline_functions" >&5
$as_echo "$ompi_cv_cxx_finline_functions" >&6; }
        if test "$ompi_cv_cxx_finline_functions" = "yes" ; then
            add=" -finline-functions"
        fi
        CXXFLAGS="$CXXFLAGS_orig$add"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        if test "$add" != "" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CXXFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CXXFLAGS" >&2;}
        fi
        unset add
    fi

    # Make sure we can link with the C compiler
    if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C and C++ are link compatible" >&5
$as_echo_n "checking if C and C++ are link compatible... " >&6; }
if test "${ompi_cv_c_link_Cpp+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

     testfunc_name="testfunc"

     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:18772: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:18779: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" int testfunc(int);
#else
extern int testfunc(int);
#endif

int
main ()
{
return testfunc(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_cv_c_link_Cpp="yes"
else
  ompi_cv_c_link_Cpp="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Cpp="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_link_Cpp" >&5
$as_echo "$ompi_cv_c_link_Cpp" >&6; }

  if test "x$ompi_cv_c_link_Cpp" = x""yes; then :

else
  cat <<EOF >&2
**********************************************************************
* It appears that your C++ compiler is unable to link against object
* files created by your C compiler.  This generally indicates either
* a conflict between the options specified in CFLAGS and CXXFLAGS
* or a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compilers and what error resulted when the commands were executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
         as_fn_error "C and C++ compilers are not link compatible.  Can not continue." "$LINENO" 5
fi

    fi

    # If we are on HP-UX, ensure that we're using aCC
    case "$host" in
    *hpux*)
        if test "$BASECXX" = "CC"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You will probably have problems compiling the MPI 2" >&5
$as_echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&5
$as_echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&5
$as_echo "$as_me: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the environment variable \"CXX=aCC\"." >&5
$as_echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;}
        fi
        ;;
    esac

    # Note: gcc-imperonating compilers accept -O3
    if test "$WANT_DEBUG" = "1"; then
        OPTFLAGS=
    else
        if test "$GXX" = yes; then
            OPTFLAGS="-O3"
        else
            OPTFLAGS="-O"
        fi
    fi

    # config/ompi_ensure_contains_optflags.m4


# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$CXXFLAGS""
co_found=0
for co_word in $co_arg; do
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  co_found=1 ;;

    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ optimization flags" >&5
$as_echo_n "checking for C++ optimization flags... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $co_result" >&5
$as_echo "$co_result" >&6; }
    CXXFLAGS="$co_result"

    # bool type size and alignment
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
$as_echo_n "checking size of bool... " >&6; }
if test "${ac_cv_sizeof_bool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_bool" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (bool)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_bool=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
$as_echo "$ac_cv_sizeof_bool" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_BOOL $ac_cv_sizeof_bool
_ACEOF



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of bool" >&5
$as_echo_n "checking alignment of bool... " >&6; }
if test "${ompi_cv_c_align_bool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if ac_fn_cxx_compute_int "$LINENO" "(long int) offsetof (ompi__type_alignof_, y)" "ompi_cv_c_align_bool"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  as_fn_error "*** Cannot continue." "$LINENO" 5
fi


else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

    struct foo { char c; bool x; };
    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
    int diff;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    diff = ((char *)&p->x) - ((char *)&p->c);
    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
  ompi_cv_c_align_bool=`cat conftestval`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                as_fn_error "*** Cannot continue." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_align_bool" >&5
$as_echo "$ompi_cv_c_align_bool" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_CXX_BOOL $ompi_cv_c_align_bool
_ACEOF

eval "OPAL_ALIGNMENT_CXX_BOOL=$ompi_cv_c_align_bool"

rm -rf conftest*
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


else
  if test "$enable_mpi_cxx" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find functional C++ compiler, but" >&5
$as_echo "$as_me: WARNING: Could not find functional C++ compiler, but" >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for the C++ MPI bindings was requested." >&5
$as_echo "$as_me: WARNING: support for the C++ MPI bindings was requested." >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  WANT_MPI_CXX_SUPPORT=0
fi
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if able to build the MPI C++ bindings" >&5
$as_echo_n "checking if able to build the MPI C++ bindings... " >&6; }
    if test "$WANT_MPI_CXX_SUPPORT" = "1"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
           if test "$enable_mpi_cxx" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI C++ binding support requested but not delivered" >&5
$as_echo "$as_me: WARNING: MPI C++ binding support requested but not delivered" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "$WANT_MPI_CXX_SUPPORT" = "1"; then :



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C++ compiler vendor" >&5
$as_echo_n "checking for the C++ compiler vendor... " >&6; }
if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


    ompi_check_compiler_vendor_result="unknown"

    # GNU is probably the most common, so check that one as soon as
    # possible.  Intel pretends to be GNU, so need to check Intel
    # before checking for GNU.

    # Intel
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="intel"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # GNU
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __GNUC__
#error "symbol __GNUC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="gnu"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Borland Turbo C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TURBOC__
#error "symbol __TURBOC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Borland C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __BORLANDC__
#error "symbol __BORLANDC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Comeau C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __COMO__
#error "symbol __COMO__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="comeau"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Compaq C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DECCXX
#error "symbol __DECCXX not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="compaq"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Cray C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef _CRAYC
#error "symbol _CRAYC not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="cray"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Diab C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DCC__
#error "symbol __DCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="diab"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Digital Mars
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="digital mars"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # HP ANSI C / aC++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__HP_cc) || defined(__HP_aCC) )
#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="hp"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # IBM XL C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="ibm"
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(_AIX) && !defined(__GNUC__) )
#error "condition defined(_AIX) && !defined(__GNUC__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="ibm"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # KAI C++ (rest in peace)
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __KCC
#error "symbol __KCC not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="kai"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # LCC
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __LCC__
#error "symbol __LCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="lcc"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MetaWare High C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __HIGHC__
#error "symbol __HIGHC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="metaware high"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Metrowerks Codewarrior
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __MWERKS__
#error "symbol __MWERKS__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="metrowerks"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MIPSpro (SGI)
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(sgi) || defined(__sgi) )
#error "condition defined(sgi) || defined(__sgi) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sgi"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # MPW C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="mpw"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Microsoft
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :
  # Always use C compiler when checking for Microsoft, as
           # Visual C++ doesn't recognize .cc as a C++ file.
           ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(_MSC_VER) || defined(__MSC_VER) )
#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="microsoft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
           ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

fi

    # Norcroft C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __CC_NORCROFT
#error "symbol __CC_NORCROFT not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="norcroft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Pelles C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __POCC__
#error "symbol __POCC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="pelles"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Portland Group
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __PGI
#error "symbol __PGI not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="portland group"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # SAS/C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sas"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Sun Workshop C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="sun"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # TenDRA C/C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TenDRA__
#error "symbol __TenDRA__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="tendra"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Tiny C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __TINYC__
#error "symbol __TINYC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="tiny"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # USL C
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __USLC__
#error "symbol __USLC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="usl"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    # Watcom C++
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __WATCOMC__
#error "symbol __WATCOMC__ not defined"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_check_compiler_vendor_result="watcom"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

    ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result"
    unset ompi_check_compiler_vendor_result

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_compiler_vendor" >&5
$as_echo "$ompi_cv_cxx_compiler_vendor" >&6; }

    ompi_cxx_vendor="$ompi_cv_c_compiler_vendor"

fi

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




    # Check for special things due to C++ exceptions
    ENABLE_CXX_EXCEPTIONS=no
    HAVE_CXX_EXCEPTIONS=0
    # Check whether --enable-cxx-exceptions was given.
if test "${enable_cxx_exceptions+set}" = set; then :
  enableval=$enable_cxx_exceptions; ENABLE_CXX_EXCEPTIONS="$enableval"
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want C++ exception handling" >&5
$as_echo_n "checking if want C++ exception handling... " >&6; }

    if test "$WANT_MPI_CXX_SUPPORT" = "0"; then :
  if test "$$enable_cxx_exceptions" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
$as_echo "error" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-cxx-exceptions was specified, but the MPI C++ bindings were disabled" >&5
$as_echo "$as_me: WARNING: --enable-cxx-exceptions was specified, but the MPI C++ bindings were disabled" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
fi
else

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CXX_EXCEPTIONS" >&5
$as_echo "$ENABLE_CXX_EXCEPTIONS" >&6; }
    if test "$ENABLE_CXX_EXCEPTIONS" = "yes"; then
        # config/cxx_have_exceptions.m4

#
# Arguments: None
#
# Depdencies: None
#
# Check to see if the C++ compiler can handle exceptions
#
# Sets OMPI_CXX_EXCEPTIONS to 1 if compiler has exceptions, 0 if not
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for throw/catch" >&5
$as_echo_n "checking for throw/catch... " >&6; }

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int i=1; throw(i);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  OMPI_CXX_EXCEPTIONS=1
else
  OMPI_CXX_EXCPTIONS=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

# Clean up
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        # config/cxx_find_exception_flags.m4

#
# Arguments: none
#
# Dependencies: none
#
# Get the exception handling flags for the C++ compiler.  Leaves
# CXXFLAGS undisturbed.
# Provides --with-exflags command line argument for configure as well.
#
# Sets OMPI_CXX_EXCEPTION_CXXFLAGS and OMPI_CXX_EXCEPTION_LDFLAGS as
# appropriate.
# Must call AC_SUBST manually
#

# Command line flags


# Check whether --with-exflags was given.
if test "${with_exflags+set}" = set; then :
  withval=$with_exflags; ompi_force_exflags="$withval"
fi


ompi_CXXFLAGS_SAVE="$CXXFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler exception flags" >&5
$as_echo_n "checking for compiler exception flags... " >&6; }

# See which flags to use

if test "$ompi_force_exflags" != ""; then

    # If the user supplied flags, use those

    ompi_exflags="$ompi_force_exflags"
elif test "$GXX" = "yes"; then

    # g++ has changed their flags a few times.  Sigh.

    CXXFLAGS="$CXXFLAGS -fexceptions"


    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
try { int i = 0; } catch(...) { int j = 2; }
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_happy=1
else
  ompi_happy=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    if test "$ompi_happy" = "1"; then
	ompi_exflags="-fexceptions";
    else
	CXXFLAGS="$CXXFLAGS_SAVE -fhandle-exceptions"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
try { int i = 0; } catch(...) { int j = 2; }
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_happy=1
else
  ompi_happy=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	if test "$ompi_happy" = "1"; then
	    ompi_exflags="-fhandle-exceptions";
	fi
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

elif test "`basename $CXX`" = "KCC"; then

    # KCC flags

    ompi_exflags="--exceptions"
fi
CXXFLAGS="$ompi_CXXFLAGS_SAVE"

# Save the result

OMPI_CXX_EXCEPTIONS_CXXFLAGS="$ompi_exflags"
OMPI_CXX_EXCEPTIONS_LDFLAGS="$ompi_exflags"
if test "$ompi_exflags" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none necessary" >&5
$as_echo "none necessary" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_exflags" >&5
$as_echo "$ompi_exflags" >&6; }
fi

# Clean up

unset ompi_force_exflags ompi_CXXFLAGS_SAVE ompi_exflags ompi_happy
        if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
            HAVE_CXX_EXCEPTIONS=1

            # Test to see if the C compiler likes these flags
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if C compiler likes the exception flags" >&5
$as_echo_n "checking to see if C compiler likes the exception flags... " >&6; }
            CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"

            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int i = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&5
$as_echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&2;}
                               as_fn_error "*** Cannot continue" "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


            # We can't test the F77 and F90 compilers now because we
            # haven't found/set the up yet.  So just save the flags
            # and test them later (in ompi_setup_f77.m4 and
            # ompi_setup_f90.m4).

            CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
            LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS"

            WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CFLAGS}"
            WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FFLAGS}"
            WRAPPER_EXTRA_FCFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FCFLAGS}"
            WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}"
        fi
    fi

fi


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CXX_EXCEPTION_SUPPORT $HAVE_CXX_EXCEPTIONS
_ACEOF



    if test "$WANT_MPI_CXX_SUPPORT" = "1"; then :



    #
    # Arguments: None
    #
    # Dependencies: None
    #
    # See if the compiler makes template repository directories
    # Warning: this is a really screwy example! -JMS
    #
    # Sets OMPI_CXX_TEMPLATE_REPOSITORY to the template repository, or blank.
    # Must call AC_SUBST manually
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ template_repository_directory" >&5
$as_echo_n "checking for C++ template_repository_directory... " >&6; }
if test "${ompi_cv_cxx_template_repository+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

# Find the repository
mkdir conf_tmp_$$
cd conf_tmp_$$
cat > conftest.h <<EOF
template <class T>
class foo {
public:
  foo(T yow) : data(yow) { yow.member(3); };
  void member(int i);
private:
  T data;
};

class bar {
public:
  bar(int i) { data = i; };
  void member(int j) { data = data * j; };

private:
  int data;
};
EOF

cat > conftest2.C <<EOF
#include "conftest.h"

void
some_other_function(void)
{
  foo<bar> var1(6);
  foo< foo<bar> > var2(var1);
}
EOF

cat > conftest1.C <<EOF
#include "conftest.h"

void some_other_function(void);

template <class T>
void
foo<T>::member(int i)
{
  i += 2;
}

int
main()
{
  foo<bar> var1(6);
  foo< foo<bar> > var2(var1);

  some_other_function();
  return 0;
}
EOF

ompi_template_failed=
echo configure:19978: $CXX $CXXFLAGS -c conftest1.C >&5
$CXX $CXXFLAGS -c conftest1.C >&5 2>&5
if test ! -f conftest1.o ; then
    ompi_cv_cxx_template_repository="templates not supported"
    echo configure:19982: here is the program that failed: >&5
    cat conftest1.C >&5
    echo configure:19984: here is conftest.h: >&5
    cat conftest.h >&5
    ompi_template_failed=1
else
    echo configure:19988: $CXX $CXXFLAGS -c conftest2.C >&5
    $CXX $CXXFLAGS -c conftest2.C >&5 2>&5
    if test ! -f conftest2.o ; then
        ompi_cv_cxx_template_repository=
	echo configure:19992: here is the program that failed: >&5
	cat conftest2.C >&5
	echo configure:19994: here is conftest.h: >&5
	cat conftest.h >&5
    else
	rm -rf conftest*

	for ompi_file in `ls`
	do
	    if test "$ompi_file" != "." -a "$ompi_file" != ".."; then
		# Is it a directory?
		if test -d "$ompi_file"; then
		    ompi_template_dir="$ompi_file $ompi_template_dir"

		# Or is it a file?
		else
		    name="`echo $ompi_file | cut -d. -f1`"

		    temp_mask=
		    if test "$name" = "main" -o "$name" = "other"; then
			temp_mask="`echo $ompi_file | cut -d. -f2`"
			if test "$ompi_template_filemask" = ""; then
			ompi_template_filemask="$temp_mask";
			elif test "`echo $ompi_template_filemask | $GREP $temp_mask`" = ""; then
			ompi_template_filemask="$ompi_template_filemask $temp_mask"
			fi
		    fi
		fi
	    fi
	done
	if test "$ompi_template_filemask" != ""; then
	    temp_mask=
	    for mask in $ompi_template_filemask
	    do
		temp_mask="*.$mask $temp_mask"
	    done
	    ompi_template_filemask=$temp_mask
	fi
    fi
fi
ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask"

if test "`echo $ompi_cv_cxx_template_repository`" = ""; then
    ompi_cv_cxx_template_repository="not used"
fi
cd ..
rm -rf conf_tmp_$$

# Clean up
unset ompi_file ompi_template_failed ompi_template_dir
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_template_repository" >&5
$as_echo "$ompi_cv_cxx_template_repository" >&6; }

    if test "$ompi_cv_cxx_template_repository" = "not used" ; then
        OMPI_CXX_TEMPLATE_REPOSITORY=
    elif test "$ompi_cv_cxx_template_repository" = "templates not supported" ; then
        OMPI_CXX_TEMPLATE_REPOSITORY=
    else
        OMPI_CXX_TEMPLATE_REPOSITORY="$ompi_cv_cxx_template_repository"
    fi


#
# Arguments: none
#
# Dependencies: None
#
# Get the C++ compiler template parameters.
#
# Adds to CXXFLAGS

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler template parameters" >&5
$as_echo_n "checking for C++ compiler template parameters... " >&6; }
if test "$BASECXX" = "KCC"; then
  new_flags="--one_instantiation_per_object"
  CXXFLAGS="$CXXFLAGS $new_flags"
else
  new_flags="none needed"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $new_flags" >&5
$as_echo "$new_flags" >&6; }

#
# Clean up
#
unset new_flags


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ ident string support" >&5
$as_echo_n "checking for C++ ident string support... " >&6; }

    opal_pragma_ident_happy=0
    opal_ident_happy=0
    opal_static_const_char_happy=0

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20108: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20115: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_ident_happy=1
         ompi_message="#pragma ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20150: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20157: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20192: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20199: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20221: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20249: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20279: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20286: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20308: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20351: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20358: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20380: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20417: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20447: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20454: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20489: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20496: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20518: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20546: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20576: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20583: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20605: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20648: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20655: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20677: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20729: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20736: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20771: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20778: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20800: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20828: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20858: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20865: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20887: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:20930: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:20937: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then :
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then :
  opal_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:20959: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             opal_static_const_char_happy=1
                 ompi_message="static const char"
                            opal_static_const_char_happy=1
                 ompi_message="static const char"
fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi
else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}



cat >>confdefs.h <<_ACEOF
#define OPAL_CXX_USE_PRAGMA_IDENT $opal_pragma_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_CXX_USE_IDENT $opal_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_CXX_USE_PRAGMA_COMMENT $opal_pragma_comment_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_CXX_USE_CONST_CHAR_IDENT $opal_static_const_char_happy
_ACEOF


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_message" >&5
$as_echo "$ompi_message" >&6; }

    unset opal_pragma_ident_happy opal_ident_happy opal_static_const_char_happy ompi_message

fi




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in have_cxx_builtin_expect have_cxx_builtin_prefetch; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"have_cxx_builtin_expect have_cxx_builtin_prefetch\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    have_cxx_builtin_expect=0
    have_cxx_builtin_prefetch=0

    if test "$WANT_MPI_CXX_SUPPORT" = "1"; then :


    # see if the C++ compiler supports __builtin_expect
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports __builtin_expect" >&5
$as_echo_n "checking if $CXX supports __builtin_expect... " >&6; }
if test "${ompi_cv_cxx_supports___builtin_expect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
void *ptr = (void*) 0;
           if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_cv_cxx_supports___builtin_expect="yes"
else
  ompi_cv_cxx_supports___builtin_expect="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_supports___builtin_expect" >&5
$as_echo "$ompi_cv_cxx_supports___builtin_expect" >&6; }
    if test "$ompi_cv_cxx_supports___builtin_expect" = "yes" ; then
        have_builtin_expect=1
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    # see if the C compiler supports __builtin_prefetch
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports __builtin_prefetch" >&5
$as_echo_n "checking if $CXX supports __builtin_prefetch... " >&6; }
if test "${ompi_cv_cxx_supports___builtin_prefetch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int ptr;
           __builtin_prefetch(&ptr,0,0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_cv_cxx_supports___builtin_prefetch="yes"
else
  ompi_cv_cxx_supports___builtin_prefetch="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_supports___builtin_prefetch" >&5
$as_echo "$ompi_cv_cxx_supports___builtin_prefetch" >&6; }
    if test "$ompi_cv_cxx_supports___builtin_prefetch" = "yes" ; then
        have_builtin_prefetch=1
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


fi


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_HAVE_BUILTIN_EXPECT $have_cxx_builtin_expect
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_HAVE_BUILTIN_PREFETCH $have_cxx_builtin_prefetch
_ACEOF



    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in use_2d_const_cast; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"use_2d_const_cast\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    use_2d_const_cast=0

    if test "$WANT_MPI_CXX_SUPPORT" = "1"; then :

    # see if the compiler supports const_cast of 2-dimensional arrays
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports const_cast<> properly" >&5
$as_echo_n "checking if $CXX supports const_cast<> properly... " >&6; }
if test "${ompi_cv_cxx_supports_2d_const_cast+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int non_const_func(int ranges[][3]);
int cast_test(const int ranges[][3]) {
  return non_const_func(const_cast<int(*)[3]>(ranges));
}
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ompi_cv_cxx_supports_2d_const_cast="yes"
else
  ompi_cv_cxx_supports_2d_const_cast="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cxx_supports_2d_const_cast" >&5
$as_echo "$ompi_cv_cxx_supports_2d_const_cast" >&6; }
    if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then
        use_2d_const_cast=1
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


fi


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_SUPPORTS_2D_CONST_CAST $use_2d_const_cast
_ACEOF



    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



     if test "$WANT_MPI_CXX_SUPPORT" = 1; then
  WANT_MPI_CXX_BINDINGS_TRUE=
  WANT_MPI_CXX_BINDINGS_FALSE='#'
else
  WANT_MPI_CXX_BINDINGS_TRUE='#'
  WANT_MPI_CXX_BINDINGS_FALSE=
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_CXX_BINDINGS $WANT_MPI_CXX_SUPPORT
_ACEOF



##################################
# Only after setting up both
# C and C++ check compiler attributes.
##################################

ompi_show_subtitle "Compiler characteristics"


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
$as_echo_n "checking for __attribute__... " >&6; }

  if test "${opal_cv___attribute__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
       /* Check for the longest available __attribute__ (since gcc-2.3) */
       struct foo {
           char a;
           int x[2] __attribute__ ((__packed__));
        };

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__=1
else
  opal_cv___attribute__=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    if test "$opal_cv___attribute__" = "1" ; then
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
           /* Check for the longest available __attribute__ (since gcc-2.3) */
           struct foo {
               char a;
               int x[2] __attribute__ ((__packed__));
            };

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__=1
else
  opal_cv___attribute__=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi

fi


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE $opal_cv___attribute__
_ACEOF


#
# Now that we know the compiler support __attribute__ let's check which kind of
# attributed are supported.
#
  if test "$opal_cv___attribute__" = "0" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    opal_cv___attribute__aligned=0
    opal_cv___attribute__always_inline=0
    opal_cv___attribute__cold=0
    opal_cv___attribute__const=0
    opal_cv___attribute__deprecated=0
    opal_cv___attribute__deprecated_argument=0
    opal_cv___attribute__format=0
    opal_cv___attribute__format_funcptr=0
    opal_cv___attribute__hot=0
    opal_cv___attribute__malloc=0
    opal_cv___attribute__may_alias=0
    opal_cv___attribute__no_instrument_function=0
    opal_cv___attribute__nonnull=0
    opal_cv___attribute__noreturn=0
    opal_cv___attribute__noreturn_funcptr=0
    opal_cv___attribute__packed=0
    opal_cv___attribute__pure=0
    opal_cv___attribute__sentinel=0
    opal_cv___attribute__unused=0
    opal_cv___attribute__visibility=0
    opal_cv___attribute__warn_unused_result=0
    opal_cv___attribute__weak_alias=0
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5
$as_echo_n "checking for __attribute__(aligned)... " >&6; }
    if test "${opal_cv___attribute__aligned+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__aligned=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__aligned=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__aligned=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__aligned" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {
                           struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__aligned=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__aligned=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__aligned=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__aligned" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__aligned=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__aligned=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__aligned=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__aligned" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


    #
    # Ignored by PGI-6.2.5; -- recognized by output-parser
    #

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5
$as_echo_n "checking for __attribute__(always_inline)... " >&6; }
    if test "${opal_cv___attribute__always_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (int arg) __attribute__ ((__always_inline__));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__always_inline=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__always_inline=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__always_inline" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {
                           int foo (int arg) __attribute__ ((__always_inline__));
                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__always_inline=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__always_inline=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__always_inline=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__always_inline=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__always_inline" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5
$as_echo_n "checking for __attribute__(cold)... " >&6; }
    if test "${opal_cv___attribute__cold+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__cold__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__cold=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__cold=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__cold=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__cold" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__cold__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__cold=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__cold=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__cold=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__cold" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__cold=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__cold=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__cold=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__cold" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5
$as_echo_n "checking for __attribute__(const)... " >&6; }
    if test "${opal_cv___attribute__const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__const__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__const=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__const=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__const=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__const" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__const__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__const=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__const=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__const=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__const" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__const=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__const=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__const=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__const" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5
$as_echo_n "checking for __attribute__(deprecated)... " >&6; }
    if test "${opal_cv___attribute__deprecated+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__deprecated=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__deprecated=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__deprecated" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__deprecated=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__deprecated=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__deprecated=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__deprecated=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__deprecated" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated_argument)" >&5
$as_echo_n "checking for __attribute__(deprecated_argument)... " >&6; }
    if test "${opal_cv___attribute__deprecated_argument+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__("compiler allows argument")));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__deprecated_argument=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__deprecated_argument=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__deprecated_argument=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__deprecated_argument" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__("compiler allows argument")));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__deprecated_argument=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__deprecated_argument=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__deprecated_argument=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__deprecated_argument" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__deprecated_argument=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__deprecated_argument=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__deprecated_argument=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__deprecated_argument" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we want specifically the warning on format string conversion
            ATTRIBUTE_CFLAGS="-we181"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5
$as_echo_n "checking for __attribute__(format)... " >&6; }
    if test "${opal_cv___attribute__format+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__format=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__format=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__format=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__format" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__format=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__format=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__format=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__format" = "1" -a "
         static int usage (int * argument);
         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage (int * argument);
         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__format=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__format=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__format=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__format" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we want specifically the warning on format string conversion
            ATTRIBUTE_CFLAGS="-we181"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format_funcptr)" >&5
$as_echo_n "checking for __attribute__(format_funcptr)... " >&6; }
    if test "${opal_cv___attribute__format_funcptr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int (*this_printf)(void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__format_funcptr=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__format_funcptr=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__format_funcptr=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__format_funcptr" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int (*this_printf)(void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__format_funcptr=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__format_funcptr=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__format_funcptr=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__format_funcptr" = "1" -a "
         static int usage (int * argument);
         extern int (*this_printf) (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return (*this_printf) (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage (int * argument);
         extern int (*this_printf) (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return (*this_printf) (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__format_funcptr=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__format_funcptr=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__format_funcptr=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__format_funcptr" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5
$as_echo_n "checking for __attribute__(hot)... " >&6; }
    if test "${opal_cv___attribute__hot+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__hot__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__hot=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__hot=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__hot=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__hot" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__hot__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__hot=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__hot=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__hot=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__hot" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__hot=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__hot=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__hot=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__hot" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5
$as_echo_n "checking for __attribute__(malloc)... " >&6; }
    if test "${opal_cv___attribute__malloc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         int * foo(int arg1) __attribute__ ((__malloc__));
         int * foo(int arg1) { return (int*) malloc(arg1); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__malloc=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__malloc=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__malloc=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__malloc" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         int * foo(int arg1) __attribute__ ((__malloc__));
         int * foo(int arg1) { return (int*) malloc(arg1); }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__malloc=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__malloc=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__malloc=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__malloc" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__malloc=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__malloc=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__malloc=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__malloc" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
    # Ignored by intel-9.1.045 -- turn off with -wd1292
    # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
    #

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5
$as_echo_n "checking for __attribute__(may_alias)... " >&6; }
    if test "${opal_cv___attribute__may_alias+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int * p_value __attribute__ ((__may_alias__));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__may_alias=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__may_alias=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__may_alias" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {
                           int * p_value __attribute__ ((__may_alias__));
                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__may_alias=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__may_alias=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__may_alias=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__may_alias=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__may_alias" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5
$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; }
    if test "${opal_cv___attribute__no_instrument_function+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int * foo(int arg1) __attribute__ ((__no_instrument_function__));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__no_instrument_function=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__no_instrument_function=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__no_instrument_function" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {
                           int * foo(int arg1) __attribute__ ((__no_instrument_function__));
                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__no_instrument_function=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__no_instrument_function=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__no_instrument_function=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__no_instrument_function=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__no_instrument_function" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute nonnull:
    # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
    #
    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings, but rather real warnings
            ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5
$as_echo_n "checking for __attribute__(nonnull)... " >&6; }
    if test "${opal_cv___attribute__nonnull+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int *arg) __attribute__ ((__nonnull__));
         int square(int *arg) { return *arg; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__nonnull=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__nonnull=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__nonnull" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int square(int *arg) __attribute__ ((__nonnull__));
         int square(int *arg) { return *arg; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__nonnull=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__nonnull=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__nonnull" = "1" -a "
         static int usage(int * argument);
         int square(int * argument) __attribute__ ((__nonnull__));
         int square(int * argument) { return (*argument) * (*argument); }

         static int usage(int * argument) {
             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage(int * argument);
         int square(int * argument) __attribute__ ((__nonnull__));
         int square(int * argument) { return (*argument) * (*argument); }

         static int usage(int * argument) {
             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__nonnull=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__nonnull=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__nonnull" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5
$as_echo_n "checking for __attribute__(noreturn)... " >&6; }
    if test "${opal_cv___attribute__noreturn+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         void fatal(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { exit(arg1); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__noreturn=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__noreturn=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__noreturn" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         void fatal(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { exit(arg1); }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__noreturn=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__noreturn=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__noreturn=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__noreturn=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__noreturn" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn_funcptr)" >&5
$as_echo_n "checking for __attribute__(noreturn_funcptr)... " >&6; }
    if test "${opal_cv___attribute__noreturn_funcptr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         extern void (*fatal_exit)(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { fatal_exit (arg1); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__noreturn_funcptr=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__noreturn_funcptr=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__noreturn_funcptr=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__noreturn_funcptr" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         extern void (*fatal_exit)(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { fatal_exit (arg1); }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__noreturn_funcptr=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__noreturn_funcptr=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__noreturn_funcptr=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__noreturn_funcptr" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__noreturn_funcptr=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__noreturn_funcptr=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__noreturn_funcptr=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__noreturn_funcptr" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5
$as_echo_n "checking for __attribute__(packed)... " >&6; }
    if test "${opal_cv___attribute__packed+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         struct foo {
             char a;
             int x[2] __attribute__ ((__packed__));
         };

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__packed=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__packed=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__packed=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__packed" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         struct foo {
             char a;
             int x[2] __attribute__ ((__packed__));
         };

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__packed=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__packed=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__packed=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__packed" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__packed=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__packed=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__packed=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__packed" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5
$as_echo_n "checking for __attribute__(pure)... " >&6; }
    if test "${opal_cv___attribute__pure+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int arg) __attribute__ ((__pure__));
         int square(int arg) { return arg * arg; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__pure=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__pure=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__pure=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__pure" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int square(int arg) __attribute__ ((__pure__));
         int square(int arg) { return arg * arg; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__pure=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__pure=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__pure=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__pure" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__pure=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__pure=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__pure=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__pure" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


    #
    # Attribute sentinel:
    # Ignored by the intel-9.1.045 -- recognized by cross-check
    #                intel-10.0beta works fine
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
    #
    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings
            ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5
$as_echo_n "checking for __attribute__(sentinel)... " >&6; }
    if test "${opal_cv___attribute__sentinel+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__sentinel=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__sentinel=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__sentinel" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__sentinel=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__sentinel=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__sentinel" = "1" -a "
         static int usage(int * argument);
         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

         static int usage(int * argument) {
             void * last_arg_should_be_null = argument;
             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage(int * argument);
         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

         static int usage(int * argument) {
             void * last_arg_should_be_null = argument;
             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__sentinel=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__sentinel=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__sentinel" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5
$as_echo_n "checking for __attribute__(unused)... " >&6; }
    if test "${opal_cv___attribute__unused+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int arg1 __attribute__ ((__unused__)), int arg2);
         int square(int arg1, int arg2) { return arg2; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__unused=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__unused=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__unused=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__unused" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int square(int arg1 __attribute__ ((__unused__)), int arg2);
         int square(int arg1, int arg2) { return arg2; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__unused=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__unused=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__unused=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__unused" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__unused=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__unused=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__unused=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__unused" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser
    #

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(visibility)" >&5
$as_echo_n "checking for __attribute__(visibility)... " >&6; }
    if test "${opal_cv___attribute__visibility+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int arg1) __attribute__ ((__visibility__("hidden")));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__visibility=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__visibility=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__visibility=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__visibility" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int square(int arg1) __attribute__ ((__visibility__("hidden")));

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__visibility=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__visibility=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__visibility=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__visibility" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__visibility=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__visibility=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__visibility=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__visibility" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute warn_unused_result:
    # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
    #
    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings
            ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5
$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; }
    if test "${opal_cv___attribute__warn_unused_result+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg) __attribute__ ((__warn_unused_result__));
         int foo(int arg) { return arg + 3; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__warn_unused_result=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__warn_unused_result=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__warn_unused_result" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg) __attribute__ ((__warn_unused_result__));
         int foo(int arg) { return arg + 3; }

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__warn_unused_result=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__warn_unused_result=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__warn_unused_result" = "1" -a "
         static int usage(int * argument);
         int foo(int arg) __attribute__ ((__warn_unused_result__));

         int foo(int arg) { return arg + 3; }
         static int usage(int * argument) {
           foo (*argument);        /* Should produce an unused result warning */
           return 0;
         }

         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage(int * argument);
         int foo(int arg) __attribute__ ((__warn_unused_result__));

         int foo(int arg) { return arg + 3; }
         static int usage(int * argument) {
           foo (*argument);        /* Should produce an unused result warning */
           return 0;
         }

         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__warn_unused_result=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__warn_unused_result=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__warn_unused_result" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5
$as_echo_n "checking for __attribute__(weak_alias)... " >&6; }
    if test "${opal_cv___attribute__weak_alias+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg);
         int foo(int arg) { return arg + 3; }
         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        opal_cv___attribute__weak_alias=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__weak_alias=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$opal_cv___attribute__weak_alias" = "1" ; then
            ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                           extern "C" {

         int foo(int arg);
         int foo(int arg) { return arg + 3; }
         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));

                           }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

                            opal_cv___attribute__weak_alias=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


else
  opal_cv___attribute__weak_alias=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$opal_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_cv___attribute__weak_alias=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 opal_cv___attribute__weak_alias=1


    if test -s conftest.err ; then
        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
        for i in invalid ignore skip undefined ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                opal_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$opal_cv___attribute__weak_alias" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


  fi

  # Now that all the values are set, define them


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_ALIGNED $opal_cv___attribute__aligned
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_ALWAYS_INLINE $opal_cv___attribute__always_inline
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_COLD $opal_cv___attribute__cold
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_CONST $opal_cv___attribute__const
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_DEPRECATED $opal_cv___attribute__deprecated
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_DEPRECATED_ARGUMENT $opal_cv___attribute__deprecated_argument
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_FORMAT $opal_cv___attribute__format
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_FORMAT_FUNCPTR $opal_cv___attribute__format_funcptr
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_HOT $opal_cv___attribute__hot
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_MALLOC $opal_cv___attribute__malloc
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_MAY_ALIAS $opal_cv___attribute__may_alias
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $opal_cv___attribute__no_instrument_function
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_NONNULL $opal_cv___attribute__nonnull
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_NORETURN $opal_cv___attribute__noreturn
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_NORETURN_FUNCPTR $opal_cv___attribute__noreturn_funcptr
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_PACKED $opal_cv___attribute__packed
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_PURE $opal_cv___attribute__pure
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_SENTINEL $opal_cv___attribute__sentinel
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_UNUSED $opal_cv___attribute__unused
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_VISIBILITY $opal_cv___attribute__visibility
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $opal_cv___attribute__warn_unused_result
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_WEAK_ALIAS $opal_cv___attribute__weak_alias
_ACEOF





    lower=familyid
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
$as_echo_n "checking for compiler $lower... " >&6; }
if test "${opal_cv_compiler_FAMILYID+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        if test "$cross_compiling" != "yes" ; then
            CPPFLAGS_orig=$CPPFLAGS
            CPPFLAGS="-I${top_ompi_srcdir}/ompi/include $CPPFLAGS"
            if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include "mpi_portable_platform.h.in"   /* Yes, it is supposed to be a .in-file */

int main (int argc, char * argv[])
{
    FILE * f;
    f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf (f, "%d", PLATFORM_COMPILER_FAMILYID);
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

                eval opal_cv_compiler_FAMILYID=`cat conftestval`;

else

                eval opal_cv_compiler_FAMILYID=0

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

            CPPFLAGS=$CPPFLAGS_orig
        else
            opal_cv_compiler_FAMILYID=0
        fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_compiler_FAMILYID" >&5
$as_echo "$opal_cv_compiler_FAMILYID" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_BUILD_PLATFORM_COMPILER_FAMILYID $opal_cv_compiler_FAMILYID
_ACEOF



    lower=familyname
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
$as_echo_n "checking for compiler $lower... " >&6; }
if test "${opal_cv_compiler_FAMILYNAME+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        if test "$cross_compiling" != "yes" ; then
            CPPFLAGS_orig=$CPPFLAGS
            CPPFLAGS="-I${top_ompi_srcdir}/ompi/include $CPPFLAGS"
            if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include "mpi_portable_platform.h.in"   /* Yes, it is supposed to be a .in-file */

int main (int argc, char * argv[])
{
    FILE * f;
    f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf (f, "%s", _STRINGIFY(PLATFORM_COMPILER_FAMILYNAME));
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

                eval opal_cv_compiler_FAMILYNAME=`cat conftestval`;

else

                eval opal_cv_compiler_FAMILYNAME=UNKNOWN

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

            CPPFLAGS=$CPPFLAGS_orig
        else
            opal_cv_compiler_FAMILYNAME=UNKNOWN
        fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_compiler_FAMILYNAME" >&5
$as_echo "$opal_cv_compiler_FAMILYNAME" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_BUILD_PLATFORM_COMPILER_FAMILYNAME $opal_cv_compiler_FAMILYNAME
_ACEOF



    lower=version
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
$as_echo_n "checking for compiler $lower... " >&6; }
if test "${opal_cv_compiler_VERSION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        if test "$cross_compiling" != "yes" ; then
            CPPFLAGS_orig=$CPPFLAGS
            CPPFLAGS="-I${top_ompi_srcdir}/ompi/include $CPPFLAGS"
            if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include "mpi_portable_platform.h.in"   /* Yes, it is supposed to be a .in-file */

int main (int argc, char * argv[])
{
    FILE * f;
    f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf (f, "%d", PLATFORM_COMPILER_VERSION);
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

                eval opal_cv_compiler_VERSION=`cat conftestval`;

else

                eval opal_cv_compiler_VERSION=0

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

            CPPFLAGS=$CPPFLAGS_orig
        else
            opal_cv_compiler_VERSION=0
        fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_compiler_VERSION" >&5
$as_echo "$opal_cv_compiler_VERSION" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_BUILD_PLATFORM_COMPILER_VERSION $opal_cv_compiler_VERSION
_ACEOF



    lower=version_str
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
$as_echo_n "checking for compiler $lower... " >&6; }
if test "${opal_cv_compiler_VERSION_STR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        if test "$cross_compiling" != "yes" ; then
            CPPFLAGS_orig=$CPPFLAGS
            CPPFLAGS="-I${top_ompi_srcdir}/ompi/include $CPPFLAGS"
            if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include "mpi_portable_platform.h.in"   /* Yes, it is supposed to be a .in-file */

int main (int argc, char * argv[])
{
    FILE * f;
    f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf (f, "%s", _STRINGIFY(PLATFORM_COMPILER_VERSION_STR));
    return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

                eval opal_cv_compiler_VERSION_STR=`cat conftestval`;

else

                eval opal_cv_compiler_VERSION_STR=UNKNOWN

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

            CPPFLAGS=$CPPFLAGS_orig
        else
            opal_cv_compiler_VERSION_STR=UNKNOWN
        fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_compiler_VERSION_STR" >&5
$as_echo "$opal_cv_compiler_VERSION_STR" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_BUILD_PLATFORM_COMPILER_VERSION_STR $opal_cv_compiler_VERSION_STR
_ACEOF





##################################
# Assembler Configuration
##################################

ompi_show_subtitle "Assembler"

# By default we simply use the C compiler to build assembly code.

test "${CCAS+set}" = set || CCAS=$CC
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS



depcc="$CCAS"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CCAS_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false


  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CCAS_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CCAS_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  am__fastdepCCAS_TRUE=
  am__fastdepCCAS_FALSE='#'
else
  am__fastdepCCAS_TRUE='#'
  am__fastdepCCAS_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if test "${lt_cv_path_NM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$ac_tool_prefix"; then
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi


  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if test "${lt_cv_nm_interface+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:26114: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:26117: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:26120: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if test "${ac_cv_path_FGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"




    # Only require C++ if we're building the OMPI project



    # OS X Leopard ld bus errors if you have "-g" or "-gX" in the link line
    # with our assembly (!).  So remove it from CCASFLAGS if it's
    # there (and we're on Leopard).


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_config_asm_flags_new ompi_config_asm_flag; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_config_asm_flags_new ompi_config_asm_flag\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if need to remove -g from CCASFLAGS" >&5
$as_echo_n "checking if need to remove -g from CCASFLAGS... " >&6; }
    case "$host" in
        *-apple-darwin9.*)
            for ompi_config_asm_flag in $CCASFLAGS; do
                # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
                # for an explanation of [ and ] -- they m4 expand
                # to [ and ]
                case $ompi_config_asm_flag in
                -g)            ;;
                -g[0-9]) ;;
                *)
                    ompi_config_asm_flags_new="$ompi_config_asm_flags_new $ompi_config_asm_flag"
                    ;;
                esac
            done
            CCASFLAGS="$ompi_config_asm_flags_new"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: OS X Leopard - yes ($CCASFLAGS)" >&5
$as_echo "OS X Leopard - yes ($CCASFLAGS)" >&6; }
            ;;
        *)
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
            ;;
    esac

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable smp locks" >&5
$as_echo_n "checking whether to enable smp locks... " >&6; }
    # Check whether --enable-smp-locks was given.
if test "${enable_smp_locks+set}" = set; then :
  enableval=$enable_smp_locks;
fi

    if test "$enable_smp_locks" != "no"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        want_smp_locks=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        want_smp_locks=0
    fi

cat >>confdefs.h <<_ACEOF
#define OPAL_WANT_SMP_LOCKS $want_smp_locks
_ACEOF


    if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
        ompi_cv_asm_arch="WINDOWS"
    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .proc/endp is needed" >&5
$as_echo_n "checking if .proc/endp is needed... " >&6; }
if test "${ompi_cv_asm_need_proc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ompi_cv_asm_need_proc="no"
                    cat >conftest.s <<EOF

     .proc mysym
mysym:
     .endp mysym
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  ompi_cv_asm_need_proc="yes"
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  :
fi
rm -rf conftest*
unset ompi_assemble

                    rm -f conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_need_proc" >&5
$as_echo "$ompi_cv_asm_need_proc" >&6; }

    if test "$ompi_cv_asm_need_proc" = "yes" ; then
       ompi_cv_asm_proc=".proc"
       ompi_cv_asm_endproc=".endp"
    else
       ompi_cv_asm_proc="#"
       ompi_cv_asm_endproc="#"
    fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for setting text section" >&5
$as_echo_n "checking directive for setting text section... " >&6; }
    opal_cv_asm_text=""
    if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
        # text section will be brought in with the rest of
        # header for MS - leave blank for now
        opal_cv_asm_text=""
    else
        case $host in
            *-aix*)
                opal_cv_asm_text=".csect .text[PR]"
            ;;
            *)
                opal_cv_asm_text=".text"
            ;;
        esac
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_text" >&5
$as_echo "$opal_cv_asm_text" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_TEXT "$opal_cv_asm_text"
_ACEOF

    OPAL_ASM_TEXT="$opal_cv_asm_text"



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for exporting symbols" >&5
$as_echo_n "checking directive for exporting symbols... " >&6; }
    opal_cv_asm_global=""
    if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
        opal_cv_asm_global="PUBLIC"
    else
        case $host in
            *)
                opal_cv_asm_global=".globl"
            ;;
        esac
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_global" >&5
$as_echo "$opal_cv_asm_global" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_GLOBAL "$opal_cv_asm_global"
_ACEOF

    OPAL_ASM_GLOBAL="$opal_cv_asm_global"





    # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .note.GNU-stack is needed" >&5
$as_echo_n "checking if .note.GNU-stack is needed... " >&6; }
if test "${ompi_cv_asm_gnu_stack_result+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$OBJDUMP" != ""; then :
   # first, see if a simple C program has it set
             cat >conftest.c <<EOF
int testfunc() {return 0; }
EOF

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26469: $CC $CFLAGS -c conftest.c -o conftest.$OBJEXT" >&5
$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:26476: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    $OBJDUMP -x conftest.$OBJEXT | $GREP '\.note\.GNU-stack' > /dev/null && ompi_cv_asm_gnu_stack_result=yes
else
    unset ompi_status

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:26489: the failed program was:" >&5
else
    echo the failed program was: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
                  ompi_cv_asm_gnu_stack_result=no
fi
             if test "$ompi_cv_asm_gnu_stack_result" != "yes" ; then
                 ompi_cv_asm_gnu_stack_result="no"
             fi
             rm -rf conftest.*
else
  ompi_cv_asm_gnu_stack_result="no"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_gnu_stack_result" >&5
$as_echo "$ompi_cv_asm_gnu_stack_result" >&6; }
    if test "$ompi_cv_asm_gnu_stack_result" = "yes" ; then
        ompi_cv_asm_gnu_stack=1
    else
        ompi_cv_asm_gnu_stack=0
    fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking suffix for labels" >&5
$as_echo_n "checking suffix for labels... " >&6; }
    opal_cv_asm_label_suffix=""
    case $host in
        *)
                opal_cv_asm_label_suffix=":"
        ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_label_suffix" >&5
$as_echo "$opal_cv_asm_label_suffix" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_LABEL_SUFFIX "$opal_cv_asm_label_suffix"
_ACEOF

    OPAL_ASM_LABEL_SUFFIX="$opal_cv_asm_label_suffix"



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for global symbol labels" >&5
$as_echo_n "checking prefix for global symbol labels... " >&6; }
if test "${opal_cv_asm_gsym+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    opal_cv_asm_gsym="none"

    for sym in "_" "" "." ; do
        asm_result=0
        echo "configure: trying $sym" >&5
cat > conftest_c.c <<EOF
#ifdef __cplusplus
extern "C" {
#endif
void gsym_test_func(void);
#ifdef __cplusplus
}
#endif
int
main()
{
    gsym_test_func();
    return 0;
}
EOF
        cat >conftest.s <<EOF

$opal_cv_asm_text
$ompi_cv_asm_proc ${sym}gsym_test_func
$opal_cv_asm_global ${sym}gsym_test_func
${sym}gsym_test_func${opal_cv_asm_label_suffix}
$ompi_cv_asm_endproc ${sym}gsym_test_func

EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  ompi_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1"
             if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_compile\""; } >&5
  (eval $ompi_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } ; then
                # save the warnings
                 cat conftest.cmpl >&5
                 ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest  $LDFLAGS $LIBS > conftest.link 2>&1"
                 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_link\""; } >&5
  (eval $ompi_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } ; then
                     # save the warnings
                     cat conftest.link >&5
                     asm_result=1
                 else
                     cat conftest.link >&5
                     echo "configure: failed C program was: " >&5
                     cat conftest_c.c >&5
                     echo "configure: failed ASM program was: " >&5
                     cat conftest.s >&5
                     asm_result=0
                 fi
             else
                # save output and failed program
                 cat conftest.cmpl >&5
                 echo "configure: failed C program was: " >&5
                 cat conftest.c >&5
                 asm_result=0
             fi
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  asm_result=0
fi
rm -rf conftest*
unset ompi_assemble

        if test "$asm_result" = "1" ; then
            opal_cv_asm_gsym="$sym"
            break
        fi
    done
    rm -rf conftest.*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_gsym" >&5
$as_echo "$opal_cv_asm_gsym" >&6; }

    if test "$opal_cv_asm_gsym" = "none" ; then
       as_fn_error "Could not determine global symbol label prefix" "$LINENO" 5
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_GSYM "$opal_cv_asm_gsym"
_ACEOF

    OPAL_ASM_GSYM="$opal_cv_asm_gsym"






    { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for lsym labels" >&5
$as_echo_n "checking prefix for lsym labels... " >&6; }
if test "${opal_cv_asm_lsym+set}" = set; then :
  $as_echo_n "(cached) " >&6
else



    opal_cv_asm_lsym="L"

    for sym in L .L $ L$ ; do
        asm_result=0
        echo "configure: trying $sym" >&5
        cat >conftest.s <<EOF
foobar$opal_cv_asm_label_suffix
${sym}mytestlabel$opal_cv_asm_label_suffix
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  # ok, we succeeded at assembling.  see if we can nm,
             # throwing the results in a file
            if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then
                if test "`$GREP mytestlabel conftest.out`" = "" ; then
                    # there was no symbol...  looks promising to me
                    opal_cv_asm_lsym="$sym"
                    asm_result=1
                elif test "`$GREP ' [Nt] .*mytestlabel' conftest.out`" = "" ; then
                    # see if we have a non-global-ish symbol
                    # but we should see if we can do better.
                    opal_cv_asm_lsym="$sym"
                fi
            else
                # not so much on the NM goodness :/
                echo "$NM failed.  Output from NM was:" >&5
                cat conftest.out >&5
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $NM could not read object file" >&5
$as_echo "$as_me: WARNING: $NM could not read object file" >&2;}
            fi

else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  :
fi
rm -rf conftest*
unset ompi_assemble

        if test "$asm_result" = "1" ; then
            break
        fi
    done
    rm -f conftest.out
    unset asm_result sym

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_lsym" >&5
$as_echo "$opal_cv_asm_lsym" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_LSYM "$opal_cv_asm_lsym"
_ACEOF

    OPAL_ASM_LSYM="$opal_cv_asm_lsym"



        { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for function in .type" >&5
$as_echo_n "checking prefix for function in .type... " >&6; }
if test "${opal_cv_asm_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    opal_cv_asm_type=""

    case "${host}" in
    *-sun-solaris*)
        # GCC on solaris seems to accept just about anything, not
        # that what it defines actually works...  So just hardwire
        # to the right answer
        opal_cv_asm_type="#"
    ;;
    *)
        for type  in @ \# % ; do
            asm_result=0
            echo "configure: trying $type" >&5
            cat >conftest.s <<EOF
     .type mysym, ${type}function
mysym:
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  opal_cv_asm_type="${type}"
                    asm_result=1
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  :
fi
rm -rf conftest*
unset ompi_assemble

            if test "$asm_result" = "1" ; then
                break
            fi
        done
    ;;
    esac
    rm -f conftest.out

    unset asm_result type

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_type" >&5
$as_echo "$opal_cv_asm_type" >&6; }


cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_TYPE "$opal_cv_asm_type"
_ACEOF

    OPAL_ASM_TYPE="$opal_cv_asm_type"



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .size is needed" >&5
$as_echo_n "checking if .size is needed... " >&6; }
if test "${ompi_cv_asm_need_size+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ompi_cv_asm_need_size="no"
                    cat >conftest.s <<EOF
     .size mysym, 1
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  ompi_cv_asm_need_size="yes"
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  :
fi
rm -rf conftest*
unset ompi_assemble

                    rm -f conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_need_size" >&5
$as_echo "$ompi_cv_asm_need_size" >&6; }

    if test "$ompi_cv_asm_need_size" = "yes" ; then
       opal_asm_size=1
    else
       opal_asm_size=0
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_SIZE "$opal_asm_size"
_ACEOF

    OPAL_ASM_SIZE="$opal_asm_size"

    unset asm_result





    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align directive takes logarithmic value" >&5
$as_echo_n "checking if .align directive takes logarithmic value... " >&6; }
if test "${ompi_cv_asm_align_log+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   cat >conftest.s <<EOF
        $opal_cv_asm_text
        .align 4
        $opal_cv_asm_global foo
        .byte 1
        .align 4
foo$opal_cv_asm_label_suffix
        .byte 2
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  ompi_asm_addr=`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'`
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  ompi_asm_addr=""
fi
rm -rf conftest*
unset ompi_assemble

    # test for both 16 and 10 (decimal and hex notations)
    echo "configure: .align test address offset is $ompi_asm_addr" >&5
    if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then
       ompi_cv_asm_align_log="yes"
    else
        ompi_cv_asm_align_log="no"
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_align_log" >&5
$as_echo "$ompi_cv_asm_align_log" >&6; }

    if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then
        ompi_asm_align_log_result=1
    else
        ompi_asm_align_log_result=0
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_ALIGN_LOG $asm_align_log_result
_ACEOF


    unset omp_asm_addr asm_result


        # find our architecture for purposes of assembly stuff
        ompi_cv_asm_arch="UNSUPPORTED"
        OMPI_GCC_INLINE_ASSIGN=""
        OPAL_ASM_SUPPORT_64BIT=0
        case "${host}" in
        i?86-*|x86_64*)
            if test "$ac_cv_sizeof_long" = "4" ; then
                ompi_cv_asm_arch="IA32"
            else
                ompi_cv_asm_arch="AMD64"
            fi
            OPAL_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)'
            ;;

        ia64-*)
            ompi_cv_asm_arch="IA64"
            OPAL_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)'
            ;;

        alpha-*|alphaev[4-8]-*|alphaev56-*|alphaev6[78]-*)
            ompi_cv_asm_arch="ALPHA"
            OPAL_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"bis $31,$31,%0" : "=&r"(ret)'
            ;;

        armv7*)
            ompi_cv_asm_arch="ARM"
            OPAL_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)'
            ;;

        mips-*|mips64*)
            # Should really find some way to make sure that we are on
            # a MIPS III machine (r4000 and later)
            ompi_cv_asm_arch="MIPS"
            OPAL_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)'
            ;;

        powerpc-*|powerpc64-*)

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PowerPC registers have r prefix" >&5
$as_echo_n "checking if PowerPC registers have r prefix... " >&6; }
    cat >conftest.s <<EOF
$opal_cv_asm_text
        addi 1,1,0
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  opal_cv_asm_powerpc_r_reg=0
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  cat >conftest.s <<EOF
$opal_cv_asm_text
        addi r1,r1,0
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  opal_cv_asm_powerpc_r_reg=1
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  as_fn_error "Can not determine how to use PPC registers" "$LINENO" 5
fi
rm -rf conftest*
unset ompi_assemble

fi
rm -rf conftest*
unset ompi_assemble

    if test "$opal_cv_asm_powerpc_r_reg" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_POWERPC_R_REGISTERS $opal_cv_asm_powerpc_r_reg
_ACEOF


            if test "$ac_cv_sizeof_long" = "4" ; then
                ompi_cv_asm_arch="POWERPC32"

                # Note that on some platforms (Apple G5), even if we are
                # compiling in 32 bit mode (and therefore should assume
                # sizeof(long) == 4), we can use the 64 bit test and set
                # operations.

    if test "$ac_cv_sizeof_long" != "4" ; then
        # this function should only be called in the 32 bit case
        as_fn_error "CHECK_POWERPC_64BIT called on 64 bit platform.  Internal error." "$LINENO" 5
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit PowerPC assembly support" >&5
$as_echo_n "checking for 64-bit PowerPC assembly support... " >&6; }
        case $host in
            *-darwin*)
                ppc64_result=0
                if test "$opal_cv_asm_powerpc_r_reg" = "1" ; then
                   ldarx_asm="        ldarx r1,r1,r1";
                else
                   ldarx_asm="        ldarx 1,1,1";
                fi
                cat >conftest.s <<EOF
$opal_cv_asm_text
        $ldarx_asm
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  ppc64_result=1
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  ppc64_result=0
fi
rm -rf conftest*
unset ompi_assemble

            ;;
            *)
                ppc64_result=0
            ;;
        esac

    if test "$ppc64_result" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        OPAL_ASM_SUPPORT_64BIT=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        :
    fi

    unset ppc64_result ldarx_asm

            elif test "$ac_cv_sizeof_long" = "8" ; then
                OPAL_ASM_SUPPORT_64BIT=1
                ompi_cv_asm_arch="POWERPC64"
            else
                as_fn_error "Could not determine PowerPC word size: $ac_cv_sizeof_long" "$LINENO" 5
            fi
            OMPI_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
            ;;

        sparc*-*)
            # SPARC v9 (and above) are the only ones with 64bit support
            # if compiling 32 bit, see if we are v9 (aka v8plus) or
            # earlier (casa is v8+/v9).
            if test "$ac_cv_sizeof_long" = "4" ; then
                have_v8plus=0

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if have Sparc v8+/v9 support" >&5
$as_echo_n "checking if have Sparc v8+/v9 support... " >&6; }
    sparc_result=0
    cat >conftest.s <<EOF
$opal_cv_asm_text
	casa [%o0] 0x80, %o1, %o2
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_assemble\""; } >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # save the warnings
  cat conftest.out >&5
  sparc_result=1
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  sparc_result=0
fi
rm -rf conftest*
unset ompi_assemble

    if test "$sparc_result" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        have_v8plus=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        :
    fi

    unset sparc_result

                if test "$have_v8plus" = "0" ; then
                    OPAL_ASM_SUPPORT_64BIT=0
                    ompi_cv_asm_arch="SPARC"
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5
$as_echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must specify the target architecture v8plus" >&5
$as_echo "$as_me: WARNING: You must specify the target architecture v8plus" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&5
$as_echo "$as_me: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&5
$as_echo "$as_me: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sparc processors" >&5
$as_echo "$as_me: WARNING: Sparc processors" >&2;}
as_fn_error "Can not continue." "$LINENO" 5
                else
                    OPAL_ASM_SUPPORT_64BIT=1
                    ompi_cv_asm_arch="SPARCV9_32"
                fi

            elif test "$ac_cv_sizeof_long" = "8" ; then
                OPAL_ASM_SUPPORT_64BIT=1
                ompi_cv_asm_arch="SPARCV9_64"
            else
                as_fn_error "Could not determine Sparc word size: $ac_cv_sizeof_long" "$LINENO" 5
            fi
            OMPI_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)'
            ;;

        *)
            as_fn_error "No atomic primitives available for $host" "$LINENO" 5
            ;;
        esac


cat >>confdefs.h <<_ACEOF
#define OPAL_ASM_SUPPORT_64BIT $OPAL_ASM_SUPPORT_64BIT
_ACEOF



        #
        # figure out if we need any special function start / stop code
        #
        case $host_os in
        aix*)
            ompi_asm_arch_config="aix"
            ;;
        *)
            ompi_asm_arch_config="default"
            ;;
         esac

         # now that we know our architecture, try to inline assemble

    assembly="$OMPI_GCC_INLINE_ASSIGN"
    asm_result="unknown"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports GCC inline assembly" >&5
$as_echo_n "checking if $CC supports GCC inline assembly... " >&6; }

    if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then
        # PGI seems to have some issues with our inline assembly.
        # Disable for now.
        asm_result="no (Portland Group)"
    else
        case $host in
            *-aix*)
                # the AIX compilers and linkers really don't do gcc
                # inline assembly right - disable for now.
                asm_result="no (AIX)"
                ;;
            *)
                if test ! "$assembly" = "" ; then
                        if test "$cross_compiling" = yes; then :
  asm_result="unknown"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
int
main ()
{
int ret = 1;
int negone = -1;
__asm__ __volatile__ ($assembly);
return ret;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  asm_result="yes"
else
  asm_result="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

                else
                    assembly="test skipped - assuming no"
                fi
                ;;
        esac

        # if we're cross compiling, just try to compile and figure good enough
        if test "$asm_result" = "unknown" ; then
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
int
main ()
{
int ret = 1;
int negone = -1;
__asm__ __volatile__ ($assembly);
return ret;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  asm_result="yes"
else
  asm_result="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        fi
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
$as_echo "$asm_result" >&6; }

    if test "$asm_result" = "yes" ; then
        OPAL_C_GCC_INLINE_ASSEMBLY=1
    else
        OPAL_C_GCC_INLINE_ASSEMBLY=0
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_C_GCC_INLINE_ASSEMBLY $OPAL_C_GCC_INLINE_ASSEMBLY
_ACEOF


    unset OPAL_C_GCC_INLINE_ASSEMBLY assembly asm_result



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports DEC inline assembly" >&5
$as_echo_n "checking if $CC supports DEC inline assembly... " >&6; }

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
#include <c_asm.h>
int
main ()
{
asm("");
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  asm_result="yes"
else
  asm_result="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
$as_echo "$asm_result" >&6; }

    if test "$asm_result" = "yes" ; then
        OPAL_C_DEC_INLINE_ASSEMBLY=1
    else
        OPAL_C_DEC_INLINE_ASSEMBLY=0
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_C_DEC_INLINE_ASSEMBLY $OPAL_C_DEC_INLINE_ASSEMBLY
_ACEOF


    unset OPAL_C_DEC_INLINE_ASSEMBLY asm_result



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports XLC inline assembly" >&5
$as_echo_n "checking if $CC supports XLC inline assembly... " >&6; }

    OPAL_C_XLC_INLINE_ASSEMBLY=0
    asm_result="no"
    if test "$CC" = "xlc" ; then
        OMPI_XLC_INLINE_ASSEMBLY=1
        asm_result="yes"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
$as_echo "$asm_result" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_C_XLC_INLINE_ASSEMBLY $OPAL_C_XLC_INLINE_ASSEMBLY
_ACEOF


    unset OPAL_C_XLC_INLINE_ASSEMBLY

         # Only check C++ if we're building the OMPI project and we
         # want the C++ bindings
         if test "$WANT_MPI_CXX_SUPPORT" = "1"; then :

    assembly="$OMPI_GCC_INLINE_ASSIGN"
    asm_result="unknown"

    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports GCC inline assembly" >&5
$as_echo_n "checking if $CXX supports GCC inline assembly... " >&6; }

    case $host in
        *-aix*)
            # the AIX compilers and linkers really don't do gcc
            # inline assembly right - disable for now.
            asm_result="no (AIX)"
            ;;
        *)
            if test ! "$assembly" = "" ; then
            if test "$cross_compiling" = yes; then :
  asm_result="unknown"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
int
main ()
{
int ret = 1;
int negone = -1;
__asm__ __volatile__ ($assembly);
return ret;
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
  asm_result="yes"
else
  asm_result="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

            else
                assembly="test skipped - assuming no"
            fi
            ;;
    esac
    # if we're cross compiling, just try to compile and figure good enough
    if test "$asm_result" = "unknown" ; then
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
int
main ()
{
int ret = 1;
int negone = -1;
__asm__ __volatile__ ($assembly);
return ret;
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  asm_result="yes"
else
  asm_result="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
$as_echo "$asm_result" >&6; }

    if test "$asm_result" = "yes" ; then
        OMPI_CXX_GCC_INLINE_ASSEMBLY=1
    else
        OMPI_CXX_GCC_INLINE_ASSEMBLY=0
    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_GCC_INLINE_ASSEMBLY $OMPI_CXX_GCC_INLINE_ASSEMBLY
_ACEOF

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    unset OMPI_CXX_GCC_INLINE_ASSEMBLY assembly asm_result



    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports DEC inline assembly" >&5
$as_echo_n "checking if $CXX supports DEC inline assembly... " >&6; }

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
#include <c_asm.h>
int
main ()
{
asm("");
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  asm_result="yes"
else
  asm_result="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
$as_echo "$asm_result" >&6; }

    if test "$asm_result" = "yes" ; then
        OMPI_CXX_DEC_INLINE_ASSEMBLY=1
    else
        OMPI_CXX_DEC_INLINE_ASSEMBLY=0
    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_DEC_INLINE_ASSEMBLY $OMPI_CXX_DEC_INLINE_ASSEMBLY
_ACEOF

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports XLC inline assembly" >&5
$as_echo_n "checking if $CXX supports XLC inline assembly... " >&6; }

    OMPI_CXX_XLC_INLINE_ASSEMBLY=0
    asm_result="no"
    if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then
        OMPI_CXX_XLC_INLINE_ASSEMBLY=1
        asm_result="yes"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
$as_echo "$asm_result" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_XLC_INLINE_ASSEMBLY $OMPI_CXX_XLC_INLINE_ASSEMBLY
_ACEOF


    unset OMPI_CXX_XLC_INLINE_ASSEMBLY

fi

         # format:
         #   config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack
         asm_format="${ompi_asm_arch_config}"
         asm_format="${asm_format}-${opal_cv_asm_text}-${opal_cv_asm_global}"
         asm_format="${asm_format}-${opal_cv_asm_label_suffix}-${opal_cv_asm_gsym}"
         asm_format="${asm_format}-${opal_cv_asm_lsym}"
         asm_format="${asm_format}-${opal_cv_asm_type}-${opal_asm_size}"
         asm_format="${asm_format}-${ompi_asm_align_log_result}"
         if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then
             asm_format="${asm_format}-${opal_cv_asm_powerpc_r_reg}"
         else
             asm_format="${asm_format}-1"
         fi
         asm_format="${asm_format}-${OPAL_ASM_SUPPORT_64BIT}"
         ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}"
         # For the Makefile, need to escape the $ as $$.  Don't display
         # this version, but make sure the Makefile gives the right thing
         # when regenerating the files because the base has been touched.
         OPAL_ASSEMBLY_FORMAT=`echo "$ompi_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'`

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly format" >&5
$as_echo_n "checking for assembly format... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_format" >&5
$as_echo "$ompi_cv_asm_format" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_ASSEMBLY_FORMAT "$OPAL_ASSEMBLY_FORMAT"
_ACEOF


    fi # if cv_c_compiler_vendor = microsoft

    result="OMPI_$ompi_cv_asm_arch"
    OPAL_ASSEMBLY_ARCH="$ompi_cv_asm_arch"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asssembly architecture" >&5
$as_echo_n "checking for asssembly architecture... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_arch" >&5
$as_echo "$ompi_cv_asm_arch" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_ASSEMBLY_ARCH $result
_ACEOF







if test "$ompi_cv_asm_arch" != "WINDOWS" ; then
    # Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PERL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PERL"; then
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_PERL="perl"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
PERL=$ac_cv_prog_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    # see if we have a pre-built one already
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pre-built assembly file" >&5
$as_echo_n "checking for pre-built assembly file... " >&6; }
    ompi_cv_asm_file=""
    if $GREP "$ompi_cv_asm_arch" "${top_ompi_srcdir}/opal/asm/asm-data.txt" | $FGREP "$ompi_cv_asm_format" >conftest.out 2>&1 ; then
        ompi_cv_asm_file="`cut -f3 conftest.out`"
        if test ! "$ompi_cv_asm_file" = "" ; then
            ompi_cv_asm_file="atomic-${ompi_cv_asm_file}.s"
            if test -f "${top_ompi_srcdir}/opal/asm/generated/${ompi_cv_asm_file}" ; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ompi_cv_asm_file)" >&5
$as_echo "yes ($ompi_cv_asm_file)" >&6; }
            else
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($ompi_cv_asm_file not found)" >&5
$as_echo "no ($ompi_cv_asm_file not found)" >&6; }
                ompi_cv_asm_file=""
            fi
        fi
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not in asm-data)" >&5
$as_echo "no (not in asm-data)" >&6; }
    fi
    rm -rf conftest.*

    if test "$ompi_cv_asm_file" = "" ; then
        if test ! "$PERL" = "" ; then
            # we have perl...  Can we generate a file?
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether possible to generate assembly file" >&5
$as_echo_n "checking whether possible to generate assembly file... " >&6; }
            mkdir -p opal/asm/generated
            ompi_cv_asm_file="atomic-local.s"
            ompi_try='$PERL $top_ompi_srcdir/opal/asm/generate-asm.pl $ompi_cv_asm_arch "$ompi_cv_asm_format" $top_ompi_srcdir/opal/asm/base $top_ompi_builddir/opal/asm/generated/$ompi_cv_asm_file >conftest.out 2>&1'
            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ompi_try\""; } >&5
  (eval $ompi_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } ; then
                # save the warnings
                cat conftest.out >&5
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            else
                # save output
                cat conftest.out >&5
                ompi_cv_asm_file=""
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not build atomic operations assembly file." >&5
$as_echo "$as_me: WARNING: Could not build atomic operations assembly file." >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There will be no atomic operations for this build." >&5
$as_echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
            fi
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find prebuilt atomic operations file and could not" >&5
$as_echo "$as_me: WARNING: Could not find prebuilt atomic operations file and could not" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find perl to attempt to generate a custom assembly file." >&5
$as_echo "$as_me: WARNING: find perl to attempt to generate a custom assembly file." >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There will be no atomic operations for this build." >&5
$as_echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
        fi
    fi
    rm -rf conftest.*
else
    # On windows with VC++, atomics are done with compiler primitives
    ompi_cv_asm_file=""
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic assembly filename" >&5
$as_echo_n "checking for atomic assembly filename... " >&6; }
    if test "$ompi_cv_asm_file" = "" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
        result=0
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_asm_file" >&5
$as_echo "$ompi_cv_asm_file" >&6; }
        result=1
    fi


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ASM_FILE $result
_ACEOF

     if test "$result" = "1"; then
  OPAL_HAVE_ASM_FILE_TRUE=
  OPAL_HAVE_ASM_FILE_FALSE='#'
else
  OPAL_HAVE_ASM_FILE_TRUE='#'
  OPAL_HAVE_ASM_FILE_FALSE=
fi


    OMPI_ASM_FILE=$ompi_cv_asm_file



    unset result asm_format



##################################
# Fortran
##################################

# OPAL uses opal_fortran_logical_t and OMPI_FORTRAN_HANDLE_MAX (long
# story; yes, it's an intentional abstraction break).  So ensure to
# define it to a valid C type if we're not building the OMPI project.

    ompi_show_subtitle "Fortran 77 compiler"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_fflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_fflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    ompi_fflags_save="$FFLAGS"
    ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$F77"; then
  ac_cv_prog_F77="$F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
F77=$ac_cv_prog_F77
if test -n "$F77"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
$as_echo "$F77" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$F77" && break
  done
fi
if test -z "$F77"; then
  ac_ct_F77=$F77
  for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_F77"; then
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_F77="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_F77=$ac_cv_prog_ac_ct_F77
if test -n "$ac_ct_F77"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
$as_echo "$ac_ct_F77" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_F77" && break
done

  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_f77_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
if test "${ac_cv_prog_f77_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  FFLAGS=-g
cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ac_cv_prog_f77_g=yes
else
  ac_cv_prog_f77_g=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
$as_echo "$ac_cv_prog_f77_g" >&6; }
if test "$ac_test_FFLAGS" = set; then
  FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-g -O2"
  else
    FFLAGS="-g"
  fi
else
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-O2"
  else
    FFLAGS=
  fi
fi

if test $ac_compiler_gnu = yes; then
  G77=yes
else
  G77=
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    FFLAGS="$ompi_fflags_save"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




    ompi_show_subtitle "Fortran 90/95 compiler"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_fcflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_fcflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    ompi_fcflags_save="$FCFLAGS"
    ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$FC"; then
  ac_cv_prog_FC="$FC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
FC=$ac_cv_prog_FC
if test -n "$FC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
$as_echo "$FC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$FC" && break
  done
fi
if test -z "$FC"; then
  ac_ct_FC=$FC
  for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_FC"; then
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_FC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_FC=$ac_cv_prog_ac_ct_FC
if test -n "$ac_ct_FC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
$as_echo "$ac_ct_FC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_FC" && break
done

  if test "x$ac_ct_FC" = x; then
    FC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_fc_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FCFLAGS=${FCFLAGS+set}
ac_save_FCFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
$as_echo_n "checking whether $FC accepts -g... " >&6; }
if test "${ac_cv_prog_fc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  FCFLAGS=-g
cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_prog_fc_g=yes
else
  ac_cv_prog_fc_g=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
$as_echo "$ac_cv_prog_fc_g" >&6; }
if test "$ac_test_FCFLAGS" = set; then
  FCFLAGS=$ac_save_FCFLAGS
elif test $ac_cv_prog_fc_g = yes; then
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-g -O2"
  else
    FCFLAGS="-g"
  fi
else
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-O2"
  else
    FCFLAGS=
  fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    FCFLAGS="$ompi_fcflags_save"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    #-----------
    # Fortran 77
    #-----------




#
# Check for the compiler
#
# Note that we don't actually *use* the fortran compiler to build
# anything in OMPI; it's only used here in configure to find out
# symbol conventions, type sizes, etc.  We also pass it down to
# the wrapper compiler mpif77.
#
# Always run this test, even if fortran isn't wanted so that F77 has
# value for the Fint tests
#

# Must REQUIRE the PROG_F77 macro and not call it directly here for
# reasons well-described in the AC2.64 (and beyond) docs.


if test -z "$F77"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&2;}
    OMPI_WANT_F77_BINDINGS=0
    OMPI_F77="none"
    BASEF77="none"
    OMPI_F77_ABSOLUTE="none"
else
    OMPI_F77="$F77"
    set dummy $OMPI_F77
    OMPI_F77_ARGV0=$2
    BASEF77="`basename $OMPI_F77_ARGV0`"

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$OMPI_F77_ARGV0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_F77_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 bindings disabled by user" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 bindings disabled by user" >&2;}
        OMPI_WANT_F77_BINDINGS=0
    else
        OMPI_WANT_F77_BINDINGS=1
    fi
fi

# make sure the compiler actually works, if not cross-compiling
# Don't just use the AC macro so that we can have a pretty
# message.
if test $OMPI_WANT_F77_BINDINGS -eq 1; then :


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler works" >&5
$as_echo_n "checking if Fortran 77 compiler works... " >&6; }
if test "${ompi_cv_Fortran_77_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         if test "$cross_compiling" = yes; then :
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_link "$LINENO"; then :
  ompi_cv_Fortran_77_works="links (cross compiling)"
else
  ompi_cv_Fortran_77_works="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_run "$LINENO"; then :
  ompi_cv_Fortran_77_works="yes"
else
  ompi_cv_Fortran_77_works="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_Fortran_77_works" >&5
$as_echo "$ompi_cv_Fortran_77_works" >&6; }
    if test "x$ompi_cv_Fortran_77_works" = x""no; then :
  cat <<EOF >&2
**********************************************************************
* It appears that your Fortran 77 compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
           as_fn_error "Could not run a simple Fortran 77 program.  Aborting." "$LINENO" 5
fi


fi

# now make sure we know our linking convention...





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in FFLAGS_NEW LDFLAGS_NEW FLAG; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"FFLAGS_NEW LDFLAGS_NEW FLAG\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # invalidate cache if result came from a run where F77 was disabled
    if test "$ompi_cv_f77_external_symbol" = "skipped" ; then
        unset ompi_cv_f77_external_symbol
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $F77 external symbol convention" >&5
$as_echo_n "checking $F77 external symbol convention... " >&6; }
if test "${ompi_cv_f77_external_symbol+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$F77" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
             ompi_cv_f77_external_symbol="skipped"
         else
             cat >conftest.f <<EOF
       subroutine FOO_bar(a)
       integer a
       a = 1
       return
       end
EOF
             # Try without certain optimization flags, which produce object
             # files without the required external symbols;
             # e.g. option -fast turns on -ipo on Intel Compilers 11.0
             FFLAGS_NEW=""
             LDFLAGS_NEW=""
             case $F77 in
                 ifort)
                     for FLAG in $FFLAGS ; do
                         case $FLAG in
                             -fast) ;;
                             -ipo*) ;;
                             *)     FFLAGS_NEW="$FFLAGS_NEW $FLAG" ;;
                         esac
                     done
                     for FLAG in $LDFLAGS ; do
                         case $FLAG in
                             -fast) ;;
                             -ipo*) ;;
                             *)     LDFLAGS_NEW="$LDFLAGS_NEW $FLAG" ;;
                         esac
                     done

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:28582: Try with new FFLAGS: $FFLAGS_NEW   and new LDFLAGS:$LDFLAGS_NEW" >&5
else
    echo Try with new FFLAGS: $FFLAGS_NEW   and new LDFLAGS:$LDFLAGS_NEW >&5
fi
                 ;;
                 *)
                     FFLAGS_NEW="$FFLAGS"
                     LDFLAGS_NEW="$LDFLAGS"
                 ;;
             esac

             happy=1

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28598: $F77 $FFLAGS_NEW -c conftest.f $LDFLAGS_NEW $LIBS" >&5
$F77 $FFLAGS_NEW -c conftest.f $LDFLAGS_NEW $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:28605: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if $NM conftest.o | $GREP foo_bar__ >/dev/null 2>&1 ; then
                      ompi_cv_f77_external_symbol="double underscore"
                  elif $NM conftest.o | $GREP foo_bar_ >/dev/null 2>&1 ; then
                      ompi_cv_f77_external_symbol="single underscore"
                  elif $NM conftest.o | $GREP FOO_bar >/dev/null 2>&1 ; then
                      ompi_cv_f77_external_symbol="mixed case"
                  elif $NM conftest.o | $GREP foo_bar >/dev/null 2>&1 ; then
                      ompi_cv_f77_external_symbol="no underscore"
                  elif $NM conftest.o | $GREP FOO_BAR >/dev/null 2>&1 ; then
                      ompi_cv_f77_external_symbol="upper case"
                  else
                      $NM conftest.o >conftest.out 2>&1

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:28627: Could not determine Fortran naming convention. Output from $NM:" >&5
else
    echo Could not determine Fortran naming convention. Output from $NM: >&5
fi

# 1 is the filename
if test -n "conftest.out" -a -f "conftest.out"; then
    cat conftest.out >&5
fi
                      happy=0
                  fi
else
    unset ompi_status
    as_fn_error "Fortran compiler did not produce object file" "$LINENO" 5
fi
         fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_external_symbol" >&5
$as_echo "$ompi_cv_f77_external_symbol" >&6; }

    ompi_fortran_double_underscore=0
    ompi_fortran_single_underscore=0
    ompi_fortran_caps=0
    ompi_fortran_plain=0

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        ompi_fortran_double_underscore=1
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_fortran_single_underscore=1
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_fortran_caps=1
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_fortran_plain=1
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_fortran_caps=1
    elif test "$ompi_cv_f77_external_symbol" != "skipped" ; then
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_F77_DOUBLE_UNDERSCORE $ompi_fortran_double_underscore
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_F77_SINGLE_UNDERSCORE $ompi_fortran_single_underscore
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_F77_CAPS $ompi_fortran_caps
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_F77_PLAIN $ompi_fortran_plain
_ACEOF



    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done

    rm -rf conftest.*


# Make sure we can link with C code...
if test $OMPI_WANT_F77_BINDINGS -eq 1; then :



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C and Fortran 77 are link compatible" >&5
$as_echo_n "checking if C and Fortran 77 are link compatible... " >&6; }
if test "${ompi_cv_c_link_Fortran_77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo testfunc | $GREP _ >/dev/null 2>&1 ; then
            testfunc_name=testfunc__
        else
            testfunc_name=testfunc_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        testfunc_name=testfunc_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        testfunc_name=testfunc
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        testfunc_name=testfunc
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        testfunc_name=TESTFUNC
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28764: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:28771: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat > conftest.$ac_ext <<_ACEOF
      program main

       external testfunc
       call testfunc(1)

      end
_ACEOF
if ac_fn_f77_try_link "$LINENO"; then :
  ompi_cv_c_link_Fortran_77="yes"
else
  ompi_cv_c_link_Fortran_77="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Fortran_77="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_link_Fortran_77" >&5
$as_echo "$ompi_cv_c_link_Fortran_77" >&6; }

  if test "x$ompi_cv_c_link_Fortran_77" = x""yes; then :

else
  cat <<EOF
**********************************************************************
It appears that your Fortran 77 compiler is unable to link against
object files created by your C compiler.  This typically indicates
one of a few possibilities:

  - A conflict between CFLAGS and FFLAGS
  - A problem with your compiler installation(s)
  - Different default build options between compilers (e.g., C
    building for 32 bit and Fortran building for 64 bit)
  - Incompatible compilers

Such problems can usually be solved by picking compatible compilers
and/or CFLAGS and FFLAGS.  More information (including exactly what
command was given to the compilers and what error resulted when the
commands were executed) is available in the config.log file in this
directory.
**********************************************************************
EOF
     as_fn_error "C and Fortran 77 compilers are not link compatible.  Can not continue." "$LINENO" 5
fi

fi

# Test to see if the F77 compilers likes the C++ exceptions flags.  If
# it doesn't, just abort.  We *could* handle this scenario (e.g.,
# probe the F77 compiler for what flags would be necessary), but we're
# kinda assuming that no one will care.  If they do, they'll e-mail us.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if F77 compiler likes the C++ exception flags" >&5
$as_echo_n "checking to see if F77 compiler likes the C++ exception flags... " >&6; }
if test $OMPI_WANT_F77_BINDINGS -eq 0; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (no F77 bindings)" >&5
$as_echo "skipped (no F77 bindings)" >&6; }
elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (no C++ exceptions flags)" >&5
$as_echo "skipped (no C++ exceptions flags)" >&6; }
else
    FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
    ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

    cat > conftest.$ac_ext <<_ACEOF
      program main
        INTEGER I
        I = 3
      end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&5
$as_echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&2;}
                       as_fn_error "*** Cannot continue" "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi


cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_F77_BINDINGS $OMPI_WANT_F77_BINDINGS
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_F77 "$OMPI_F77"
_ACEOF

 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
  OMPI_WANT_F77_BINDINGS_TRUE=
  OMPI_WANT_F77_BINDINGS_FALSE='#'
else
  OMPI_WANT_F77_BINDINGS_TRUE='#'
  OMPI_WANT_F77_BINDINGS_FALSE=
fi




    # This allows us to mark bogus types, but still have them be a valid
    # [sentinel] value


$as_echo "#define ompi_fortran_bogus_type_t int" >>confdefs.h


    # We want to set the #define's for all of these, so invoke the macros
    # regardless of whether we have F77 support or not.



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports CHARACTER" >&5
$as_echo_n "checking if Fortran 77 compiler supports CHARACTER... " >&6; }
if test "${ompi_cv_f77_have_CHARACTER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        CHARACTER bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_CHARACTER="yes"
else
  ompi_cv_f77_have_CHARACTER="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_CHARACTER" >&5
$as_echo "$ompi_cv_f77_have_CHARACTER" >&6; }

    if test "x$ompi_cv_f77_have_CHARACTER" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports CHARACTER" >&5
$as_echo_n "checking if Fortran 77 compiler supports CHARACTER... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 CHARACTER" >&5
$as_echo_n "checking size of Fortran 77 CHARACTER... " >&6; }
if test "${ompi_cv_f77_sizeof_CHARACTER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       CHARACTER x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29111: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29118: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29128: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29135: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of CHARACTER" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of CHARACTER when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29162: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29169: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_CHARACTER=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29182: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of CHARACTER" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of CHARACTER" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_CHARACTER" >&5
$as_echo "$ompi_cv_f77_sizeof_CHARACTER" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_CHARACTER

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 CHARACTER does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 CHARACTER does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 CHARACTER" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 CHARACTER" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to CHARACTER" >&5
$as_echo_n "checking for C type corresponding to CHARACTER... " >&6; }
if test "${ompi_cv_find_type_CHARACTER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
                           oft_real_type="char"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_CHARACTER="not found"
else
  ompi_cv_find_type_CHARACTER="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_CHARACTER" >&5
$as_echo "$ompi_cv_find_type_CHARACTER" >&6; }

    if test "x$ompi_cv_find_type_CHARACTER" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_CHARACTER" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_CHARACTER
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran CHARACTER" >&5
$as_echo_n "checking alignment of Fortran CHARACTER... " >&6; }
if test "${ompi_cv_f77_alignment_CHARACTER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      CHARACTER  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29413: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29420: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29430: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29437: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of CHARACTER" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of CHARACTER when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29468: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29475: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_CHARACTER=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of CHARACTER" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_CHARACTER" >&5
$as_echo "$ompi_cv_f77_alignment_CHARACTER" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_CHARACTER

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_CHARACTER $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_CHARACTER $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_CHARACTER $ofc_type_alignment
_ACEOF

    if test "char, int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_character_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_CHARACTER_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_CHARACTER=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_CHARACTER=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_CHARACTER=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL... " >&6; }
if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        LOGICAL bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_LOGICAL="yes"
else
  ompi_cv_f77_have_LOGICAL="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_LOGICAL" >&5
$as_echo "$ompi_cv_f77_have_LOGICAL" >&6; }

    if test "x$ompi_cv_f77_have_LOGICAL" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 LOGICAL" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       LOGICAL x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29766: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29773: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29783: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29790: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of LOGICAL" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29817: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29824: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_LOGICAL=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:29837: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of LOGICAL" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_LOGICAL" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICAL" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICAL

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL" >&5
$as_echo_n "checking for C type corresponding to LOGICAL... " >&6; }
if test "${ompi_cv_find_type_LOGICAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
                           oft_real_type="char"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_LOGICAL="not found"
else
  ompi_cv_find_type_LOGICAL="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_LOGICAL" >&5
$as_echo "$ompi_cv_find_type_LOGICAL" >&6; }

    if test "x$ompi_cv_find_type_LOGICAL" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_LOGICAL" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_LOGICAL
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL" >&5
$as_echo_n "checking alignment of Fortran LOGICAL... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      LOGICAL  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30068: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30075: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30085: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30092: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of LOGICAL" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of LOGICAL when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30123: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30130: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICAL=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of LOGICAL" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_LOGICAL" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICAL" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_LOGICAL $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_LOGICAL $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL $ofc_type_alignment
_ACEOF

    if test "char, int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*1... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        LOGICAL*1 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_LOGICALp1="yes"
else
  ompi_cv_f77_have_LOGICALp1="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_LOGICALp1" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp1" >&6; }

    if test "x$ompi_cv_f77_have_LOGICALp1" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*1... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 LOGICAL*1" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*1... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       LOGICAL*1 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30420: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30427: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30437: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30444: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of LOGICAL*1" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*1 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30471: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30478: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_LOGICALp1=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30491: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of LOGICAL*1" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*1" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_LOGICALp1" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp1" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp1

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*1" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*1... " >&6; }
if test "${ompi_cv_find_type_LOGICALp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
                           oft_real_type="char"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then
                           oft_real_type="int8_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
                           oft_real_type="short"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_LOGICALp1="not found"
else
  ompi_cv_find_type_LOGICALp1="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_LOGICALp1" >&5
$as_echo "$ompi_cv_find_type_LOGICALp1" >&6; }

    if test "x$ompi_cv_find_type_LOGICALp1" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_LOGICALp1" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_LOGICALp1
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*1" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*1... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      LOGICAL*1  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30732: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30739: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30749: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30756: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of LOGICAL*1" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of LOGICAL*1 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30787: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:30794: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp1=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of LOGICAL*1" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_LOGICALp1" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp1" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp1

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_LOGICAL1 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_LOGICAL1 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL1 $ofc_type_alignment
_ACEOF

    if test "char, int8_t, short, int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical1_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_LOGICAL1_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL1=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL1=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL1=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=2
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*2... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        LOGICAL*2 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_LOGICALp2="yes"
else
  ompi_cv_f77_have_LOGICALp2="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_LOGICALp2" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp2" >&6; }

    if test "x$ompi_cv_f77_have_LOGICALp2" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*2... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 LOGICAL*2" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*2... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       LOGICAL*2 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31084: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31091: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31101: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31108: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of LOGICAL*2" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31135: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31142: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_LOGICALp2=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31155: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of LOGICAL*2" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*2" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_LOGICALp2" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp2" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp2

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*2" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*2... " >&6; }
if test "${ompi_cv_find_type_LOGICALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
                           oft_real_type="short"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then
                           oft_real_type="int16_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_LOGICALp2="not found"
else
  ompi_cv_find_type_LOGICALp2="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_LOGICALp2" >&5
$as_echo "$ompi_cv_find_type_LOGICALp2" >&6; }

    if test "x$ompi_cv_find_type_LOGICALp2" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_LOGICALp2" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_LOGICALp2
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*2" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*2... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      LOGICAL*2  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31391: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31398: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31408: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31415: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of LOGICAL*2" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of LOGICAL*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31446: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31453: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp2=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of LOGICAL*2" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_LOGICALp2" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp2" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp2

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_LOGICAL2 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_LOGICAL2 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL2 $ofc_type_alignment
_ACEOF

    if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical2_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_LOGICAL2_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL2=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL2=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL2=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=4
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*4... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        LOGICAL*4 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_LOGICALp4="yes"
else
  ompi_cv_f77_have_LOGICALp4="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_LOGICALp4" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp4" >&6; }

    if test "x$ompi_cv_f77_have_LOGICALp4" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*4... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 LOGICAL*4" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*4... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       LOGICAL*4 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31743: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31750: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31760: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31767: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of LOGICAL*4" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31794: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31801: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_LOGICALp4=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31814: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of LOGICAL*4" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*4" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_LOGICALp4" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp4" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp4

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*4" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*4... " >&6; }
if test "${ompi_cv_find_type_LOGICALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_LOGICALp4="not found"
else
  ompi_cv_find_type_LOGICALp4="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_LOGICALp4" >&5
$as_echo "$ompi_cv_find_type_LOGICALp4" >&6; }

    if test "x$ompi_cv_find_type_LOGICALp4" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_LOGICALp4" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_LOGICALp4
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*4" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*4... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      LOGICAL*4  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32040: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32047: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32057: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32064: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of LOGICAL*4" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of LOGICAL*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32095: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32102: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp4=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of LOGICAL*4" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_LOGICALp4" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp4" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp4

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_LOGICAL4 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_LOGICAL4 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL4 $ofc_type_alignment
_ACEOF

    if test "int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical4_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_LOGICAL4_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL4=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL4=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL4=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=8
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*8... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        LOGICAL*8 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_LOGICALp8="yes"
else
  ompi_cv_f77_have_LOGICALp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_LOGICALp8" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp8" >&6; }

    if test "x$ompi_cv_f77_have_LOGICALp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports LOGICAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*8... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 LOGICAL*8" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*8... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       LOGICAL*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32392: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32399: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32409: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32416: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of LOGICAL*8" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32443: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32450: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_LOGICALp8=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32463: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of LOGICAL*8" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_LOGICALp8" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp8" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp8

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*8" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*8... " >&6; }
if test "${ompi_cv_find_type_LOGICALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_LOGICALp8="not found"
else
  ompi_cv_find_type_LOGICALp8="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_LOGICALp8" >&5
$as_echo "$ompi_cv_find_type_LOGICALp8" >&6; }

    if test "x$ompi_cv_find_type_LOGICALp8" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_LOGICALp8" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_LOGICALp8
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*8" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*8... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      LOGICAL*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32684: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32691: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32701: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32708: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of LOGICAL*8" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of LOGICAL*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32739: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32746: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp8=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of LOGICAL*8" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_LOGICALp8" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_LOGICAL8 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_LOGICAL8 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL8 $ofc_type_alignment
_ACEOF

    if test "int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical8_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_LOGICAL8_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL8=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL8=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL8=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER... " >&6; }
if test "${ompi_cv_f77_have_INTEGER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_INTEGER="yes"
else
  ompi_cv_f77_have_INTEGER="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_INTEGER" >&5
$as_echo "$ompi_cv_f77_have_INTEGER" >&6; }

    if test "x$ompi_cv_f77_have_INTEGER" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 INTEGER" >&5
$as_echo_n "checking size of Fortran 77 INTEGER... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       INTEGER x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33037: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33044: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33054: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33061: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of INTEGER" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33088: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33095: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_INTEGER=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33108: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of INTEGER" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_INTEGER" >&5
$as_echo "$ompi_cv_f77_sizeof_INTEGER" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGER

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER" >&5
$as_echo_n "checking for C type corresponding to INTEGER... " >&6; }
if test "${ompi_cv_find_type_INTEGER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_INTEGER="not found"
else
  ompi_cv_find_type_INTEGER="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_INTEGER" >&5
$as_echo "$ompi_cv_find_type_INTEGER" >&6; }

    if test "x$ompi_cv_find_type_INTEGER" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_INTEGER" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_INTEGER
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER" >&5
$as_echo_n "checking alignment of Fortran INTEGER... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      INTEGER  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33334: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33341: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33351: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33358: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of INTEGER" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of INTEGER when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33389: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33396: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_INTEGER=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of INTEGER" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_INTEGER" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGER" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER $ofc_type_alignment
_ACEOF

    if test "int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*1... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER*1 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_INTEGERp1="yes"
else
  ompi_cv_f77_have_INTEGERp1="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_INTEGERp1" >&5
$as_echo "$ompi_cv_f77_have_INTEGERp1" >&6; }

    if test "x$ompi_cv_f77_have_INTEGERp1" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*1... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 INTEGER*1" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*1... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       INTEGER*1 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33686: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33693: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33703: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33710: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of INTEGER*1" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*1 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33737: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33744: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_INTEGERp1=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33757: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of INTEGER*1" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*1" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_INTEGERp1" >&5
$as_echo "$ompi_cv_f77_sizeof_INTEGERp1" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp1

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*1" >&5
$as_echo_n "checking for C type corresponding to INTEGER*1... " >&6; }
if test "${ompi_cv_find_type_INTEGERp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
                           oft_real_type="char"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then
                           oft_real_type="int8_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
                           oft_real_type="short"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_INTEGERp1="not found"
else
  ompi_cv_find_type_INTEGERp1="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_INTEGERp1" >&5
$as_echo "$ompi_cv_find_type_INTEGERp1" >&6; }

    if test "x$ompi_cv_find_type_INTEGERp1" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_INTEGERp1" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_INTEGERp1
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*1" >&5
$as_echo_n "checking alignment of Fortran INTEGER*1... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      INTEGER*1  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33993: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34000: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34010: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34017: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of INTEGER*1" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of INTEGER*1 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34048: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34055: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_INTEGERp1=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of INTEGER*1" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_INTEGERp1" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp1" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp1

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER1 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER1 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER1 $ofc_type_alignment
_ACEOF

    if test "char, int8_t, short, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer1_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER1_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER1=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER1=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER1=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=2
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*2... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER*2 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_INTEGERp2="yes"
else
  ompi_cv_f77_have_INTEGERp2="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_INTEGERp2" >&5
$as_echo "$ompi_cv_f77_have_INTEGERp2" >&6; }

    if test "x$ompi_cv_f77_have_INTEGERp2" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*2... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 INTEGER*2" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*2... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       INTEGER*2 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34345: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34352: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34362: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34369: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of INTEGER*2" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34396: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34403: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_INTEGERp2=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34416: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of INTEGER*2" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*2" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_INTEGERp2" >&5
$as_echo "$ompi_cv_f77_sizeof_INTEGERp2" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp2

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*2" >&5
$as_echo_n "checking for C type corresponding to INTEGER*2... " >&6; }
if test "${ompi_cv_find_type_INTEGERp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
                           oft_real_type="short"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then
                           oft_real_type="int16_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_INTEGERp2="not found"
else
  ompi_cv_find_type_INTEGERp2="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_INTEGERp2" >&5
$as_echo "$ompi_cv_find_type_INTEGERp2" >&6; }

    if test "x$ompi_cv_find_type_INTEGERp2" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_INTEGERp2" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_INTEGERp2
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*2" >&5
$as_echo_n "checking alignment of Fortran INTEGER*2... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      INTEGER*2  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34652: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34659: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34669: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34676: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of INTEGER*2" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of INTEGER*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34707: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34714: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_INTEGERp2=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of INTEGER*2" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_INTEGERp2" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp2" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp2

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER2 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER2 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER2 $ofc_type_alignment
_ACEOF

    if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer2_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER2_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER2=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER2=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER2=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=4
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*4... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER*4 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_INTEGERp4="yes"
else
  ompi_cv_f77_have_INTEGERp4="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_INTEGERp4" >&5
$as_echo "$ompi_cv_f77_have_INTEGERp4" >&6; }

    if test "x$ompi_cv_f77_have_INTEGERp4" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*4... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 INTEGER*4" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*4... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       INTEGER*4 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35004: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35011: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35021: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35028: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of INTEGER*4" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35055: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35062: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_INTEGERp4=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35075: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of INTEGER*4" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*4" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_INTEGERp4" >&5
$as_echo "$ompi_cv_f77_sizeof_INTEGERp4" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp4

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*4" >&5
$as_echo_n "checking for C type corresponding to INTEGER*4... " >&6; }
if test "${ompi_cv_find_type_INTEGERp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_INTEGERp4="not found"
else
  ompi_cv_find_type_INTEGERp4="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_INTEGERp4" >&5
$as_echo "$ompi_cv_find_type_INTEGERp4" >&6; }

    if test "x$ompi_cv_find_type_INTEGERp4" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_INTEGERp4" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_INTEGERp4
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*4" >&5
$as_echo_n "checking alignment of Fortran INTEGER*4... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      INTEGER*4  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35301: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35308: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35318: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35325: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of INTEGER*4" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of INTEGER*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35356: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35363: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_INTEGERp4=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of INTEGER*4" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_INTEGERp4" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp4" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp4

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER4 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER4 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER4 $ofc_type_alignment
_ACEOF

    if test "int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer4_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER4_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER4=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER4=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER4=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=8
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*8... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER*8 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_INTEGERp8="yes"
else
  ompi_cv_f77_have_INTEGERp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_INTEGERp8" >&5
$as_echo "$ompi_cv_f77_have_INTEGERp8" >&6; }

    if test "x$ompi_cv_f77_have_INTEGERp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*8... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 INTEGER*8" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*8... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       INTEGER*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35653: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35660: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35670: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35677: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of INTEGER*8" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35704: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35711: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_INTEGERp8=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35724: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of INTEGER*8" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_INTEGERp8" >&5
$as_echo "$ompi_cv_f77_sizeof_INTEGERp8" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp8

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*8" >&5
$as_echo_n "checking for C type corresponding to INTEGER*8... " >&6; }
if test "${ompi_cv_find_type_INTEGERp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_INTEGERp8="not found"
else
  ompi_cv_find_type_INTEGERp8="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_INTEGERp8" >&5
$as_echo "$ompi_cv_find_type_INTEGERp8" >&6; }

    if test "x$ompi_cv_find_type_INTEGERp8" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_INTEGERp8" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_INTEGERp8
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*8" >&5
$as_echo_n "checking alignment of Fortran INTEGER*8... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      INTEGER*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35945: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35952: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35962: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35969: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of INTEGER*8" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of INTEGER*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36000: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36007: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_INTEGERp8=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of INTEGER*8" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_INTEGERp8" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER8 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER8 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER8 $ofc_type_alignment
_ACEOF

    if test "int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer8_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER8_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER8=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER8=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER8=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=16
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*16... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER*16 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_INTEGERp16="yes"
else
  ompi_cv_f77_have_INTEGERp16="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_INTEGERp16" >&5
$as_echo "$ompi_cv_f77_have_INTEGERp16" >&6; }

    if test "x$ompi_cv_f77_have_INTEGERp16" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports INTEGER*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*16... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 INTEGER*16" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*16... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       INTEGER*16 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36297: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36304: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36314: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36321: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of INTEGER*16" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36348: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36355: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_INTEGERp16=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36368: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of INTEGER*16" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*16" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_INTEGERp16" >&5
$as_echo "$ompi_cv_f77_sizeof_INTEGERp16" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp16

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*16" >&5
$as_echo_n "checking for C type corresponding to INTEGER*16... " >&6; }
if test "${ompi_cv_find_type_INTEGERp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_INTEGERp16="not found"
else
  ompi_cv_find_type_INTEGERp16="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_INTEGERp16" >&5
$as_echo "$ompi_cv_find_type_INTEGERp16" >&6; }

    if test "x$ompi_cv_find_type_INTEGERp16" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_INTEGERp16" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_INTEGERp16
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*16" >&5
$as_echo_n "checking alignment of Fortran INTEGER*16... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      INTEGER*16  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36589: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36596: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36606: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36613: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of INTEGER*16" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of INTEGER*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36644: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36651: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_INTEGERp16=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of INTEGER*16" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_INTEGERp16" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp16" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp16

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER16 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER16 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER16 $ofc_type_alignment
_ACEOF

    if test "int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer16_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER16_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER16=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER16=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER16=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL... " >&6; }
if test "${ompi_cv_f77_have_REAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        REAL bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_REAL="yes"
else
  ompi_cv_f77_have_REAL="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_REAL" >&5
$as_echo "$ompi_cv_f77_have_REAL" >&6; }

    if test "x$ompi_cv_f77_have_REAL" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 REAL" >&5
$as_echo_n "checking size of Fortran 77 REAL... " >&6; }
if test "${ompi_cv_f77_sizeof_REAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       REAL x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36942: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36949: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36959: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36966: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of REAL" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36993: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37000: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_REAL=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37013: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of REAL" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_REAL" >&5
$as_echo "$ompi_cv_f77_sizeof_REAL" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_REAL

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 REAL does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL" >&5
$as_echo_n "checking for C type corresponding to REAL... " >&6; }
if test "${ompi_cv_find_type_REAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
                           oft_real_type="float"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
                           oft_real_type="double"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
                           oft_real_type="long double"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_REAL="not found"
else
  ompi_cv_find_type_REAL="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_REAL" >&5
$as_echo "$ompi_cv_find_type_REAL" >&6; }

    if test "x$ompi_cv_find_type_REAL" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_REAL" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_REAL
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL" >&5
$as_echo_n "checking alignment of Fortran REAL... " >&6; }
if test "${ompi_cv_f77_alignment_REAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      REAL  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37229: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37236: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37246: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37253: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of REAL" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of REAL when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37284: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37291: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_REAL=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of REAL" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_REAL" >&5
$as_echo "$ompi_cv_f77_alignment_REAL" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REAL

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL $ofc_type_alignment
_ACEOF

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_REAL_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_REAL=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_REAL=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_REAL=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=2
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*2... " >&6; }
if test "${ompi_cv_f77_have_REALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        REAL*2 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_REALp2="yes"
else
  ompi_cv_f77_have_REALp2="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_REALp2" >&5
$as_echo "$ompi_cv_f77_have_REALp2" >&6; }

    if test "x$ompi_cv_f77_have_REALp2" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*2... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 REAL*2" >&5
$as_echo_n "checking size of Fortran 77 REAL*2... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       REAL*2 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37581: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37588: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37598: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37605: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of REAL*2" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37632: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37639: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_REALp2=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37652: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of REAL*2" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*2" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_REALp2" >&5
$as_echo "$ompi_cv_f77_sizeof_REALp2" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_REALp2

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*2" >&5
$as_echo_n "checking for C type corresponding to REAL*2... " >&6; }
if test "${ompi_cv_find_type_REALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
                           oft_real_type="float"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
                           oft_real_type="double"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
                           oft_real_type="long double"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_REALp2="not found"
else
  ompi_cv_find_type_REALp2="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_REALp2" >&5
$as_echo "$ompi_cv_find_type_REALp2" >&6; }

    if test "x$ompi_cv_find_type_REALp2" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_REALp2" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_REALp2
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*2" >&5
$as_echo_n "checking alignment of Fortran REAL*2... " >&6; }
if test "${ompi_cv_f77_alignment_REALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      REAL*2  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37868: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37875: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37885: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37892: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of REAL*2" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of REAL*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37923: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37930: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_REALp2=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of REAL*2" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_REALp2" >&5
$as_echo "$ompi_cv_f77_alignment_REALp2" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp2

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL2 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL2 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL2 $ofc_type_alignment
_ACEOF

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real2_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_REAL2_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_REAL2=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_REAL2=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_REAL2=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=4
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*4... " >&6; }
if test "${ompi_cv_f77_have_REALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        REAL*4 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_REALp4="yes"
else
  ompi_cv_f77_have_REALp4="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_REALp4" >&5
$as_echo "$ompi_cv_f77_have_REALp4" >&6; }

    if test "x$ompi_cv_f77_have_REALp4" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*4... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 REAL*4" >&5
$as_echo_n "checking size of Fortran 77 REAL*4... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       REAL*4 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38220: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38227: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38237: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38244: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of REAL*4" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38271: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38278: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_REALp4=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38291: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of REAL*4" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*4" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_REALp4" >&5
$as_echo "$ompi_cv_f77_sizeof_REALp4" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_REALp4

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*4" >&5
$as_echo_n "checking for C type corresponding to REAL*4... " >&6; }
if test "${ompi_cv_find_type_REALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
                           oft_real_type="float"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
                           oft_real_type="double"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
                           oft_real_type="long double"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_REALp4="not found"
else
  ompi_cv_find_type_REALp4="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_REALp4" >&5
$as_echo "$ompi_cv_find_type_REALp4" >&6; }

    if test "x$ompi_cv_find_type_REALp4" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_REALp4" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_REALp4
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*4" >&5
$as_echo_n "checking alignment of Fortran REAL*4... " >&6; }
if test "${ompi_cv_f77_alignment_REALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      REAL*4  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38507: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38514: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38524: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38531: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of REAL*4" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of REAL*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38562: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38569: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_REALp4=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of REAL*4" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_REALp4" >&5
$as_echo "$ompi_cv_f77_alignment_REALp4" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp4

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL4 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL4 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL4 $ofc_type_alignment
_ACEOF

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real4_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_REAL4_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_REAL4=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_REAL4=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_REAL4=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=8
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*8... " >&6; }
if test "${ompi_cv_f77_have_REALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        REAL*8 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_REALp8="yes"
else
  ompi_cv_f77_have_REALp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_REALp8" >&5
$as_echo "$ompi_cv_f77_have_REALp8" >&6; }

    if test "x$ompi_cv_f77_have_REALp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*8... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 REAL*8" >&5
$as_echo_n "checking size of Fortran 77 REAL*8... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       REAL*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38859: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38866: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38876: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38883: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of REAL*8" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38910: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38917: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_REALp8=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38930: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of REAL*8" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_REALp8" >&5
$as_echo "$ompi_cv_f77_sizeof_REALp8" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_REALp8

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*8" >&5
$as_echo_n "checking for C type corresponding to REAL*8... " >&6; }
if test "${ompi_cv_find_type_REALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
                           oft_real_type="float"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
                           oft_real_type="double"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
                           oft_real_type="long double"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_REALp8="not found"
else
  ompi_cv_find_type_REALp8="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_REALp8" >&5
$as_echo "$ompi_cv_find_type_REALp8" >&6; }

    if test "x$ompi_cv_find_type_REALp8" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_REALp8" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_REALp8
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*8" >&5
$as_echo_n "checking alignment of Fortran REAL*8... " >&6; }
if test "${ompi_cv_f77_alignment_REALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      REAL*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39146: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39153: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39163: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39170: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of REAL*8" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of REAL*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39201: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39208: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_REALp8=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of REAL*8" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_REALp8" >&5
$as_echo "$ompi_cv_f77_alignment_REALp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL8 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL8 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL8 $ofc_type_alignment
_ACEOF

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real8_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_REAL8_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_REAL8=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_REAL8=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_REAL8=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=16
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*16... " >&6; }
if test "${ompi_cv_f77_have_REALp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        REAL*16 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_REALp16="yes"
else
  ompi_cv_f77_have_REALp16="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_REALp16" >&5
$as_echo "$ompi_cv_f77_have_REALp16" >&6; }

    if test "x$ompi_cv_f77_have_REALp16" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports REAL*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*16... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 REAL*16" >&5
$as_echo_n "checking size of Fortran 77 REAL*16... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       REAL*16 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39498: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39505: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39515: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39522: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of REAL*16" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39549: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39556: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_REALp16=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39569: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of REAL*16" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*16" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_REALp16" >&5
$as_echo "$ompi_cv_f77_sizeof_REALp16" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_REALp16

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="no"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*16" >&5
$as_echo_n "checking for C type corresponding to REAL*16... " >&6; }
if test "${ompi_cv_find_type_REALp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
                           oft_real_type="float"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
                           oft_real_type="double"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
                           oft_real_type="long double"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_REALp16="not found"
else
  ompi_cv_find_type_REALp16="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_REALp16" >&5
$as_echo "$ompi_cv_find_type_REALp16" >&6; }

    if test "x$ompi_cv_find_type_REALp16" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_REALp16" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_REALp16
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*16" >&5
$as_echo_n "checking alignment of Fortran REAL*16... " >&6; }
if test "${ompi_cv_f77_alignment_REALp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      REAL*16  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39785: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39792: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39802: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39809: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of REAL*16" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of REAL*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39840: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39847: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_REALp16=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of REAL*16" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_REALp16" >&5
$as_echo "$ompi_cv_f77_alignment_REALp16" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp16

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL16 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL16 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL16 $ofc_type_alignment
_ACEOF

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real16_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_REAL16_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_REAL16=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_REAL16=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_REAL16=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    # In some compilers, the bit representation of REAL*16 is not the same
    # as the C counterpart that we found.  If this is the case, then we
    # want to disable reduction support for MPI_REAL16 (per ticket #1603).

    unset happy
    unset CFLAGS_save


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy define_value msg CFLAGS_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy define_value msg CFLAGS_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    # We have to do this as a cache check for cross-compilation platforms
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching bit representation of REAL*16" >&5
$as_echo_n "checking for C type matching bit representation of REAL*16... " >&6; }
if test "${ompi_cv_real16_c_equiv+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$OMPI_WANT_F77_BINDINGS" = "1" -a "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then :

            # AC_CACHE_CHECK automatically does its own AC_MSG_CHECKING, so close it out
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: pending" >&5
$as_echo "pending" >&6; }

            # First check the type that we found was the same length in C
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OMPI_FORTRAN_REAL16_C_TYPE == REAL*16" >&5
$as_echo_n "checking if $OMPI_FORTRAN_REAL16_C_TYPE == REAL*16... " >&6; }

    # C module
    cat > conftest_c.c <<EOF
#include <stdio.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

void c_backend($OMPI_FORTRAN_REAL16_C_TYPE *a) {
    FILE *fp = fopen("conftestval", "w");
    if (NULL == fp) exit(1);
    fprintf(fp, "%s\n", (1.1L == *a) ? "yes" : "no");
    fclose(fp);
}

void C($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); }
void c($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); }
void c_($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); }
/* JMS I'm pretty sure this one will never happen...? */
void c__($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); }
#ifdef __cplusplus
}
#endif
EOF

    # Fortran module
    cat > conftest_f.f <<EOF
        program bogus
        REAL*16 :: foo
        foo = 1.1
        call c(foo)
        end program bogus
EOF
    rm -f conftestval
    # Compile and link

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40050: $CC $CFLAGS -I. -c conftest_c.c" >&5
$CC $CFLAGS -I. -c conftest_c.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40057: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40067: $F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40074: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi
    if test "$happy" = "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
         as_fn_error "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5
fi

    # If it worked so far, try running to see what we get
    if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
         as_fn_error "Can not determine if REAL*16 bit-matches C if cross compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40105: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40112: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5

fi

fi

    # All done; whack tmp files
    rm -rf conftest*

            # If that didn't work, see if we have a compiler-specific
            # time that might work
            if test "$happy" = "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $happy" >&5
$as_echo "$happy" >&6; }
                   # Intel compiler has a special type that should work
                   if test "$ompi_cv_c_compiler_vendor" = "intel"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if intel compiler _Quad == REAL*16" >&5
$as_echo_n "checking if intel compiler _Quad == REAL*16... " >&6; }
                          CFLAGS_save="$CFLAGS"
                          CFLAGS="$CFLAGS -Qoption,cpp,--extended_float_types"

# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

    # C module
    cat > conftest_c.c <<EOF
#include <stdio.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

void c_backend(_Quad *a) {
    FILE *fp = fopen("conftestval", "w");
    if (NULL == fp) exit(1);
    fprintf(fp, "%s\n", (1.1q == *a) ? "yes" : "no");
    fclose(fp);
}

void C(_Quad *a) { c_backend(a); }
void c(_Quad *a) { c_backend(a); }
void c_(_Quad *a) { c_backend(a); }
/* JMS I'm pretty sure this one will never happen...? */
void c__(_Quad *a) { c_backend(a); }
#ifdef __cplusplus
}
#endif
EOF

    # Fortran module
    cat > conftest_f.f <<EOF
        program bogus
        REAL*16 :: foo
        foo = 1.1
        call c(foo)
        end program bogus
EOF
    rm -f conftestval
    # Compile and link

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40253: $CC $CFLAGS -I. -c conftest_c.c" >&5
$CC $CFLAGS -I. -c conftest_c.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40260: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40270: $F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40277: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi
    if test "$happy" = "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
         as_fn_error "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5
fi

    # If it worked so far, try running to see what we get
    if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
         as_fn_error "Can not determine if REAL*16 bit-matches C if cross compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40308: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40315: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5

fi

fi

    # All done; whack tmp files
    rm -rf conftest*

                          if test "$happy" = "yes"; then :
  OMPI_FORTRAN_REAL16_C_TYPE="_Quad"
                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: works!" >&5
$as_echo "works!" >&6; }
else
  CFLAGS="$CFLAGS_save"
                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not work" >&5
$as_echo "does not work" >&6; }
fi

fi
                   # We have to [re-]print a new message here, because
                   # AC_CACHE_CHECK will automatically AC_MSG_RESULT
                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching bit representation of REAL*16" >&5
$as_echo_n "checking for C type matching bit representation of REAL*16... " >&6; }

fi
            ompi_cv_real16_c_equiv=$happy

else

            # No fortran bindings or no REAL*16
            if test "$OMPI_WANT_F77_BINDINGS" = "0"; then :
  msg="skipped (no Fortran MPI bindings)"
else
  msg="skipped (no REAL*16)"
fi
            ompi_cv_real16_c_equiv=$msg

fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_real16_c_equiv" >&5
$as_echo "$ompi_cv_real16_c_equiv" >&6; }

    ompi_real16_matches_c=$ompi_cv_real16_c_equiv


    if test "$ompi_real16_matches_c" = "yes"; then :
  define_value=1
else
  define_value=0
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&5
$as_echo "$as_me: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&2;}
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_REAL16_MATCHES_C $define_value
_ACEOF


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
$as_echo_n "checking if Fortran 77 compiler supports DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f77_have_DOUBLE_PRECISION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        DOUBLE PRECISION bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_DOUBLE_PRECISION="yes"
else
  ompi_cv_f77_have_DOUBLE_PRECISION="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_f77_have_DOUBLE_PRECISION" >&6; }

    if test "x$ompi_cv_f77_have_DOUBLE_PRECISION" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
$as_echo_n "checking if Fortran 77 compiler supports DOUBLE PRECISION... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 DOUBLE PRECISION" >&5
$as_echo_n "checking size of Fortran 77 DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f77_sizeof_DOUBLE_PRECISION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       DOUBLE PRECISION x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40597: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40604: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40614: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40621: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of DOUBLE PRECISION" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of DOUBLE PRECISION when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40648: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40655: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40668: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of DOUBLE PRECISION" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of DOUBLE PRECISION" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_DOUBLE_PRECISION

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to DOUBLE PRECISION" >&5
$as_echo_n "checking for C type corresponding to DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_find_type_DOUBLE_PRECISION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then :
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
                           oft_real_type="float"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
                           oft_real_type="double"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
                           oft_real_type="long double"
                       fi
                   fi

fi
         if test -z "$oft_real_type"; then :
  ompi_cv_find_type_DOUBLE_PRECISION="not found"
else
  ompi_cv_find_type_DOUBLE_PRECISION="$oft_real_type"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_find_type_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_find_type_DOUBLE_PRECISION" >&6; }

    if test "x$ompi_cv_find_type_DOUBLE_PRECISION" = x"""not found"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then :
  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    if test "x$ompi_cv_find_type_DOUBLE_PRECISION" = x"""not found"; then :
  ofc_c_type=
else
  ofc_c_type=$ompi_cv_find_type_DOUBLE_PRECISION
fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran DOUBLE PRECISION" >&5
$as_echo_n "checking alignment of Fortran DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f77_alignment_DOUBLE_PRECISION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      DOUBLE PRECISION  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40884: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40891: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40901: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40908: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of DOUBLE PRECISION" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of DOUBLE PRECISION when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40939: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40946: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_DOUBLE_PRECISION=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of DOUBLE PRECISION" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_f77_alignment_DOUBLE_PRECISION" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_PRECISION

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_DOUBLE_PRECISION $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION $ofc_type_alignment
_ACEOF

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_double_precision_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_DOUBLE_PRECISION_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_DOUBLE_PRECISION=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX... " >&6; }
if test "${ompi_cv_f77_have_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        COMPLEX bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_COMPLEX="yes"
else
  ompi_cv_f77_have_COMPLEX="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_COMPLEX" >&5
$as_echo "$ompi_cv_f77_have_COMPLEX" >&6; }

    if test "x$ompi_cv_f77_have_COMPLEX" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 COMPLEX" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       COMPLEX x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41237: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41244: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41254: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41261: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of COMPLEX" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41288: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41295: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_COMPLEX=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41308: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of COMPLEX" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_COMPLEX" >&5
$as_echo "$ompi_cv_f77_sizeof_COMPLEX" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_COMPLEX

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=


            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX" >&5
$as_echo_n "checking alignment of Fortran COMPLEX... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      COMPLEX  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41465: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41472: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41482: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41489: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of COMPLEX" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of COMPLEX when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41520: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41527: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEX=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of COMPLEX" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_COMPLEX" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEX" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEX

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_COMPLEX $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_COMPLEX_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    # Double precision complex types are not standard, but many compilers support it.
    # Code should be wrapped with #ifdef OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports DOUBLE COMPLEX" >&5
$as_echo_n "checking if Fortran 77 compiler supports DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f77_have_DOUBLE_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        DOUBLE COMPLEX bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_DOUBLE_COMPLEX="yes"
else
  ompi_cv_f77_have_DOUBLE_COMPLEX="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_DOUBLE_COMPLEX" >&5
$as_echo "$ompi_cv_f77_have_DOUBLE_COMPLEX" >&6; }

    if test "x$ompi_cv_f77_have_DOUBLE_COMPLEX" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports DOUBLE COMPLEX" >&5
$as_echo_n "checking if Fortran 77 compiler supports DOUBLE COMPLEX... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 DOUBLE COMPLEX" >&5
$as_echo_n "checking size of Fortran 77 DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f77_sizeof_DOUBLE_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       DOUBLE COMPLEX x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41819: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41826: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41836: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41843: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of DOUBLE COMPLEX" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of DOUBLE COMPLEX when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:41870: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41877: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_DOUBLE_COMPLEX=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:41890: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of DOUBLE COMPLEX" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of DOUBLE COMPLEX" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_DOUBLE_COMPLEX" >&5
$as_echo "$ompi_cv_f77_sizeof_DOUBLE_COMPLEX" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_DOUBLE_COMPLEX

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 DOUBLE COMPLEX does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 DOUBLE COMPLEX does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE COMPLEX" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE COMPLEX" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=


            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran DOUBLE COMPLEX" >&5
$as_echo_n "checking alignment of Fortran DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f77_alignment_DOUBLE_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      DOUBLE COMPLEX  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42047: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42054: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42064: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42071: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of DOUBLE COMPLEX" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of DOUBLE COMPLEX when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42102: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42109: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_DOUBLE_COMPLEX=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of DOUBLE COMPLEX" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_DOUBLE_COMPLEX" >&5
$as_echo "$ompi_cv_f77_alignment_DOUBLE_COMPLEX" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_COMPLEX

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_DOUBLE_COMPLEX $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_double_complex_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_DOUBLE_COMPLEX_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_DOUBLE_COMPLEX=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    # The complex*N tests are a bit different (note: the complex tests are
    # the same as all the rest, because complex is a composite of two
    # reals, which we *have* to have.  It's only the complex*N tests that
    # are different).  The fortran complex types are composites of the
    # real*(N/2) types.  So for us to support complex*N, two conditions
    # must be true:
    #
    # a) we must support real*(N/2) (i.e., compiler supports it and we
    #    have a back-end C type for it)
    # b) compiler supports complex*N




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=8
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*8... " >&6; }
if test "${ompi_cv_f77_have_COMPLEXp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        COMPLEX*8 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_COMPLEXp8="yes"
else
  ompi_cv_f77_have_COMPLEXp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_COMPLEXp8" >&5
$as_echo "$ompi_cv_f77_have_COMPLEXp8" >&6; }

    if test "x$ompi_cv_f77_have_COMPLEXp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*8... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 COMPLEX*8" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX*8... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEXp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       COMPLEX*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42411: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42418: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42428: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42435: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of COMPLEX*8" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42462: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42469: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_COMPLEXp8=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42482: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of COMPLEX*8" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_COMPLEXp8" >&5
$as_echo "$ompi_cv_f77_sizeof_COMPLEXp8" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp8

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=


            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*8" >&5
$as_echo_n "checking alignment of Fortran COMPLEX*8... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEXp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      COMPLEX*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42639: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42646: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42656: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42663: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of COMPLEX*8" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of COMPLEX*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42694: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42701: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEXp8=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of COMPLEX*8" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_COMPLEXp8" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEXp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_COMPLEX8 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX8 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX8 $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex8_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_COMPLEX8_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX8=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX8=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX8=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=16
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*16... " >&6; }
if test "${ompi_cv_f77_have_COMPLEXp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        COMPLEX*16 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_COMPLEXp16="yes"
else
  ompi_cv_f77_have_COMPLEXp16="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_COMPLEXp16" >&5
$as_echo "$ompi_cv_f77_have_COMPLEXp16" >&6; }

    if test "x$ompi_cv_f77_have_COMPLEXp16" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*16... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 COMPLEX*16" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX*16... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEXp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       COMPLEX*16 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:42991: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:42998: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43008: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43015: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of COMPLEX*16" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43042: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43049: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_COMPLEXp16=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43062: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of COMPLEX*16" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX*16" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_COMPLEXp16" >&5
$as_echo "$ompi_cv_f77_sizeof_COMPLEXp16" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp16

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=


            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*16" >&5
$as_echo_n "checking alignment of Fortran COMPLEX*16... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEXp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      COMPLEX*16  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43219: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43226: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43236: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43243: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of COMPLEX*16" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of COMPLEX*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43274: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43281: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEXp16=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of COMPLEX*16" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_COMPLEXp16" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEXp16" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp16

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_COMPLEX16 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX16 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX16 $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex16_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_COMPLEX16_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX16=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX16=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX16=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ofc_expected_size=32
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX*32" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*32... " >&6; }
if test "${ompi_cv_f77_have_COMPLEXp32+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
C
        program main
        COMPLEX*32 bogus_variable
        end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ompi_cv_f77_have_COMPLEXp32="yes"
else
  ompi_cv_f77_have_COMPLEXp32="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_have_COMPLEXp32" >&5
$as_echo "$ompi_cv_f77_have_COMPLEXp32" >&6; }

    if test "x$ompi_cv_f77_have_COMPLEXp32" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler supports COMPLEX*32" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*32... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 77 COMPLEX*32" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX*32... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEXp32+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f <<EOF
       program fsize
       external size
       COMPLEX*32 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43571: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43578: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43588: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43595: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then
             as_fn_error "Could not determine size of COMPLEX*32" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX*32 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43622: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43629: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftestval; then :
  ompi_cv_f77_sizeof_COMPLEXp32=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43642: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       as_fn_error "Could not determine size of COMPLEX*32" "$LINENO" 5
fi
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX*32" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_sizeof_COMPLEXp32" >&5
$as_echo "$ompi_cv_f77_sizeof_COMPLEXp32" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp32

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=


            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*32" >&5
$as_echo_n "checking alignment of Fortran COMPLEX*32... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEXp32+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

        # Fortran module
        cat > conftestf.f <<EOF
      program falign
      external align
      COMPLEX*32  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{   unsigned long aw, ax, ay, az;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    aw = (unsigned long) w;
    ax = (unsigned long) x;
    ay = (unsigned long) y;
    az = (unsigned long) z;
    if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
    else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
    else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
    else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
    else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
    else fprintf(f, "%d\n", 1);
    fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43799: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43806: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43816: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43823: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
            as_fn_error "Could not determine alignment of COMPLEX*32" "$LINENO" 5
        fi

        if test "$cross_compiling" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
             as_fn_error "Can not determine alignment of COMPLEX*32 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:43854: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:43861: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEXp32=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
$as_echo "Error!" >&6; }
                 as_fn_error "Could not determine alignment of COMPLEX*32" "$LINENO" 5
fi
fi
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_alignment_COMPLEXp32" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEXp32" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp32

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_COMPLEX32 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX32 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX32 $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex32_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_COMPLEX32_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX32=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX32=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX32=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    # Regardless of whether we have fortran bindings, or even a fortran
    # compiler, get the max value for a fortran MPI handle (this macro
    # handles the case where we don't have a fortran compiler).


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max Fortran MPI handle index" >&5
$as_echo_n "checking for max Fortran MPI handle index... " >&6; }
if test "${ompi_cv_f77_fortran_handle_max+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   # Find max fortran INTEGER value.  Set to sentinel value if we don't
         # have a Fortran compiler (e.g., if --disable-f77 was given).
         if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
             ompi_fint_max=0
         else
             # Calculate the number of f's that we need to append to the hex
             # value.  Do one less than we really need becaue we assume the
             # top nybble is 0x7 to avoid sign issues.
             ompi_numf=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 2 - 1`
             ompi_fint_max=0x7
             while test "$ompi_numf" -gt "0"; do
                 ompi_fint_max=${ompi_fint_max}f
                 ompi_numf=`expr $ompi_numf - 1`
             done
         fi

         # Get INT_MAX.  Compute a SWAG if we are cross compiling or something
         # goes wrong.
         rm -f conftest.out >/dev/null 2>&1
         if test "$cross_compiling" = yes; then :
   #cross compiling is fun.  compute INT_MAX same as INTEGER max
              ompi_numf=`expr $ac_cv_sizeof_int \* 2 - 1`
              ompi_cint_max=0x7
              while test "$ompi_numf" -gt "0" ; do
                  ompi_cint_max=${ompi_cint_max}f
                  ompi_numf=`expr $ompi_numf - 1`
              done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <limits.h>

int
main ()
{
FILE *fp = fopen("conftest.out", "w");
long cint = INT_MAX;
fprintf(fp, "%ld", cint);
fclose(fp);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cint_max=`cat conftest.out`
else
  ompi_cint_max=0
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


         if test "$ompi_cint_max" = "0" ; then
             # wow - something went really wrong.  Be conservative
             ompi_cv_f77_fortran_handle_max=32767
         elif test "$ompi_fint_max" = "0" ; then
             # we aren't compiling Fortran - just set it to C INT_MAX
             ompi_cv_f77_fortran_handle_max=$ompi_cint_max
         else
             # take the lesser of C INT_MAX and Fortran INTEGER
             # max.  The resulting value will then be storable in
             # either type.  There's no easy way to do this in
             # the shell, so make the preprocessor do it.
             ompi_cv_f77_fortran_handle_max="( $ompi_fint_max < $ompi_cint_max ? $ompi_fint_max : $ompi_cint_max )"
          fi
          rm -f conftest.out > /dev/null 2>&1
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_fortran_handle_max" >&5
$as_echo "$ompi_cv_f77_fortran_handle_max" >&6; }


cat >>confdefs.h <<_ACEOF
#define OMPI_FORTRAN_HANDLE_MAX $ompi_cv_f77_fortran_handle_max
_ACEOF



    #
    # Check for Fortran compilers value of TRUE and for the correct assumption
    # on LOGICAL for conversion into what C considers to be a true value
    #

    # invalidate cache if result came from a run where F77 was disabled
    if test "$ompi_cv_f77_true_value" = "0" ; then
        unset ompi_cv_f77_true_value
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value for .TRUE. logical type" >&5
$as_echo_n "checking Fortran value for .TRUE. logical type... " >&6; }
if test "${ompi_cv_f77_true_value+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0" ; then
             ompi_cv_f77_true_value=0
         else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo print | $GREP _ >/dev/null 2>&1 ; then
            ompi_print_logical_fn=print__
        else
            ompi_print_logical_fn=print_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_print_logical_fn=print_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_print_logical_fn=print
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_print_logical_fn=print
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_print_logical_fn=PRINT
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


             #
             # C module
             # We really need the confdefs.h Header file for
             # the ompi_fortran_logical_t definition
             #
             if test \! -f confdefs.h ; then
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot find confdefs.h file for config test" >&5
$as_echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;}
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                 as_fn_error "*** Cannot continue." "$LINENO" 5
             fi

             cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include "confdefs.h"

#ifdef __cplusplus
extern "C" {
#endif

void $ompi_print_logical_fn(ompi_fortran_logical_t * logical);

void $ompi_print_logical_fn(ompi_fortran_logical_t * logical)
{
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);

    if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) {
        fprintf(f, "%d\n", (int)*logical);
    } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) {
	fprintf(f, "%ld\n", (long) *logical);
#ifdef HAVE_LONG_LONG
    } else if (SIZEOF_LONG_LONG >= sizeof(ompi_fortran_logical_t) ) {
        fprintf(f, "%lld\n", (long long) *logical);
#endif
    } else {
        exit(1);
    }
}

#ifdef __cplusplus
}
#endif
EOF

             cat > conftestf.f <<EOF
      program main
      logical value
      value=.TRUE.
      CALL print(value)
      end
EOF

             #
             # Try the compilation and run.
             #

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44159: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44166: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44176: $F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS" >&5
$F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44183: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy=1
else
    unset ompi_status
    happy=0
fi
else
    unset ompi_status
    happy=0
fi

             if test "$happy" = "0" ; then
                 as_fn_error "Could not determine value of Fortran .TRUE..  Aborting." "$LINENO" 5
             fi

             if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine value of .TRUE. when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44210: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44217: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_true_value=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine value of Fotran .TRUE..  Aborting." "$LINENO" 5
fi
fi
         fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_true_value" >&5
$as_echo "$ompi_cv_f77_true_value" >&6; }


cat >>confdefs.h <<_ACEOF
#define OMPI_FORTRAN_VALUE_TRUE $ompi_cv_f77_true_value
_ACEOF


    unset happy ompi_print_logical_fn
    rm -rf conftest*


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct handling of Fortran logical arrays" >&5
$as_echo_n "checking for correct handling of Fortran logical arrays... " >&6; }
if test "${ompi_cv_f77_logical_array_correct+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
             ompi_cv_f77_logical_array_correct=yes
         else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo check | $GREP _ >/dev/null 2>&1 ; then
            ompi_check_logical_fn=check__
        else
            ompi_check_logical_fn=check_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_check_logical_fn=check_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_check_logical_fn=check
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_check_logical_fn=check
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_check_logical_fn=CHECK
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


             # Fortran module
             cat > conftestf.f <<EOF
        program check_logical_array
        external check
        logical l(2)
        l(1)=.FALSE.
        l(2)=.TRUE.
        CALL check(l)
        end
EOF

             # C module
             # We really need the confdefs.h Header file for
             # the ompi_fortran_logical_t definition
             if test \! -f confdefs.h ; then
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot find confdefs.h file for config test" >&5
$as_echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;}
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                 as_fn_error "*** Cannot continue." "$LINENO" 5
             fi

             cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include "confdefs.h"

#ifdef __cplusplus
  extern "C" {
#endif
void $ompi_check_logical_fn(ompi_fortran_logical_t * logical);

void $ompi_check_logical_fn(ompi_fortran_logical_t * logical)
{
    int result = 0;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);

    if (logical[0] == 0 &&
        logical[1] == $ompi_cv_f77_true_value)
      result = 1;
    fprintf(f, "%d\n", result);
}
#ifdef __cplusplus
}
#endif
EOF

             # Try the compilation and run.  Can't use AC_TRY_RUN
             # because it's two module files.

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44332: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44339: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44349: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44356: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy=1
else
    unset ompi_status
    happy=0
fi
else
    unset ompi_status
    happy=0
fi
             if test "$happy" = "0" ; then
                 as_fn_error "Error determining if arrays of logical values work properly." "$LINENO" 5
             fi

             if test "$cross_compiling" = "yes"; then :
   # assume we're ok
                  ompi_cv_f77_logical_array_correct=yes
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44383: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44390: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test "`cat conftestval`" = "1" ; then
                           ompi_cv_f77_logical_array_correct=yes
                       else
                           ompi_cv_f77_logical_array_correct=no
                       fi
else
    unset ompi_status
    ompi_cv_f77_logical_array_correct=no
fi
fi
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f77_logical_array_correct" >&5
$as_echo "$ompi_cv_f77_logical_array_correct" >&6; }

    if test "$ompi_cv_f77_logical_array_correct" = "no" ; then
        as_fn_error "Error determining if arrays of logical values work properly." "$LINENO" 5
    fi

    unset happy ompi_check_logical_fn
    rm -rf conftest*


    # How big should MPI_STATUS_SIZE be?  (i.e., the size of
    # MPI_STATUS, expressed in units of Fortran INTEGERs).  The C
    # equivalent of MPI_Status contains 4 C ints and a size_t.

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of MPI_STATUS_SIZE" >&5
$as_echo_n "checking for the value of MPI_STATUS_SIZE... " >&6; }
    OMPI_FORTRAN_STATUS_SIZE=0
    if test $OMPI_WANT_F77_BINDINGS -eq 0; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (no Fortran bindings)" >&5
$as_echo "skipped (no Fortran bindings)" >&6; }
    else
        bytes=`expr 4 \* $ac_cv_sizeof_int + $ac_cv_sizeof_size_t`
        num_integers=`expr $bytes / $OMPI_SIZEOF_FORTRAN_INTEGER`
        sanity=`expr $num_integers \* $OMPI_SIZEOF_FORTRAN_INTEGER`
        if test "$sanity" != "$bytes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown!" >&5
$as_echo "unknown!" >&6; }
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Size of C int: $ac_cv_sizeof_int" >&5
$as_echo "$as_me: WARNING: WARNING: Size of C int: $ac_cv_sizeof_int" >&2;}
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Size of C size_t: $ac_cv_sizeof_size_t" >&5
$as_echo "$as_me: WARNING: WARNING: Size of C size_t: $ac_cv_sizeof_size_t" >&2;}
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Size of Fortran INTEGER: $OMPI_SIZEOF_FORTRAN_INTEGER" >&5
$as_echo "$as_me: WARNING: WARNING: Size of Fortran INTEGER: $OMPI_SIZEOF_FORTRAN_INTEGER" >&2;}
               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not make this work out evenly...!" >&5
$as_echo "$as_me: WARNING: Could not make this work out evenly...!" >&2;}
               as_fn_error "Cannot continue" "$LINENO" 5
fi
        OMPI_FORTRAN_STATUS_SIZE=$num_integers
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_FORTRAN_STATUS_SIZE Fortran INTEGERs" >&5
$as_echo "$OMPI_FORTRAN_STATUS_SIZE Fortran INTEGERs" >&6; }
    fi


    #
    # There are 2 layers to the MPI f77 layer. The only extra thing that
    # determine f77 bindings is that fortran can be disabled by user. In
    # such cases, we need to not build the target at all.  One layer
    # generates MPI_f77* bindings. The other layer generates PMPI_f77*
    # bindings. The following conditions determine whether each (or both)
    # these layers are built.
    #
    # Superceeding clause:
    #   - fortran77 bindings should be enabled, else everything is
    #     disabled
    # 1. MPI_f77* bindings are needed if:
    #   - Profiling is not required
    #   - Profiling is required but weak symbols are not
    #     supported
    # 2. PMPI_* bindings are needed if profiling is required.  Hence we
    # define 2 conditionals which tell us whether each of these layers
    # need to be built or NOT
    #
     if test \( "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1 \) -a "$OMPI_WANT_F77_BINDINGS" = 1; then
  WANT_MPI_F77_BINDINGS_LAYER_TRUE=
  WANT_MPI_F77_BINDINGS_LAYER_FALSE='#'
else
  WANT_MPI_F77_BINDINGS_LAYER_TRUE='#'
  WANT_MPI_F77_BINDINGS_LAYER_FALSE=
fi


     if test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1; then
  WANT_PMPI_F77_BINDINGS_LAYER_TRUE=
  WANT_PMPI_F77_BINDINGS_LAYER_FALSE='#'
else
  WANT_PMPI_F77_BINDINGS_LAYER_TRUE='#'
  WANT_PMPI_F77_BINDINGS_LAYER_FALSE=
fi


    #-----------
    # Fortran 90
    #-----------





if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&5
$as_echo "$as_me: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 bindings were disabled)" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 bindings were disabled)" >&2;}

    OMPI_WANT_F90_BINDINGS=0
    OMPI_F90="none"
    BASEF90="none"
    OMPI_F90_ABSOLUTE="none"
    if test "$enable_f90" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** but --enable-f90 was explicitly specified" >&5
$as_echo "$as_me: WARNING: *** but --enable-f90 was explicitly specified" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi
elif test "$OMPI_WANT_F90_BINDINGS" = "0" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90/95 bindings disabled by user" >&5
$as_echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled by user" >&2;}
    OMPI_WANT_F90_BINDINGS=0
    OMPI_F90="none"
    BASEF90="none"
    OMPI_F90_ABSOLUTE="none"
else

    #
    # Check for the compiler
    #
    # Note that we don't actually *use* the fortran compiler to build
    # anything in OMPI; it's only used here in configure to find out
    # symbol conventions, type sizes, etc.  We also pass it down to
    # the wrapper compiler mpif90.
    #
    # Note that AC_PROG_FC will look for *any* fortran compiler, and
    # we don't want it to find an F77 compiler.  The AC docs don't
    # recommend using the "dialect" feature of AC_PROG_FC (and you can
    # only look for one of Fortran 90 or 95 -- not both), so instead
    # use the optional first parameter and steal the list of Fortran
    # compilers (excluding the f77 compiler names) from AC's default
    # list of 95 and 90 compilers and use it here.
    #

    # Must REQUIRE the PROG_FC macro and not call it directly here for
    # reasons well-described in the AC2.64 (and beyond) docs.


    if test -z "$FC"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&2;}
        OMPI_WANT_F90_BINDINGS=0
        OMPI_F90="none"
        BASEF90="none"
        OMPI_F90_ABSOLUTE="none"
    else
        OMPI_WANT_F90_BINDINGS=1
        OMPI_F90="$FC"
        set dummy $OMPI_F90
        OMPI_F90_ARGV0=$2
        BASEF90="`basename $OMPI_F90_ARGV0`"

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$OMPI_F90_ARGV0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_F90_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    fi
fi
# make sure the compiler actually works, if not cross-compiling
# Don't just use the AC macro so that we can have a pretty
# message.
if test $OMPI_WANT_F90_BINDINGS -eq 1; then :


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler works" >&5
$as_echo_n "checking if Fortran compiler works... " >&6; }
if test "${ompi_cv_Fortran_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         if test "$cross_compiling" = yes; then :
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ompi_cv_Fortran_works="links (cross compiling)"
else
  ompi_cv_Fortran_works="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_run "$LINENO"; then :
  ompi_cv_Fortran_works="yes"
else
  ompi_cv_Fortran_works="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_Fortran_works" >&5
$as_echo "$ompi_cv_Fortran_works" >&6; }
    if test "x$ompi_cv_Fortran_works" = x""no; then :
  cat <<EOF >&2
**********************************************************************
* It appears that your Fortran compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
           as_fn_error "Could not run a simple Fortran program.  Aborting." "$LINENO" 5
fi


fi

# check to see if the F77 and F90 compilers are compatible
if test $OMPI_WANT_F90_BINDINGS -eq 1; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible" >&5
$as_echo_n "checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible... " >&6; }

# make sure that we can combine F90 and F77 code
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

# Fortran module
cat > conftestf77.f <<EOF
        subroutine Conf1_test()
        end
EOF
cat > conftestf90.f <<EOF
        program main
        call Conf1_test()
        end
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44731: $OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f" >&5
$OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44738: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44748: $OMPI_F77 $FFLAGS -c conftestf77.f" >&5
$OMPI_F77 $FFLAGS -c conftestf77.f 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44755: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:44765: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS" >&5
$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44772: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   fortran_goodness=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44799: here is the F77 program:" >&5
else
    echo here is the F77 program: >&5
fi

# 1 is the filename
if test -n "conftestf77.f" -a -f "conftestf77.f"; then
    cat conftestf77.f >&5
fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:44812: here is the F90 program:" >&5
else
    echo here is the F90 program: >&5
fi

# 1 is the filename
if test -n "conftestf90.f" -a -f "conftestf90.f"; then
    cat conftestf90.f >&5
fi
    fortran_goodness=0
fi

unset HAPPY ompi_conftest_h
rm -rf conftest*

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


     if test "$fortran_goodness" = "0" ; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&2;}
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&2;}
         OMPI_WANT_F90_BINDINGS=0
     else
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
     fi

fi

# BWB - FIX ME - remove once everyone updates to LT 2.0.
#
if test $OMPI_WANT_F90_BINDINGS -eq 1; then :
  if test $BASEF77 != $BASEF90; then
           lt_ver=`$GREP '^VERSION' $srcdir/config/ltmain.sh | cut -f2 -d= | cut -f1 -d'.'`
           if test $lt_ver -lt 2 ; then
               as_fn_error "You appear to be trying to build the Fortran 90
 layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler
 combination that will not work with this configuration.  You must either
 use a different Fortran 77 / Fortran 90 compiler (one where it is the same
 compiler for both languages), upgrade to Libtool 2.x, or disable the
 Fortran 90 bindings." "$LINENO" 5
           fi
       fi

fi

# OS X before 10.3 (deployment target) does not allow undefined common
# symbols in shared libraries.  Because we can't figure out how to
# implement MPI_STATUSES_IGNORE and friends wihtout common symbols, on
# OS X we can't build the F90 bindings as a shared library.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra arguments to build a shared library" >&5
$as_echo_n "checking for extra arguments to build a shared library... " >&6; }
case "$host" in
    *apple-darwin*)
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible -- -static" >&5
$as_echo "impossible -- -static" >&6; }
            OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static"
        else
            case ${MACOSX_DEPLOYMENT_TARGET} in
            10.012)
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible -- -static" >&5
$as_echo "impossible -- -static" >&6; }
                OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static"
                ;;
            10.*)
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wl,-single_module" >&5
$as_echo "-Wl,-single_module" >&6; }
                OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-Wl,-single_module"
            esac
        fi
    ;;
    *)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
        OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS=""
    ;;
esac


# if we're still good, then save the extra file types.  Do this last
# because it implies tests that should be invoked by the above tests
# (e.g., running the fortran compiler).
if test $OMPI_WANT_F90_BINDINGS -eq 1; then :
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f files" >&5
$as_echo_n "checking for Fortran flag to compile .f files... " >&6; }
if test "${ac_cv_fc_srcext_f+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f
ac_fcflags_srcext_save=$ac_fcflags_srcext
ac_fcflags_srcext=
ac_cv_fc_srcext_f=unknown
for ac_flag in none -qsuffix=f=f -Tf; do
  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_fc_srcext_f=$ac_flag; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest.$ac_objext conftest.f
ac_fcflags_srcext=$ac_fcflags_srcext_save

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5
$as_echo "$ac_cv_fc_srcext_f" >&6; }
if test "x$ac_cv_fc_srcext_f" = xunknown; then
  as_fn_error "Fortran could not compile .f files" "$LINENO" 5
else
  ac_fc_srcext=f
  if test "x$ac_cv_fc_srcext_f" = xnone; then
    ac_fcflags_srcext=""
    FCFLAGS_f=""
  else
    ac_fcflags_srcext=$ac_cv_fc_srcext_f
    FCFLAGS_f=$ac_cv_fc_srcext_f
  fi


fi
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
if test "${ac_cv_fc_srcext_f90+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f90
ac_fcflags_srcext_save=$ac_fcflags_srcext
ac_fcflags_srcext=
ac_cv_fc_srcext_f90=unknown
for ac_flag in none -qsuffix=f=f90 -Tf; do
  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_fc_srcext_f90=$ac_flag; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest.$ac_objext conftest.f90
ac_fcflags_srcext=$ac_fcflags_srcext_save

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
$as_echo "$ac_cv_fc_srcext_f90" >&6; }
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
  as_fn_error "Fortran could not compile .f90 files" "$LINENO" 5
else
  ac_fc_srcext=f90
  if test "x$ac_cv_fc_srcext_f90" = xnone; then
    ac_fcflags_srcext=""
    FCFLAGS_f90=""
  else
    ac_fcflags_srcext=$ac_cv_fc_srcext_f90
    FCFLAGS_f90=$ac_cv_fc_srcext_f90
  fi


fi
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi

# Test to see if the F90 compilers likes the C++ exceptions flags.  If
# it doesn't, just abort.  We *could* handle this scenario (e.g.,
# probe the F90 compiler for what flags would be necessary), but we're
# kinda assuming that no one will care.  If they do, they'll e-mail us.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if F90 compiler likes the C++ exception flags" >&5
$as_echo_n "checking to see if F90 compiler likes the C++ exception flags... " >&6; }
if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (no F90 bindings)" >&5
$as_echo "skipped (no F90 bindings)" >&6; }
elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (no C++ exceptions flags)" >&5
$as_echo "skipped (no C++ exceptions flags)" >&6; }
else
    FCFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
    ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

    cat > conftest.$ac_ext <<_ACEOF
      program main
 INTEGER I
 I = 3
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&5
$as_echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&2;}
                       as_fn_error "*** Cannot continue" "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi

# All done -- save values

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_F90_BINDINGS $OMPI_WANT_F90_BINDINGS
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_F90 "$OMPI_F90"
_ACEOF

 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
  OMPI_WANT_F90_BINDINGS_TRUE=
  OMPI_WANT_F90_BINDINGS_FALSE='#'
else
  OMPI_WANT_F90_BINDINGS_TRUE='#'
  OMPI_WANT_F90_BINDINGS_FALSE=
fi


unset fortran_goodness


    # Look for the fortran module compiler flag



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 compiler module include flag" >&5
$as_echo_n "checking for Fortran 90 compiler module include flag... " >&6; }
if test "${ompi_cv_f90_module_include_flag+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ofi_possible_flags="-I -p -M"
            mkdir conftest.$$
            cd conftest.$$

            # Try to compile an F90 module
            mkdir subdir
            cd subdir
            cat > conftest-module.f90 <<EOF
module OMPI_MOD_FLAG

  type OMPI_MOD_FLAG_TYPE
    integer :: i
  end type OMPI_MOD_FLAG_TYPE

end module OMPI_MOD_FLAG
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45115: $FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45122: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

else
    unset ompi_status
    cd  ..
                 rm -rf conftest.$$
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Whoops!" >&5
$as_echo "Whoops!" >&6; }
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot seem to compile an f90 module" >&5
$as_echo "$as_me: WARNING: *** Cannot seem to compile an f90 module" >&2;}
                 as_fn_error "Cannot continue" "$LINENO" 5
fi
            cd ..

            #
            # Now try to compile a simple program usinng that module, iterating
            # through the possible flags that the compiler might use
            #

            cat > conftest.f90 <<EOF
program f90usemodule
  use OMPI_MOD_FLAG
end program f90usemodule
EOF

            ofi_module_flag=
            for flag in $ofi_possible_flags; do
                if test "$ofi_module_flag" = ""; then

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45159: $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45166: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_module_include_flag=$flag
                            ofi_module_flag="$flag"
else
    unset ompi_status

fi
                fi
            done
            cd ..
            rm -rf conftest.$$

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_module_include_flag" >&5
$as_echo "$ompi_cv_f90_module_include_flag" >&6; }

        OMPI_FC_MODULE_FLAG=$ompi_cv_f90_module_include_flag
        if test "$OMPI_FC_MODULE_FLAG" = ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&5
$as_echo "$as_me: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&2;}
        as_fn_error "*** Cannot continue" "$LINENO" 5
        fi
    else
        OMPI_FC_MODULE_FLAG=
    fi




    # Look for all the types
    OMPI_F90_IKINDS=""
    OMPI_F90_RKINDS=""
    OMPI_F90_CKINDS=""


    ofc_fortran_type="CHARACTER"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports CHARACTER" >&5
$as_echo_n "checking if Fortran 90 compiler supports CHARACTER... " >&6; }
if test "${ompi_cv_f90_have_CHARACTER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    CHARACTER :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_CHARACTER="yes"
else
  ompi_cv_f90_have_CHARACTER="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_CHARACTER" >&5
$as_echo "$ompi_cv_f90_have_CHARACTER" >&6; }

    if test "x$ompi_cv_f90_have_CHARACTER" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 CHARACTER" >&5
$as_echo_n "checking size of Fortran 90 CHARACTER... " >&6; }
if test "${ompi_cv_f90_sizeof_CHARACTER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   CHARACTER :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45355: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45362: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45372: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45379: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45400: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of CHARACTER" >&5
$as_echo "$as_me: WARNING: Could not determine size of CHARACTER" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of CHARACTER when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45423: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45430: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_CHARACTER=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of CHARACTER" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_CHARACTER" >&5
$as_echo "$ompi_cv_f90_sizeof_CHARACTER" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_CHARACTER

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_CHARACTER
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (CHARACTER) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (CHARACTER) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (CHARACTER)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (CHARACTER)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_CHARACTER
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for CHARACTER ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for CHARACTER ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for CHARACTER ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for CHARACTER ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_CHARACTER $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_CHARACTER=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_CHARACTER $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    # LOGICAL and friends

    ofc_fortran_type="LOGICAL"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports LOGICAL" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL... " >&6; }
if test "${ompi_cv_f90_have_LOGICAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    LOGICAL :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_LOGICAL="yes"
else
  ompi_cv_f90_have_LOGICAL="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_LOGICAL" >&5
$as_echo "$ompi_cv_f90_have_LOGICAL" >&6; }

    if test "x$ompi_cv_f90_have_LOGICAL" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 LOGICAL" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   LOGICAL :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45696: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45703: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45713: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45720: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45741: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45764: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45771: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_LOGICAL=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_LOGICAL" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICAL" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICAL

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=L
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_LOGICAL $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_LOGICAL=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_LOGICAL $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="LOGICAL*1"
    ofc_expected_size="1"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports LOGICAL*1" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*1... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    LOGICAL*1 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_LOGICALp1="yes"
else
  ompi_cv_f90_have_LOGICALp1="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_LOGICALp1" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp1" >&6; }

    if test "x$ompi_cv_f90_have_LOGICALp1" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 LOGICAL*1" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*1... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   LOGICAL*1 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46035: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46042: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46052: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46059: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46080: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*1" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*1" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*1 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46103: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46110: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_LOGICALp1=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*1" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_LOGICALp1" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp1" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp1

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL1
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL1
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=L
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_LOGICAL1 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_LOGICAL1=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_LOGICAL1 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="LOGICAL*2"
    ofc_expected_size="2"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports LOGICAL*2" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*2... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    LOGICAL*2 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_LOGICALp2="yes"
else
  ompi_cv_f90_have_LOGICALp2="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_LOGICALp2" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp2" >&6; }

    if test "x$ompi_cv_f90_have_LOGICALp2" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 LOGICAL*2" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*2... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   LOGICAL*2 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46374: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46381: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46391: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46398: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46419: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*2" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*2" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46442: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46449: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_LOGICALp2=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*2" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_LOGICALp2" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp2" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp2

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL2
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL2
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=L
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_LOGICAL2 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_LOGICAL2=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_LOGICAL2 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="LOGICAL*4"
    ofc_expected_size="4"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports LOGICAL*4" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*4... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    LOGICAL*4 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_LOGICALp4="yes"
else
  ompi_cv_f90_have_LOGICALp4="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_LOGICALp4" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp4" >&6; }

    if test "x$ompi_cv_f90_have_LOGICALp4" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 LOGICAL*4" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*4... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   LOGICAL*4 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46713: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46720: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46730: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46737: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46758: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*4" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*4" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46781: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46788: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_LOGICALp4=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*4" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_LOGICALp4" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp4" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp4

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL4
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL4
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=L
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_LOGICAL4 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_LOGICAL4=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_LOGICAL4 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="LOGICAL*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports LOGICAL*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*8... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    LOGICAL*8 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_LOGICALp8="yes"
else
  ompi_cv_f90_have_LOGICALp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_LOGICALp8" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp8" >&6; }

    if test "x$ompi_cv_f90_have_LOGICALp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 LOGICAL*8" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*8... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   LOGICAL*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47052: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47059: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47069: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47076: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47097: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*8" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of LOGICAL*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47120: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47127: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_LOGICALp8=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of LOGICAL*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_LOGICALp8" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp8" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL8
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL8
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=L
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_LOGICAL8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_LOGICAL8=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_LOGICAL8 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    # INTEGER and friends

    ofc_fortran_type="INTEGER"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports INTEGER" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER... " >&6; }
if test "${ompi_cv_f90_have_INTEGER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    INTEGER :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_INTEGER="yes"
else
  ompi_cv_f90_have_INTEGER="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_INTEGER" >&5
$as_echo "$ompi_cv_f90_have_INTEGER" >&6; }

    if test "x$ompi_cv_f90_have_INTEGER" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 INTEGER" >&5
$as_echo_n "checking size of Fortran 90 INTEGER... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   INTEGER :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47393: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47400: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47410: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47417: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47438: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47461: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47468: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGER=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_INTEGER" >&5
$as_echo "$ompi_cv_f90_sizeof_INTEGER" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGER

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_INTEGER $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*1"
    ofc_expected_size="1"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports INTEGER*1" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*1... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    INTEGER*1 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_INTEGERp1="yes"
else
  ompi_cv_f90_have_INTEGERp1="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_INTEGERp1" >&5
$as_echo "$ompi_cv_f90_have_INTEGERp1" >&6; }

    if test "x$ompi_cv_f90_have_INTEGERp1" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 INTEGER*1" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*1... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp1+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   INTEGER*1 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47732: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47739: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47749: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47756: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47777: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*1" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*1 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47800: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:47807: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp1=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*1" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_INTEGERp1" >&5
$as_echo "$ompi_cv_f90_sizeof_INTEGERp1" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp1

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER1
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER1
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER1 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER1=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_INTEGER1 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*2"
    ofc_expected_size="2"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports INTEGER*2" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*2... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    INTEGER*2 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_INTEGERp2="yes"
else
  ompi_cv_f90_have_INTEGERp2="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_INTEGERp2" >&5
$as_echo "$ompi_cv_f90_have_INTEGERp2" >&6; }

    if test "x$ompi_cv_f90_have_INTEGERp2" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 INTEGER*2" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*2... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   INTEGER*2 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48071: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48078: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48088: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48095: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48116: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*2" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48139: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48146: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp2=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*2" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_INTEGERp2" >&5
$as_echo "$ompi_cv_f90_sizeof_INTEGERp2" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp2

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER2
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER2
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER2 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER2=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_INTEGER2 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*4"
    ofc_expected_size="4"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports INTEGER*4" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*4... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    INTEGER*4 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_INTEGERp4="yes"
else
  ompi_cv_f90_have_INTEGERp4="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_INTEGERp4" >&5
$as_echo "$ompi_cv_f90_have_INTEGERp4" >&6; }

    if test "x$ompi_cv_f90_have_INTEGERp4" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 INTEGER*4" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*4... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   INTEGER*4 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48410: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48417: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48427: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48434: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48455: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*4" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48478: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48485: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp4=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*4" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_INTEGERp4" >&5
$as_echo "$ompi_cv_f90_sizeof_INTEGERp4" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp4

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER4
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER4
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER4 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER4=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_INTEGER4 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports INTEGER*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*8... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    INTEGER*8 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_INTEGERp8="yes"
else
  ompi_cv_f90_have_INTEGERp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_INTEGERp8" >&5
$as_echo "$ompi_cv_f90_have_INTEGERp8" >&6; }

    if test "x$ompi_cv_f90_have_INTEGERp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 INTEGER*8" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*8... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   INTEGER*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48749: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48756: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48766: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48773: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48794: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:48817: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:48824: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp8=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_INTEGERp8" >&5
$as_echo "$ompi_cv_f90_sizeof_INTEGERp8" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER8
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER8
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER8=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_INTEGER8 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*16"
    ofc_expected_size="16"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports INTEGER*16" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*16... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    INTEGER*16 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_INTEGERp16="yes"
else
  ompi_cv_f90_have_INTEGERp16="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_INTEGERp16" >&5
$as_echo "$ompi_cv_f90_have_INTEGERp16" >&6; }

    if test "x$ompi_cv_f90_have_INTEGERp16" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 INTEGER*16" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*16... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   INTEGER*16 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49088: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49095: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49105: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49112: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49133: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*16" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of INTEGER*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49156: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49163: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp16=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of INTEGER*16" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_INTEGERp16" >&5
$as_echo "$ompi_cv_f90_sizeof_INTEGERp16" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp16

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER16
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER16
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER16 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER16=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_INTEGER16 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    # REAL, DOUBLE PRECISION, REAL*4, *8, *16

    ofc_fortran_type="REAL"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports REAL" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL... " >&6; }
if test "${ompi_cv_f90_have_REAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    REAL :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_REAL="yes"
else
  ompi_cv_f90_have_REAL="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_REAL" >&5
$as_echo "$ompi_cv_f90_have_REAL" >&6; }

    if test "x$ompi_cv_f90_have_REAL" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 REAL" >&5
$as_echo_n "checking size of Fortran 90 REAL... " >&6; }
if test "${ompi_cv_f90_sizeof_REAL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   REAL :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49429: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49436: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49446: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49453: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49474: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49497: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49504: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REAL=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_REAL" >&5
$as_echo "$ompi_cv_f90_sizeof_REAL" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_REAL

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (REAL)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_REAL $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*2"
    ofc_expected_size="2"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports REAL*2" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*2... " >&6; }
if test "${ompi_cv_f90_have_REALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    REAL*2 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_REALp2="yes"
else
  ompi_cv_f90_have_REALp2="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_REALp2" >&5
$as_echo "$ompi_cv_f90_have_REALp2" >&6; }

    if test "x$ompi_cv_f90_have_REALp2" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 REAL*2" >&5
$as_echo_n "checking size of Fortran 90 REAL*2... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   REAL*2 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49768: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49775: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49785: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49792: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49813: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*2" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*2" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*2 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:49836: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:49843: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp2=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*2" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_REALp2" >&5
$as_echo "$ompi_cv_f90_sizeof_REALp2" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_REALp2

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL2
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL2
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL2 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL2=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_REAL2 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*4"
    ofc_expected_size="4"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports REAL*4" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*4... " >&6; }
if test "${ompi_cv_f90_have_REALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    REAL*4 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_REALp4="yes"
else
  ompi_cv_f90_have_REALp4="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_REALp4" >&5
$as_echo "$ompi_cv_f90_have_REALp4" >&6; }

    if test "x$ompi_cv_f90_have_REALp4" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 REAL*4" >&5
$as_echo_n "checking size of Fortran 90 REAL*4... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   REAL*4 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50107: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50114: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50124: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50131: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50152: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*4" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*4" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*4 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50175: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50182: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp4=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*4" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_REALp4" >&5
$as_echo "$ompi_cv_f90_sizeof_REALp4" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_REALp4

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL4
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL4
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL4 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL4=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_REAL4 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports REAL*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*8... " >&6; }
if test "${ompi_cv_f90_have_REALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    REAL*8 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_REALp8="yes"
else
  ompi_cv_f90_have_REALp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_REALp8" >&5
$as_echo "$ompi_cv_f90_have_REALp8" >&6; }

    if test "x$ompi_cv_f90_have_REALp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 REAL*8" >&5
$as_echo_n "checking size of Fortran 90 REAL*8... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   REAL*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50446: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50453: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50463: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50470: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50491: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*8" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50514: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50521: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp8=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_REALp8" >&5
$as_echo "$ompi_cv_f90_sizeof_REALp8" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_REALp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL8
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL8
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL8=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_REAL8 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*16"
    ofc_expected_size="16"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports REAL*16" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*16... " >&6; }
if test "${ompi_cv_f90_have_REALp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    REAL*16 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_REALp16="yes"
else
  ompi_cv_f90_have_REALp16="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_REALp16" >&5
$as_echo "$ompi_cv_f90_have_REALp16" >&6; }

    if test "x$ompi_cv_f90_have_REALp16" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 REAL*16" >&5
$as_echo_n "checking size of Fortran 90 REAL*16... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   REAL*16 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50785: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50792: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50802: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50809: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50830: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*16" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*16" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of REAL*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:50853: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:50860: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp16=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of REAL*16" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_REALp16" >&5
$as_echo "$ompi_cv_f90_sizeof_REALp16" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_REALp16

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL16
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL16
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL16 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL16=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_REAL16 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="DOUBLE PRECISION"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports DOUBLE PRECISION" >&5
$as_echo_n "checking if Fortran 90 compiler supports DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f90_have_DOUBLE_PRECISION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    DOUBLE PRECISION :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_DOUBLE_PRECISION="yes"
else
  ompi_cv_f90_have_DOUBLE_PRECISION="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_f90_have_DOUBLE_PRECISION" >&6; }

    if test "x$ompi_cv_f90_have_DOUBLE_PRECISION" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 DOUBLE PRECISION" >&5
$as_echo_n "checking size of Fortran 90 DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f90_sizeof_DOUBLE_PRECISION+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   DOUBLE PRECISION :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51124: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51131: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51141: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51148: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51169: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of DOUBLE PRECISION" >&5
$as_echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of DOUBLE PRECISION when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51192: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51199: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_DOUBLE_PRECISION=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of DOUBLE PRECISION" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_PRECISION

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_PRECISION
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=D
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_DOUBLE_PRECISION $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_DOUBLE_PRECISION=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_DOUBLE_PRECISION $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    # COMPLEX, DOUBLE COMPLEX, COMPLEX*8, *16, *32

    ofc_fortran_type="COMPLEX"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports COMPLEX" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX... " >&6; }
if test "${ompi_cv_f90_have_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    COMPLEX :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_COMPLEX="yes"
else
  ompi_cv_f90_have_COMPLEX="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_COMPLEX" >&5
$as_echo "$ompi_cv_f90_have_COMPLEX" >&6; }

    if test "x$ompi_cv_f90_have_COMPLEX" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 COMPLEX" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   COMPLEX :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51465: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51472: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51482: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51489: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51510: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51533: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51540: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEX=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_COMPLEX" >&5
$as_echo "$ompi_cv_f90_sizeof_COMPLEX" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEX

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_COMPLEX $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="COMPLEX*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports COMPLEX*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX*8... " >&6; }
if test "${ompi_cv_f90_have_COMPLEXp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    COMPLEX*8 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_COMPLEXp8="yes"
else
  ompi_cv_f90_have_COMPLEXp8="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_COMPLEXp8" >&5
$as_echo "$ompi_cv_f90_have_COMPLEXp8" >&6; }

    if test "x$ompi_cv_f90_have_COMPLEXp8" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 COMPLEX*8" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX*8... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEXp8+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   COMPLEX*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51804: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51811: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51821: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51828: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51849: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX*8 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:51872: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:51879: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEXp8=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX*8" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_COMPLEXp8" >&5
$as_echo "$ompi_cv_f90_sizeof_COMPLEXp8" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX8
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX8
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX8=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_COMPLEX8 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="COMPLEX*16"
    ofc_expected_size="16"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports COMPLEX*16" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX*16... " >&6; }
if test "${ompi_cv_f90_have_COMPLEXp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    COMPLEX*16 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_COMPLEXp16="yes"
else
  ompi_cv_f90_have_COMPLEXp16="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_COMPLEXp16" >&5
$as_echo "$ompi_cv_f90_have_COMPLEXp16" >&6; }

    if test "x$ompi_cv_f90_have_COMPLEXp16" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 COMPLEX*16" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX*16... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEXp16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   COMPLEX*16 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52143: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52150: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52160: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52167: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52188: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*16" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX*16 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52211: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52218: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEXp16=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX*16" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_COMPLEXp16" >&5
$as_echo "$ompi_cv_f90_sizeof_COMPLEXp16" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp16

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX16
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX16
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX16 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX16=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_COMPLEX16 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="COMPLEX*32"
    ofc_expected_size="32"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports COMPLEX*32" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX*32... " >&6; }
if test "${ompi_cv_f90_have_COMPLEXp32+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    COMPLEX*32 :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_COMPLEXp32="yes"
else
  ompi_cv_f90_have_COMPLEXp32="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_COMPLEXp32" >&5
$as_echo "$ompi_cv_f90_have_COMPLEXp32" >&6; }

    if test "x$ompi_cv_f90_have_COMPLEXp32" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 COMPLEX*32" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX*32... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEXp32+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   COMPLEX*32 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52482: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52489: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52499: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52506: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52527: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*32" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of COMPLEX*32 when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52550: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52557: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEXp32=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of COMPLEX*32" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_COMPLEXp32" >&5
$as_echo "$ompi_cv_f90_sizeof_COMPLEXp32" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp32

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX32
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX32
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX32 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX32=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_COMPLEX32 $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="DOUBLE COMPLEX"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_BINDINGS" = "1"; then

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    # Determine Fortran datatype size.
    # First arg is type, 2nd arg is config var to define

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports DOUBLE COMPLEX" >&5
$as_echo_n "checking if Fortran 90 compiler supports DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f90_have_DOUBLE_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat > conftest.$ac_ext <<_ACEOF
program main
    DOUBLE COMPLEX :: x
end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ompi_cv_f90_have_DOUBLE_COMPLEX="yes"
else
  ompi_cv_f90_have_DOUBLE_COMPLEX="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_have_DOUBLE_COMPLEX" >&5
$as_echo "$ompi_cv_f90_have_DOUBLE_COMPLEX" >&6; }

    if test "x$ompi_cv_f90_have_DOUBLE_COMPLEX" = x""yes; then :
  ofc_have_type=1
else
  ofc_have_type=0
fi

    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
$as_echo "skipped" >&6; }
    fi

    if test "$ofc_have_type" = "1"; then
        # What is the size of this type?

        # NOTE: Some Fortran compilers actually will return that a
        # type exists even if it doesn't support it -- the compiler
        # will automatically convert the unsupported type to a type
        # that it *does* support.  For example, if you try to use
        # INTEGER*16 and the compiler doesn't support it, it may well
        # automatically convert it to INTEGER*8 for you (!).  So we
        # have to check the actual size of the type once we determine
        # that the compiler doesn't error if we try to use it
        # (i.e,. the compiler *might* support that type).  If the size
        # doesn't match the expected size, then the compiler doesn't
        # really support it.

    # Use of m4_translit suggested by Eric Blake:
    # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran 90 DOUBLE COMPLEX" >&5
$as_echo_n "checking size of Fortran 90 DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f90_sizeof_DOUBLE_COMPLEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo size | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_size_fn=size__
        else
            ompi_ac_size_fn=size_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_size_fn=size_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_size_fn=size
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_size_fn=SIZE
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi

         # Fortran module
         cat > conftestf.f90 <<EOF
program fsize
   external size
   DOUBLE COMPLEX :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52821: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52828: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52838: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52845: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

         if test "$happy" = "no" ; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52866: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of DOUBLE COMPLEX" >&5
$as_echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&2;}
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             as_fn_error "Cannot continue" "$LINENO" 5
         fi

         if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine size of DOUBLE COMPLEX when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:52889: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:52896: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_DOUBLE_COMPLEX=`cat conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine size of DOUBLE COMPLEX" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&5
$as_echo "$ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_COMPLEX

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&2;}
                        as_fn_error "*** Cannot continue" "$LINENO" 5
                    else
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=D
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given
    # type, there are some places in the code where we have to have
    # *something*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_DOUBLE_COMPLEX $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_DOUBLE_COMPLEX=$ofc_type_size

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_F90_DOUBLE_COMPLEX $ofc_type_size
_ACEOF



    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof






    # get kind value for Fortran MPI_INTEGER_KIND (corresponding to
    # whatever is the same size as a F77 INTEGER -- for the
    # most-likely-will-never-occur case where F77 INTEGER is smaller than
    # an F90 INTEGER; see MPI-2 4.12.6.5
    if test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "2"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))... " >&6; }
if test "${ompi_cv_f90_int_kind_4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(4)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53042: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53049: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53066: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53089: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53096: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_4=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_4" >&5
$as_echo "$ompi_cv_f90_int_kind_4" >&6; }

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_4
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

    elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "4"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))... " >&6; }
if test "${ompi_cv_f90_int_kind_9+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(9)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53143: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53150: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53167: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53190: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53197: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_9=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_9" >&5
$as_echo "$ompi_cv_f90_int_kind_9" >&6; }

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_9
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

    elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "8"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))... " >&6; }
if test "${ompi_cv_f90_int_kind_18+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(18)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53244: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53251: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53268: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53291: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53298: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_18=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_18" >&5
$as_echo "$ompi_cv_f90_int_kind_18" >&6; }

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_18
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

    elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "16"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))... " >&6; }
if test "${ompi_cv_f90_int_kind_19+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(19)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53345: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53352: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53369: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53392: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53399: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_19=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_19" >&5
$as_echo "$ompi_cv_f90_int_kind_19" >&6; }

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_19
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

        as_fn_error "Cannot support Fortran MPI_INTEGER_KIND!" "$LINENO" 5
    fi


    # get kind value for Fortran MPI_ADDRESS_KIND (corresponding to
    # whatever is big enough to hold (void*))
    if test $ac_cv_sizeof_void_p = 2 ; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))... " >&6; }
if test "${ompi_cv_f90_int_kind_4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(4)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53452: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53459: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53476: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53499: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53506: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_4=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_4" >&5
$as_echo "$ompi_cv_f90_int_kind_4" >&6; }

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_4
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

    elif test $ac_cv_sizeof_void_p = 4 ; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))... " >&6; }
if test "${ompi_cv_f90_int_kind_9+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(9)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53553: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53560: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53577: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53600: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53607: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_9=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_9" >&5
$as_echo "$ompi_cv_f90_int_kind_9" >&6; }

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_9
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

    elif test $ac_cv_sizeof_void_p = 8 ; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))... " >&6; }
if test "${ompi_cv_f90_int_kind_18+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(18)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53654: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53661: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53678: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53701: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53708: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_18=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_18" >&5
$as_echo "$ompi_cv_f90_int_kind_18" >&6; }

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_18
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

    elif test $ac_cv_sizeof_void_p = 16 ; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))... " >&6; }
if test "${ompi_cv_f90_int_kind_19+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(19)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53755: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53762: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53779: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53802: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53809: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_19=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_19" >&5
$as_echo "$ompi_cv_f90_int_kind_19" >&6; }

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_19
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

    else
        as_fn_error "Cannot support Fortran MPI_ADDRESS_KIND!" "$LINENO" 5
    fi


    # get kind value for Fortran MPI_OFFSET_KIND (corresponding to INTEGER*8)



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))... " >&6; }
if test "${ompi_cv_f90_int_kind_18+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(18)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53861: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53868: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53885: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;}
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                as_fn_error "Cannot continue" "$LINENO" 5
            fi

            if test "$cross_compiling" = "yes"; then :
  as_fn_error "Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" "$LINENO" 5
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:53908: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:53915: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_18=`sed 's/  *//' conftestval`
else
    unset ompi_status
    as_fn_error "Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" "$LINENO" 5
fi
fi

        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_f90_int_kind_18" >&5
$as_echo "$ompi_cv_f90_int_kind_18" >&6; }

        OMPI_MPI_OFFSET_KIND=$ompi_cv_f90_int_kind_18
    else
        OMPI_MPI_OFFSET_KIND=0
    fi




# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


##################################
# Header files
##################################

ompi_show_title "Header file tests"

for ac_header in alloca.h aio.h arpa/inet.h dirent.h \
    dlfcn.h execinfo.h err.h fcntl.h grp.h inttypes.h libgen.h \
    libutil.h memory.h netdb.h netinet/in.h netinet/tcp.h \
    poll.h pthread.h pty.h pwd.h sched.h stdint.h stddef.h \
    stdlib.h string.h strings.h stropts.h sys/fcntl.h sys/ipc.h \
    sys/ioctl.h sys/mman.h sys/mount.h sys/param.h sys/queue.h \
    sys/resource.h sys/select.h sys/socket.h sys/sockio.h \
    stdarg.h sys/stat.h sys/statfs.h sys/statvfs.h sys/time.h sys/tree.h \
    sys/types.h sys/uio.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \
    time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
    ifaddrs.h sys/sysctl.h crt_externs.h regex.h \
    ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# Needed to work around Darwin requiring sys/socket.h for
# net/if.h
for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif

"
if test "x$ac_cv_header_net_if_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done


# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
# have both Portland and GNU installed; using pgcc will find GNU's
# <stdbool.h>, which all it does -- by standard -- is define "bool" to
# "_Bool" [see
# http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html],
# and Portland has no idea what to do with _Bool).

# So first figure out if we have <stdbool.h> (i.e., check the value of
# the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS,
# above).  If we do have it, then check to see if it actually works.
# Define OPAL_USE_STDBOOL_H as approrpaite.
for ac_header in stdbool.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbool_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STDBOOL_H 1
_ACEOF
 have_stdbool_h=1
else
  have_stdbool_h=0
fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <stdbool.h> works" >&5
$as_echo_n "checking if <stdbool.h> works... " >&6; }
if test "$have_stdbool_h" = "1"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
#if HAVE_STDBOOL_H
#include <stdbool.h>
#endif
int
main ()
{
bool bar, foo = true; bar = foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  OPAL_USE_STDBOOL_H=1 MSG=yes
else
  OPAL_USE_STDBOOL_H=0 MSG=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
    OPAL_USE_STDBOOL_H=0
    MSG="no (don't have <stdbool.h>)"
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_USE_STDBOOL_H $OPAL_USE_STDBOOL_H
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
$as_echo "$MSG" >&6; }

# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


##################################
# Types
##################################

ompi_show_title "Type tests"

# Size of pid_t
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
$as_echo_n "checking size of pid_t... " >&6; }
if test "${ac_cv_sizeof_pid_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_pid_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (pid_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_pid_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
$as_echo "$ac_cv_sizeof_pid_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
_ACEOF



ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_socklen_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN6 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
_ACEOF


fi


ac_fn_c_check_decl "$LINENO" "AF_UNSPEC" "ac_cv_have_decl_AF_UNSPEC" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_have_decl_AF_UNSPEC" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_AF_UNSPEC $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "PF_UNSPEC" "ac_cv_have_decl_PF_UNSPEC" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_have_decl_PF_UNSPEC" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PF_UNSPEC $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_have_decl_AF_INET6" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_AF_INET6 $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "PF_INET6" "ac_cv_have_decl_PF_INET6" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_have_decl_PF_INET6" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PF_INET6 $ac_have_decl
_ACEOF


# SA_RESTART in signal.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SA_RESTART defined in signal.h" >&5
$as_echo_n "checking if SA_RESTART defined in signal.h... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <signal.h>
#ifdef SA_RESTART
    yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  MSG=yes VALUE=1
else
  MSG=no VALUE=0
fi
rm -f conftest*


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_SA_RESTART $VALUE
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
$as_echo "$MSG" >&6; }

ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
#include <sys/types.h>
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
"
if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
_ACEOF


fi


ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
#include <sys/types.h>
#include <dirent.h>
"
if test "x$ac_cv_member_struct_dirent_d_type" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_DIRENT_D_TYPE 1
_ACEOF


fi


ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
"
if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIGINFO_T_SI_FD 1
_ACEOF


fi

ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
"
if test "x$ac_cv_member_siginfo_t_si_band" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIGINFO_T_SI_BAND 1
_ACEOF


fi



# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


##################################
# Libraries
##################################

ompi_show_title "Library and Function tests"

# Darwin doesn't need -lutil, as it's something other than this -lutil.

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lutil for openpty" >&5
$as_echo_n "checking if we need -lutil for openpty... " >&6; }
if test "${ompi_cv_func_lib_openpty_util+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define openpty innocuous_openpty

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char openpty (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef openpty

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openpty ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_openpty || defined __stub___openpty
choke me
#endif

int
main ()
{
return openpty ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_openpty_util="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lutil"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define openpty innocuous_openpty

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char openpty (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef openpty

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openpty ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_openpty || defined __stub___openpty
choke me
#endif

int
main ()
{
return openpty ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_openpty_util="yes"
else
  ompi_cv_func_lib_openpty_util="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_openpty_util" >&5
$as_echo "$ompi_cv_func_lib_openpty_util" >&6; }
    if test "x$ompi_cv_func_lib_openpty_util" = x""yes; then :
  LIBS="$LIBS -lutil"
fi

    # see if we actually have openpty.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lutil if we decided we needed it above
    for ac_func in openpty
do :
  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
if test "x$ac_cv_func_openpty" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_OPENPTY 1
_ACEOF

fi
done



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_nsl_gethostbyname=yes
else
  ac_cv_lib_nsl_gethostbyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
_ACEOF

  LIBS="-lnsl $LIBS"

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
$as_echo_n "checking for socket in -lsocket... " >&6; }
if test "${ac_cv_lib_socket_socket+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
return socket ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_socket=yes
else
  ac_cv_lib_socket_socket=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
$as_echo "$ac_cv_lib_socket_socket" >&6; }
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

fi


# Solaris has sched_yield in -lrt, usually in libc

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lrt for sched_yield" >&5
$as_echo_n "checking if we need -lrt for sched_yield... " >&6; }
if test "${ompi_cv_func_lib_sched_yield_rt+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_yield innocuous_sched_yield

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_yield

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_sched_yield || defined __stub___sched_yield
choke me
#endif

int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_sched_yield_rt="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lrt"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_yield innocuous_sched_yield

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_yield

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_sched_yield || defined __stub___sched_yield
choke me
#endif

int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_sched_yield_rt="yes"
else
  ompi_cv_func_lib_sched_yield_rt="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_sched_yield_rt" >&5
$as_echo "$ompi_cv_func_lib_sched_yield_rt" >&6; }
    if test "x$ompi_cv_func_lib_sched_yield_rt" = x""yes; then :
  LIBS="$LIBS -lrt"
fi

    # see if we actually have sched_yield.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lrt if we decided we needed it above
    for ac_func in sched_yield
do :
  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
if test "x$ac_cv_func_sched_yield" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_YIELD 1
_ACEOF

fi
done



# IRIX has dirname in -lgen, usually in libc

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lgen for dirname" >&5
$as_echo_n "checking if we need -lgen for dirname... " >&6; }
if test "${ompi_cv_func_lib_dirname_gen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dirname innocuous_dirname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dirname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dirname

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dirname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_dirname || defined __stub___dirname
choke me
#endif

int
main ()
{
return dirname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_dirname_gen="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lgen"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dirname innocuous_dirname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dirname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dirname

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dirname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_dirname || defined __stub___dirname
choke me
#endif

int
main ()
{
return dirname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_dirname_gen="yes"
else
  ompi_cv_func_lib_dirname_gen="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_dirname_gen" >&5
$as_echo "$ompi_cv_func_lib_dirname_gen" >&6; }
    if test "x$ompi_cv_func_lib_dirname_gen" = x""yes; then :
  LIBS="$LIBS -lgen"
fi

    # see if we actually have dirname.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lgen if we decided we needed it above
    for ac_func in dirname
do :
  ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
if test "x$ac_cv_func_dirname" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DIRNAME 1
_ACEOF

fi
done



# Darwin doesn't need -lm, as it's a symlink to libSystem.dylib

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lm for ceil" >&5
$as_echo_n "checking if we need -lm for ceil... " >&6; }
if test "${ompi_cv_func_lib_ceil_m+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define ceil to an innocuous variant, in case <limits.h> declares ceil.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ceil innocuous_ceil

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ceil (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ceil

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ceil ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_ceil || defined __stub___ceil
choke me
#endif

int
main ()
{
return ceil ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_ceil_m="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lm"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define ceil to an innocuous variant, in case <limits.h> declares ceil.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ceil innocuous_ceil

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ceil (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ceil

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ceil ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_ceil || defined __stub___ceil
choke me
#endif

int
main ()
{
return ceil ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_ceil_m="yes"
else
  ompi_cv_func_lib_ceil_m="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_ceil_m" >&5
$as_echo "$ompi_cv_func_lib_ceil_m" >&6; }
    if test "x$ompi_cv_func_lib_ceil_m" = x""yes; then :
  LIBS="$LIBS -lm"
fi

    # see if we actually have ceil.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lm if we decided we needed it above
    for ac_func in ceil
do :
  ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
if test "x$ac_cv_func_ceil" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CEIL 1
_ACEOF

fi
done



for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap tcgetpgrp posix_memalign strsignal sysconf syslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s _strdup usleep mkfifo
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# On some hosts, htonl is a define, so the AC_CHECK_FUNC will get
# confused.  On others, it's in the standard library, but stubbed with
# the magic glibc foo as not implemented.  and on other systems, it's
# just not there.  This covers all cases.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl define" >&5
$as_echo_n "checking for htonl define... " >&6; }
if test "${ompi_cv_htonl_define+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

#ifndef ntohl
#error "ntohl not defined"
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ompi_cv_htonl_define=yes
else
  ompi_cv_htonl_define=no
fi
rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_htonl_define" >&5
$as_echo "$ompi_cv_htonl_define" >&6; }
ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
if test "x$ac_cv_func_htonl" = x""yes; then :
  ompi_have_htonl=yes
else
  ompi_have_htonl=no
fi

if test "$ompi_cv_htonl_define" = "yes" -o "$ompi_have_htonl" = "yes"; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UNIX_BYTESWAP 1
_ACEOF

fi

#
# Make sure we can copy va_lists (need check declared, not linkable)
#

ac_fn_c_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" "#include <stdarg.h>
"
if test "x$ac_cv_have_decl_va_copy" = x""yes; then :
  OPAL_HAVE_VA_COPY=1
else
  OPAL_HAVE_VA_COPY=0
fi


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_VA_COPY $OPAL_HAVE_VA_COPY
_ACEOF


ac_fn_c_check_decl "$LINENO" "__va_copy" "ac_cv_have_decl___va_copy" "#include <stdarg.h>
"
if test "x$ac_cv_have_decl___va_copy" = x""yes; then :
  OPAL_HAVE_UNDERSCORE_VA_COPY=1
else
  OPAL_HAVE_UNDERSCORE_VA_COPY=0
fi


cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_UNDERSCORE_VA_COPY $OPAL_HAVE_UNDERSCORE_VA_COPY
_ACEOF


ac_fn_c_check_decl "$LINENO" "__func__" "ac_cv_have_decl___func__" "$ac_includes_default"
if test "x$ac_cv_have_decl___func__" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___FUNC__ $ac_have_decl
_ACEOF


# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


##################################
# System-specific tests
##################################

ompi_show_title "System-specific tests"

#
# Test to determine type of MPI_Offset. This is searched in the following order
# int64_t, long long, long, int. If none of these are 8 bytes, then we should
# search for int32_t, long long, long, int.
#
MPI_OFFSET_TYPE="not found"
MPI_OFFSET_DATATYPE="not found"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for type of MPI_Offset" >&5
$as_echo_n "checking checking for type of MPI_Offset... " >&6; }
if test $ac_cv_type_long_long = yes -a $ac_cv_sizeof_long_long = 8; then
    MPI_OFFSET_TYPE="long long"
    MPI_OFFSET_DATATYPE=MPI_LONG_LONG
    MPI_OFFSET_SIZE=8
elif test $ac_cv_type_long = yes -a $ac_cv_sizeof_long = 8; then
    MPI_OFFSET_TYPE="long"
    MPI_OFFSET_DATATYPE=MPI_LONG
    MPI_OFFSET_SIZE=8
elif test $ac_cv_sizeof_int = 8; then
    MPI_OFFSET_TYPE="int"
    MPI_OFFSET_DATATYPE=MPI_INT
    MPI_OFFSET_SIZE=8
elif test $ac_cv_type_long_long = yes -a $ac_cv_sizeof_long_long = 4; then
    MPI_OFFSET_TYPE="long long"
    MPI_OFFSET_DATATYPE=MPI_LONG_LONG
    MPI_OFFSET_SIZE=4
elif test $ac_cv_type_long = yes -a $ac_cv_sizeof_long = 4; then
    MPI_OFFSET_TYPE="long"
    MPI_OFFSET_DATATYPE=MPI_LONG
    MPI_OFFSET_SIZE=4
elif test $ac_cv_sizeof_int = 4; then
    MPI_OFFSET_TYPE="int"
    MPI_OFFSET_DATATYPE=MPI_INT
    MPI_OFFSET_SIZE=4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_OFFSET_TYPE" >&5
$as_echo "$MPI_OFFSET_TYPE" >&6; }
if test "$MPI_OFFSET_TYPE" = "not found"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find the right definition for MPI_Offset" >&5
$as_echo "$as_me: WARNING: *** Unable to find the right definition for MPI_Offset" >&2;}
    as_fn_error "Cannot continue" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for an MPI datatype for MPI_Offset" >&5
$as_echo_n "checking checking for an MPI datatype for MPI_Offset... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_OFFSET_DATATYPE" >&5
$as_echo "$MPI_OFFSET_DATATYPE" >&6; }
# this should never happens
if test "$MPI_OFFSET_DATATYPE" = "not found"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&5
$as_echo "$as_me: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&2;}
    as_fn_error "Cannot continue" "$LINENO" 5
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_MPI_OFFSET_TYPE $MPI_OFFSET_TYPE
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_MPI_OFFSET_SIZE $MPI_OFFSET_SIZE
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_OFFSET_DATATYPE $MPI_OFFSET_DATATYPE
_ACEOF


#
# Check for MPI_Aint type.  Yes, there are platforms where
# sizeof(void*) != sizeof(long) (64 bit Windows, apparently).
#
if test $ac_cv_type_ptrdiff_t = yes ; then
    opal_ptrdiff_t="ptrdiff_t"
elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then
    opal_ptrdiff_t="long"
elif test $ac_cv_type_long_long = yes -a $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then
    opal_ptrdiff_t="long long"
else
    as_fn_error "Could not find datatype to emulate ptrdiff_t.  Cannot continue" "$LINENO" 5
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_PTRDIFF_TYPE $opal_ptrdiff_t
_ACEOF


# Do we have _SC_NPROCESSORS_ONLN? (only going to pass if we also have
# <unistd.h> and sysconf(), which is ok) OS X 10.4 has <unistd.h> and
# sysconf(), but does not have _SC_NPROCESSORS_ONLN.  Doh!

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROCESSORS_ONLN" >&5
$as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
if test "${ompi_cv_have__SC_NPROCESSORS_ONLN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
#include <unistd.h>

int
main ()
{
int i = _SC_NPROCESSORS_ONLN;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_have__SC_NPROCESSORS_ONLN="yes"
else
  ompi_cv_have__SC_NPROCESSORS_ONLN="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_have__SC_NPROCESSORS_ONLN" >&5
$as_echo "$ompi_cv_have__SC_NPROCESSORS_ONLN" >&6; }
if test "$ompi_cv_have__SC_NPROCESSORS_ONLN" = "yes"; then :
  result=1
else
  result=0
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE__SC_NPROCESSORS_ONLN $result
_ACEOF


# all: endian

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${ac_cv_c_bigendian+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac




# Check whether --with-broken-qsort was given.
if test "${with_broken_qsort+set}" = set; then :
  withval=$with_broken_qsort;
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken qsort" >&5
$as_echo_n "checking for broken qsort... " >&6; }

  if test "$with_broken_qsort" = "yes"; then
    result="yes"
    define_result=1
  else
    result="no"
    define_result=0
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
$as_echo "$result" >&6; }

cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_BROKEN_QSORT $define_result
_ACEOF



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if word-sized integers must be word-size aligned" >&5
$as_echo_n "checking if word-sized integers must be word-size aligned... " >&6; }
if test "${ompi_cv_c_word_size_align+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     if test "$cross_compiling" = yes; then :
  ompi_cv_c_word_size_align=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
int
main ()
{
    long data[2] = {0, 0};
    long *lp;
    int *ip;
    ip = (int*) data;
    ip++;
    lp = (long*) ip;
    return lp[0];
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ompi_cv_c_word_size_align=no
else
  ompi_cv_c_word_size_align=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_word_size_align" >&5
$as_echo "$ompi_cv_c_word_size_align" >&6; }
if test $ompi_cv_c_word_size_align = yes; then :
  results=1
else
  results=0
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGN_WORD_SIZE_INTEGERS $results
_ACEOF


# all: SYSV semaphores
# all: SYSV shared memory
# all: size of FD_SET
# all: sizeof struct stat members
# all: type of getsockopt optlen
# all: type of recvfrom optlen

#
# Check out what thread support we have
#

#
# Arguments: none
#
# Dependencies: None
#
# Modifies:
#  none - see called tests
#
# configure threads
#

# create templates



#
# Check for thread types - add your type here...
#



ompi_pthread_c_success=0
ompi_pthread_f77_success=0
ompi_pthread_cxx_success=0

orig_CFLAGS="$CFLAGS"
orig_FFLAGS="$FFLAGS"
orig_CXXFLAGS="$CXXFLAGS"
orig_CPPFLAGS="$CPPFLAGS"
orig_CXXCPPFLAGS="$CXXCPPFLAGS"
orig_LDFLAGS="$LDFLAGS"
orig_LIBS="$LIBS"

PTRHEAD_CFLAGS=
PTHREAD_FFLAGS=
PTHREAD_CXXFLAGS=
PTHREAD_CPPFLAGS=
PTHREAD_CXXCPPFLAGS=
PTHREAD_LDFLAGS=
PTHREAD_LIBS=

# Try with the basics, mam.

# BEGIN: OMPI_INTL_POSIX_THREADS_PLAIN
#
# Check if can compile without any special flags
# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in
# case.  Some systems (OS X, for example) generally don't need
# the defines, but then will on one system header here or there
# why take chances?
#

# Only run C++ and Fortran if those compilers already configured

#
# C compiler
#
if test "$ompi_pthread_c_success" = "0"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work as is" >&5
$as_echo_n "checking if C compiler and POSIX threads work as is... " >&6; }
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Solaris, not checked" >&5
$as_echo "no - Solaris, not checked" >&6; }
        run_this_test=0
      ;;
      *-aix* | *-freebsd*)
        if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CPPFLAGS="-D_THREAD_SAFE"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
        run_this_test=1
      ;;
      *)
        if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then
          PTHREAD_CPPFLAGS="-D_REENTRANT"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
        run_this_test=1
      ;;
    esac
  fi

  if test "$run_this_test" = "1" ; then
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_pthread_c_success=1
else
  ompi_pthread_c_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_c_success" = "1"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      PTHREAD_CPPFLAGS=
      CPPFLAGS="$orig_CPPFLAGS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work as is" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work as is... " >&6; }
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Solaris, not checked" >&5
$as_echo "no - Solaris, not checked" >&6; }
        run_this_test=0
      ;;
      *-aix* | *-freebsd*)
        if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
        run_this_test=1
      ;;
      *)
        if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then
          PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
        run_this_test=1
      ;;
    esac
  fi

  if test "$run_this_test" = "1" ; then
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_pthread_cxx_success=1
else
  ompi_pthread_cxx_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_cxx_success" = "1"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      PTHREAD_CXXCPPFLAGS=
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if F77 compiler and POSIX threads work as is" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work as is... " >&6; }
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Solaris, not checked" >&5
$as_echo "no - Solaris, not checked" >&6; }
        run_this_test=0
      ;;
      *)
        run_this_test=1
      ;;
    esac
  fi

  if test "$run_this_test" = "1" ; then
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


# Fortran module
cat > conftestf.f <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:56144: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56151: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:56161: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56168: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56191: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56205: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56219: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
rm -rf conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_f77_success" = "1"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi
fi


# End: OMPI_INTL_POSIX_THREADS_PLAIN


# Try the super-special compiler flags.

# Begin: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS
#
# If above didn't work, try some super-special compiler flags
# that get evaluated to the "right" things.
#
# -Kthread:
# -kthread:  FreeBSD kernel threads
# -pthread:  Modern GCC (most all platforms)
# -pthreads: GCC on solaris
# -mthreads:
# -mt:       Solaris native compilers / HP-UX aCC
#
# Put -mt before -mthreads because HP-UX aCC will properly compile
# with -mthreads (reading as -mt), but emit a warning about unknown
# flags hreads.  Stupid compilers.

case "${host_cpu}-${host_os}" in
  *solaris*)
    pflags="-pthread -pthreads -mt"
  ;;
  *)
    pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads"
  ;;
esac

# Only run C++ and Fortran if those compilers already configured

#
# C compiler
#
if test "$ompi_pthread_c_success" = "0"; then
  for pf in $pflags; do
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pf" >&5
$as_echo_n "checking if C compiler and POSIX threads work with $pf... " >&6; }
    CFLAGS="$orig_CFLAGS $pf"
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_pthread_c_success=1
else
  ompi_pthread_c_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_c_success" = "1"; then
      PTHREAD_CFLAGS="$pf"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      break
    else
      PTHREAD_CFLAGS=
      CFLAGS="$orig_CFLAGS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  done
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  for pf in $pflags; do
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work with $pf" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work with $pf... " >&6; }
    CXXFLAGS="$orig_CXXFLAGS $pf"
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_pthread_cxx_success=1
else
  ompi_pthread_cxx_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_cxx_success" = "1"; then
      PTHREAD_CXXFLAGS="$pf"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      break
    else
      PTHREAD_CXXFLAGS=
      CXXFLAGS="$orig_CXXFLAGS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  done
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  for pf in $pflags; do
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if F77 compiler and POSIX threads work with $pf" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work with $pf... " >&6; }
    FFLAGS="$orig_FFLAGS $pf"
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


# Fortran module
cat > conftestf.f <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:56505: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56512: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:56522: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56529: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56552: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56566: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56580: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
rm -rf conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_f77_success" = "1"; then
      PTHREAD_FFLAGS="$pf"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      break
    else
      PTHREAD_FFLAGS=
      FFLAGS="$orig_FFLAGS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  done
fi


# End: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS


# Try the normal linking methods (that's no fun)

# Begin: OMPI_INTL_POSIX_THREADS_LIBS
#
# if we can't find a super-special compiler flags, try some libraries.
# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case.  Some
# systems (OS X, for example) generally don't need the defines, but
# then will on one system header here or there why take chances?
#
# libpthreads: AIX - must check before libpthread
# liblthread:  LinuxThreads on FreeBSD
# libpthread:  The usual place (like we can define usual!)
plibs="-lpthreads -llthread -lpthread"

# Only run C++ and Fortran if those compilers already configured

#
# C compiler
#
if test "$ompi_pthread_c_success" = "0"; then
  for pl in $plibs; do
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pl" >&5
$as_echo_n "checking if C compiler and POSIX threads work with $pl... " >&6; }
    case "${host_cpu}-${host-_os}" in
      *-aix* | *-freebsd*)
        if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CPPFLAGS="-D_THREAD_SAFE"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
      ;;
      *)
        if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then
          PTHREAD_CPPFLAGS="-D_REENTRANT"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
      ;;
    esac
    LIBS="$orig_LIBS $pl"
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_pthread_c_success=1
else
  ompi_pthread_c_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_c_success" = "1"; then
      PTHREAD_LIBS="$pl"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      PTHREAD_CPPFLAGS=
      CPPFLAGS="$orig_CPPFLAGS"
      LIBS="$orig_LIBS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  done
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... " >&6; }
    case "${host_cpu}-${host-_os}" in
      *-aix* | *-freebsd*)
        if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
      ;;
      *)
        if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then
          PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
      ;;
    esac
    LIBS="$orig_LIBS $PTHREAD_LIBS"
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_pthread_cxx_success=1
else
  ompi_pthread_cxx_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_cxx_success" = "1"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      LIBS="$orig_LIBS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      as_fn_error "Can not find working threads configuration.  aborting" "$LINENO" 5
    fi
  else
    for pl in $plibs; do
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work with $pl" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work with $pl... " >&6; }
      case "${host_cpu}-${host-_os}" in
        *-aix* | *-freebsd*)
          if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then
            PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
            CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
          fi
        ;;
        *)
          if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then
            PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
            CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
          fi
        ;;
      esac
      LIBS="$orig_LIBS $pl"
      ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_pthread_cxx_success=1
else
  ompi_pthread_cxx_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

      ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

      if test "$ompi_pthread_cxx_success" = "1"; then
	PTHREAD_LIBS="$pl"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      else
        PTHREAD_CXXCPPFLAGS=
        CXXCPPFLAGS="$orig_CXXCPPFLAGS"
        LIBS="$orig_LIBS"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    done
  fi
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS... " >&6; }
    LIBS="$orig_LIBS $PTHREAD_LIBS"
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


# Fortran module
cat > conftestf.f <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:56959: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56966: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:56976: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:56983: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57006: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57020: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57034: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
rm -rf conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_pthread_f77_success" = "1"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      LIBS="$orig_LIBS"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      as_fn_error "Can not find working threads configuration.  aborting" "$LINENO" 5
    fi
  else
    for pl in $plibs; do
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if F77 compiler and POSIX threads work with $pl" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work with $pl... " >&6; }
      LIBS="$orig_LIBS $pl"
      ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    else
        as_fn_error "unknown naming convention: $ompi_cv_f77_external_symbol" "$LINENO" 5
    fi


# Fortran module
cat > conftestf.f <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:57147: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57154: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:57164: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57171: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57194: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57208: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57222: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
rm -rf conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

      ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

      if test "$ompi_pthread_f77_success" = "1"; then
	PTHREAD_LIBS="$pl"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        break
      else
        LIBS="$orig_LIBS"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    done
  fi
fi


# End: OMPI_INTL_POSIX_THREADS_LIBS



#
# check to see if we can set error checking mutexes
#

# LinuxThreads
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  result="yes" defval=1
else
  result="no" defval=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
$as_echo "$result" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval
_ACEOF


# Mac OS X
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK" >&5
$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  result="yes" defval=1
else
  result="no" defval=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
$as_echo "$result" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval
_ACEOF


CFLAGS="$orig_CFLAGS"
FFLAGS="$orig_FFLAGS"
CXXFLAGS="$orig_CXXFLAGS"
CPPFLAGS="$orig_CPPFLAGS"
CXXCPPFLAGS="$orig_CXXCPPFLAGS"
LDFLAGS="$orig_LDFLAGS"
LIBS="$orig_LIBS"

if test "$OMPI_WANT_F77_BINDINGS" != "1"; then
  ompi_pthread_f77_success=1
fi

if test "$ompi_pthread_c_success" = "1" -a \
        "$ompi_pthread_cxx_success" = "1" -a \
       "$ompi_pthread_f77_success" = "1"; then
  internal_useless=1
  HAVE_POSIX_THREADS=1
else
  internal_useless=1
  HAVE_POSIX_THREADS=0
fi

unset ompi_pthread_c_success ompi_pthread_f77_success ompi_pthread_cxx_success
unset internal_useless

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX threads package" >&5
$as_echo_n "checking for working POSIX threads package... " >&6; }
if test "$HAVE_POSIX_THREADS" = "1" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
export HAVE_POSIX_THREADS


ompi_sthread_c_success=0
ompi_sthread_f77_success=0
ompi_sthread_cxx_success=0

orig_CFLAGS="$CFLAGS"
orig_FFLAGS="$FFLAGS"
orig_CXXFLAGS="$CXXFLAGS"
orig_CPPFLAGS="$CPPFLAGS"
orig_CXXCPPFLAGS="$CXXCPPFLAGS"
orig_LDFLAGS="$LDFLAGS"
orig_LIBS="$LIBS"

STHREAD_CFLAGS=
STHREAD_FFLAGS=
STHREAD_CXXFLAGS=
STHREAD_CPPFLAGS=
STHREAD_CXXCPPFLAGS=
STHREAD_LDFLAGS=
STHREAD_LIBS=

# Only run C++ and Fortran if those compilers already configured

if test "$BASECC" = "cc"; then
    STHREAD_CFLAGS="-mt"
    style="Workshop/Forte"
else
    STHREAD_CPPFLAGS="-D_REENTRANT"
    STHREAD_LIBS="-lthread"
    style="-lthread"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and Solaris threads work" >&5
$as_echo_n "checking if C compiler and Solaris threads work... " >&6; }
CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig"
CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig"
LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
LIBS="$STHREAD_LIBS $LIBS_orig"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <thread.h>
int
main ()
{
thread_t th; thr_join(th, 0, 0);
                 thr_create(0,0,0,0,0,0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_sthread_c_success=1
else
  ompi_sthread_c_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_SOLARIS_TRY_LINK

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test "$ompi_sthread_c_success" = "1"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $style" >&5
$as_echo "yes - $style" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



if test "$BASECXX" = "CC"; then
    STHREAD_CXXFLAGS="-mt"
    style="Workshop/Forte"
elif test "$BASECXX" = "KCC"; then
    STHREAD_CXXFLAGS="--backend -mt"
    style="KCC"
else
    STHREAD_CXXCPPFLAGS="-D_REENTRANT"
    STHREAD_LIBS="-lthread"
    style="-lthread"
fi
CXXFLAGS="$STHREAD_CXXFLAGS $CXXFLAGS_orig"
CXXCPPFLAGS="$STHREAD_CXXPPFLAGS $CXXPPFLAGS_orig"
LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
LIBS="$STHREAD_LIBS $LIBS_orig"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and Solaris threads work" >&5
$as_echo_n "checking if C++ compiler and Solaris threads work... " >&6; }
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <thread.h>
int
main ()
{
thread_t th; thr_join(th, 0, 0);
                 thr_create(0,0,0,0,0,0);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ompi_sthread_cxx_success=1
else
  ompi_sthread_cxx_success=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_SOLARIS_TRY_LINK

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test "$ompi_sthread_cxx_success" = "1"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $style" >&5
$as_echo "yes - $style" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
    if test "$BASEFC" = "f77"; then
        STHREAD_FFLAGS="-mt"
        style="Workshop/Forte"
    else
        STHREAD_LIBS="-lthread"
        style="-lthread"
    fi
    FFLAGS="$STHREAD_FFLAGS $FFLAGS_orig"
    CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig"
    CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig"
    LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
    LIBS="$STHREAD_LIBS $LIBS_orig"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if F77 compiler and Solaris threads work" >&5
$as_echo_n "checking if F77 compiler and Solaris threads work... " >&6; }
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

# Fortran module
cat > conftestf.f <<EOF
      program fpthread
      INTEGER i
      i = 1
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <thread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void ompi_pthread()
{
  thread_t th;
  thr_join(th, 0, 0);
  thr_create(0,0,0,0,0,0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:57579: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57586: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:57596: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57603: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_sthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57626: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57640: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:57654: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_sthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
rm -rf conftest*
# END: OMPI_INTL_SOLARIS_TRY_LINK_F77

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    if test "$ompi_sthread_f77_success" = "1"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $style" >&5
$as_echo "yes - $style" >&6; }
     else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
     fi
else
  ompi_sthread_f77_success=1
fi


CFLAGS="$orig_CFLAGS"
FFLAGS="$orig_FFLAGS"
CXXFLAGS="$orig_CXXFLAGS"
CPPFLAGS="$orig_CPPFLAGS"
CXXCPPFLAGS="$orig_CXXCPPFLAGS"
LDFLAGS="$orig_LDFLAGS"
LIBS="$orig_LIBS"

if test "$ompi_sthread_c_success" = "1" -a \
        "$ompi_sthread_cxx_success" = "1" -a \
       "$ompi_sthread_f77_success" = "1"; then
  internal_useless=1
  HAVE_SOLARIS_THREADS=1
else
  internal_useless=1
  HAVE_SOLARIS_THREADS=0
fi

unset ompi_sthread_c_success ompi_sthread_f77_success ompi_sthread_cxx_success
unset internal_useless

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Solaris threads package" >&5
$as_echo_n "checking for working Solaris threads package... " >&6; }
if test "$HAVE_SOLARIS_THREADS" = "1" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
export HAVE_SOLARIS_THREADS

#
# Ask what threading we want (allow solaris / posix right now)
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of thread support" >&5
$as_echo_n "checking for type of thread support... " >&6; }

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads; THREAD_TYPE=$withval
fi


if test "$THREAD_TYPE" = "solaris"; then

    if test "$HAVE_SOLARIS_THREADS" = "0"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&5
$as_echo "$as_me: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** available on your system \"" >&5
$as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
	as_fn_error "\"*** Can not continue\"" "$LINENO" 5
    fi
elif test "$THREAD_TYPE" = "posix"; then

    if test "$HAVE_POSIX_THREADS" = "0"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&5
$as_echo "$as_me: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** available on your system \"" >&5
$as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
	as_fn_error "\"*** Can not continue\"" "$LINENO" 5
    fi
elif test "$THREAD_TYPE" = "no"; then
    THREAD_TYPE="none"
elif test -z "$THREAD_TYPE" -o "$THREAD_TYPE" = "yes"; then

    # Actual logic here - properly set THREAD_TYPE - we go for system
    # optimized where ever possible
    case "$host" in
	*solaris*)
	    if test "$HAVE_SOLARIS_THREADS" = "1"; then
		THREAD_TYPE="solaris"
	    elif test "$HAVE_POSIX_THREADS" = "1"; then
		THREAD_TYPE="posix"
	    else
		THEAD_TYPE="none found"
	    fi
	    ;;
	*)
	    if test "$HAVE_POSIX_THREADS" = "1"; then
		THREAD_TYPE="posix"
	    else
		THREAD_TYPE="none found"
	    fi
	    ;;
    esac
else

    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** You have specified a thread type that I do not\"" >&5
$as_echo "$as_me: WARNING: \"*** You have specified a thread type that I do not\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** understand.  Valid options are posix and solaris\"" >&5
$as_echo "$as_me: WARNING: \"*** understand.  Valid options are posix and solaris\"" >&2;}
    as_fn_error "\"*** Can not continue.\"" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREAD_TYPE" >&5
$as_echo "$THREAD_TYPE" >&6; }


#
# Ok, now run the configuration for that thread package.
#
# Blah - this should be made better, but I don't know how...
#


if test "$THREAD_TYPE" = "solaris"; then
    $as_echo "#define OPAL_HAVE_SOLARIS_THREADS 1" >>confdefs.h

    $as_echo "#define OPAL_HAVE_POSIX_THREADS 0" >>confdefs.h

    $as_echo "#define OPAL_THREADS_HAVE_DIFFERENT_PIDS 0" >>confdefs.h


    THREAD_CFLAGS="$STHREAD_CFLAGS"
    THREAD_FFLAGS="$STHREAD_FFLAGS"
    THREAD_CXXFLAGS="$STHREAD_CXXFLAGS"
    THREAD_CPPFLAGS="$STHREAD_CPPFLAGS"
    THREAD_CXXCPPFLAGS="$STHREAD_CXXCPPFLAGS"
    THREAD_LDFLAGS="$STHREAD_LDFLAGS"
    THREAD_LIBS="$STHREAD_LIBS"
elif test "$THREAD_TYPE" = "posix"; then
    $as_echo "#define OPAL_HAVE_SOLARIS_THREADS 0" >>confdefs.h

    $as_echo "#define OPAL_HAVE_POSIX_THREADS 1" >>confdefs.h


    THREAD_CFLAGS="$PTHREAD_CFLAGS"
    THREAD_FFLAGS="$PTHREAD_FFLAGS"
    THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS"
    THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS"
    THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS"
    THREAD_LDFLAGS="$PTHREAD_LDFLAGS"
    THREAD_LIBS="$PTHREAD_LIBS"


#
# Arguments: none
#
# Dependencies: None
#
# Sets:
#  OPAL_THREADS_HAVE_DIFFERENT_PIDS (variable)
#
# Test for Linux-like threads in the system. We will need to handle things like
# getpid() differently in the case of a Linux-like threads model.
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads have different pids (pthreads on linux)" >&5
$as_echo_n "checking if threads have different pids (pthreads on linux)... " >&6; }
CFLAGS_save="$CFLAGS"
CFLAGS="$CFLAGS $THREAD_CFLAGS"
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
LDFLAGS_save="$LDFLAGS"
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
LIBS_save="$LIBS"
LIBS="$LIBS $THREAD_LIBS"
if test "$cross_compiling" = yes; then :
  case $host in
     *-linux*)
         MSG="cross compiling - assuming yes"
         OPAL_THREADS_HAVE_DIFFERENT_PIDS=1
         ;;
     *)
         MSG="cross compiling - assuming no"
         OPAL_THREADS_HAVE_DIFFERENT_PIDS=0
         ;;
 esac

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
void *checkpid(void *arg);
int main() {
  pthread_t thr;
  int pid, *retval;
  pid = getpid();
  pthread_create(&thr, NULL, checkpid, &pid);
  pthread_join(thr, (void **) &retval);
  exit(*retval);
}
static int ret;
void *checkpid(void *arg) {
   int ppid = *((int *) arg);
   if (ppid == getpid())
     ret = 0;
   else
     ret = 1;
   pthread_exit((void *) &ret);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  MSG=no OPAL_THREADS_HAVE_DIFFERENT_PIDS=0
else
  MSG=yes OPAL_THREADS_HAVE_DIFFERENT_PIDS=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


CFLAGS="$CFLAGS_save"
CPPFLAGS="$CPPFLAGS_save"
LDFLAGS="$LDFLAGS_save"
LIBS="$LIBS_save"

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
$as_echo "$MSG" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_THREADS_HAVE_DIFFERENT_PIDS $OPAL_THREADS_HAVE_DIFFERENT_PIDS
_ACEOF


#
# if pthreads is not available, then the system does not have an insane threads
# model
#
unset MSG
else
    $as_echo "#define OPAL_HAVE_SOLARIS_THREADS 0" >>confdefs.h

    $as_echo "#define OPAL_HAVE_POSIX_THREADS 0" >>confdefs.h

    $as_echo "#define OPAL_THREADS_HAVE_DIFFERENT_PIDS 0" >>confdefs.h


    TRHEAD_CFLAGS=
    THREAD_FFLAGS=
    THREAD_CXXFLAGS=
    THREAD_CPPFLAGS=
    THREAD_CXXCPPFLAGS=
    THREAD_LDFLAGS=
    THREAD_LIBS=
    if test "$THREAD_TYPE" != "none" ; then
        cat <<EOF

************************************************************************

Open MPI was unable to find threading support on your system.  The
OMPI development team is considering requiring threading support for
proper OMPI execution.  This is in part because we are not aware of
any OpenFabrics users that do not have thread support -- so we need
you to e-mail the Open MPI Users mailing list to tell us if this is a
problem for you.

************************************************************************

EOF
    fi
fi

 if test "$THREAD_TYPE" = "posix"; then
  OPAL_HAVE_POSIX_THREADS_TRUE=
  OPAL_HAVE_POSIX_THREADS_FALSE='#'
else
  OPAL_HAVE_POSIX_THREADS_TRUE='#'
  OPAL_HAVE_POSIX_THREADS_FALSE=
fi

 if test "$THREAD_TYPE" = "solaris"; then
  OPAL_HAVE_SOLARIS_THREADS_TRUE=
  OPAL_HAVE_SOLARIS_THREADS_FALSE='#'
else
  OPAL_HAVE_SOLARIS_THREADS_TRUE='#'
  OPAL_HAVE_SOLARIS_THREADS_FALSE=
fi


#
# Now configure the whole OPAL and progress thread gorp
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want OPAL thread support" >&5
$as_echo_n "checking if want OPAL thread support... " >&6; }
# Check whether --enable-opal-multi-threads was given.
if test "${enable_opal_multi_threads+set}" = set; then :
  enableval=$enable_opal_multi_threads; enable_opal_multi_threads="$enableval"
else
  enable_opal_multi_threads="undef"
fi


if test "$enable_opal_multi_threads" = "undef" ; then
    # no argument - default to no, but leave
    # enable_opal_multi_threads="undef" so we
    # can later detect that it wasn't specified
    OPAL_ENABLE_MULTI_THREADS=0
elif test "$enable_opal_multi_threads" = "no" ; then
    OPAL_ENABLE_MULTI_THREADS=0
else
    # they want OPAL thread support.  Make sure we have threads
    if test "$THREAD_TYPE" != "none" ; then
        OPAL_ENABLE_MULTI_THREADS=1
        enable_opal_multi_threads="yes"
    else
        as_fn_error "User requested MPI threads, but no threading model supported" "$LINENO" 5
    fi
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_MULTI_THREADS $OPAL_ENABLE_MULTI_THREADS
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_opal_multi_threads" >&5
$as_echo "$enable_opal_multi_threads" >&6; }


#
# Fault Tolerance Thread
#
# --enable-ft-thread
#  #if OPAL_ENABLE_FT_THREAD == 0 /* Disabled */
#  #if OPAL_ENABLE_FT_THREAD == 1 /* Enabled  */
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want fault tolerance thread" >&5
$as_echo_n "checking if want fault tolerance thread... " >&6; }
# Check whether --enable-ft_thread was given.
if test "${enable_ft_thread+set}" = set; then :
  enableval=$enable_ft_thread; enable_ft_thread="$enableval"
else
  enable_ft_thread="undef"
fi


# if they do not want FT support, then they do not want this thread either
if test "$ompi_want_ft" = "0"; then
    ompi_want_ft_thread=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled (fault tolerance disabled --without-ft)" >&5
$as_echo "Disabled (fault tolerance disabled --without-ft)" >&6; }
# if --disable-ft-thread
elif test "$enable_ft_thread" = "no"; then
    ompi_want_ft_thread=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5
$as_echo "Disabled" >&6; }
# if default, and no progress or MPI threads
elif test "$enable_ft_thread" = "undef" -a "$enable_opal_progress_threads" = "no"  -a "$enable_opal_multi_threads" = "no" ; then
    ompi_want_ft_thread=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled (OPAL Thread Support Disabled)" >&5
$as_echo "Disabled (OPAL Thread Support Disabled)" >&6; }
# if default, and MPI threads enabled
else
    # Default: Enable
    # Make sure we have OPAL Threads enabled
    if "$enable_opal_multi_threads" = "no"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Must enable OPALbasic thread support to use this option" >&5
$as_echo "Must enable OPALbasic thread support to use this option" >&6; }
        as_fn_error "Cannot continue" "$LINENO" 5
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        ompi_want_ft_thread=1
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fault Tolerance with a thread in Open MPI    *" >&5
$as_echo "$as_me: WARNING: *** Fault Tolerance with a thread in Open MPI    *" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** is an experimental, research quality option. *" >&5
$as_echo "$as_me: WARNING: *** is an experimental, research quality option. *" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** It requires OPAL thread support or progress  *" >&5
$as_echo "$as_me: WARNING: *** It requires OPAL thread support or progress  *" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and care should be used when enabling these  *" >&5
$as_echo "$as_me: WARNING: *** and care should be used when enabling these  *" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** options.                                     *" >&5
$as_echo "$as_me: WARNING: *** options.                                     *" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
    fi
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_FT_THREAD $ompi_want_ft_thread
_ACEOF

 if test "$ompi_want_ft_thread" = "1"; then
  WANT_FT_THREAD_TRUE=
  WANT_FT_THREAD_FALSE='#'
else
  WANT_FT_THREAD_TRUE='#'
  WANT_FT_THREAD_FALSE=
fi




#
# Arguments: none
#
# Dependencies: None
#
# Modifies:
#  none - see called tests
#
# configure threads
#

#
# MPI_THREAD_MULTIPLE
#
# --enable-mpi-thread-multiple
#  #if OMPI_ENABLE_THREAD_MULTIPLE == 0 /* Not available */
#  #if OMPI_ENABLE_THREAD_MULTIPLE == 1 /* Available  */
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want MPI_THREAD_MULTIPLE support" >&5
$as_echo_n "checking if want MPI_THREAD_MULTIPLE support... " >&6; }
# Check whether --enable-mpi_thread_multiple was given.
if test "${enable_mpi_thread_multiple+set}" = set; then :
  enableval=$enable_mpi_thread_multiple; enable_mpi_threads="$enableval"
else
  enable_mpi_threads="undef"
fi


# if they did not want OPAL thread support, then they cannot have this option
if test "$enable_mpi_threads" = "yes" -a "$enable_opal_multi_threads" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"failed\"" >&5
$as_echo "$as_me: WARNING: \"failed\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** You have requested MPI_THREAD_MULTIPLE support but thread\"" >&5
$as_echo "$as_me: WARNING: \"*** You have requested MPI_THREAD_MULTIPLE support but thread\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** support was disabled within the OPAL code base by\"" >&5
$as_echo "$as_me: WARNING: \"*** support was disabled within the OPAL code base by\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** --disable-opal-multi-threads on your configure command.\"" >&5
$as_echo "$as_me: WARNING: \"*** --disable-opal-multi-threads on your configure command.\"" >&2;}
    as_fn_error "\"*** Can not continue.\"" "$LINENO" 5
# if --disable-mpi-thread-multiple
elif test "$enable_mpi_threads" = "no"; then
    ompi_want_mpi_threads=0
    OMPI_ENABLE_THREAD_MULTIPLE=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5
$as_echo "Disabled" >&6; }
#if requested and OPAL thread support is enabled
elif test "$enable_mpi_threads" = "yes" -a "$enable_opal_multi_threads" = "yes" ; then
    ompi_want_mpi_threads=1
    OMPI_ENABLE_THREAD_MULTIPLE=1
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabled" >&5
$as_echo "Enabled" >&6; }
#if requested and OPAL thread support was not explicitly enabled or disabled
elif test "$enable_mpi_threads" = "yes" -a "$enable_opal_multi_threads" = "undef" ; then
   # ensure that OPAL thread support is turned on
   OPAL_ENABLE_MULTI_THREADS=1
   enable_opal_multi_threads="yes"

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_MULTI_THREADS $OPAL_ENABLE_MULTI_THREADS
_ACEOF

    ompi_want_mpi_threads=1
    OMPI_ENABLE_THREAD_MULTIPLE=1
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabled - OPAL thread support automatically enabled" >&5
$as_echo "Enabled - OPAL thread support automatically enabled" >&6; }
else
    # Default: disable
    ompi_want_mpi_threads=0
    OMPI_ENABLE_THREAD_MULTIPLE=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5
$as_echo "Disabled" >&6; }
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_THREAD_MULTIPLE $ompi_want_mpi_threads
_ACEOF




CFLAGS="$CFLAGS $THREAD_CFLAGS"
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS"
          CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS"
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
LIBS="$LIBS $THREAD_LIBS"

WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $THREAD_CFLAGS"
WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $THREAD_CXXFLAGS"
          WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $THREAD_FFLAGS"
          WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $THREAD_FFLAGS"
WRAPPER_EXTRA_LDFLAGS="$WRAPPER_EXTRA_LDFLAGS $THREAD_LDFLAGS"
# no need to update WRAPPER_EXTRA_LIBS - we'll get it from LT later

#
# What is the local equivalent of "ln -s"
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



#
# We need as and lex
#
# By default we simply use the C compiler to build assembly code.

test "${CCAS+set}" = set || CCAS=$CC
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS



depcc="$CCAS"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CCAS_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false


  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CCAS_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CCAS_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  am__fastdepCCAS_TRUE=
  am__fastdepCCAS_FALSE='#'
else
  am__fastdepCCAS_TRUE='#'
  am__fastdepCCAS_FALSE=
fi


for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LEX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
$as_echo "$LEX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test "x$LEX" != "x:"; then
  cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
c { yymore (); }
d { yyless (1); }
e { yyless (input () != 0); }
f { unput (yytext[0]); }
. { BEGIN INITIAL; }
%%
#ifdef YYTEXT_POINTER
extern char *yytext;
#endif
int
main (void)
{
  return ! yylex () + ! yywrap ();
}
_ACEOF
{ { ac_try="$LEX conftest.l"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$LEX conftest.l") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
$as_echo_n "checking lex output file root... " >&6; }
if test "${ac_cv_prog_lex_root+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
$as_echo "$ac_cv_prog_lex_root" >&6; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
$as_echo_n "checking lex library... " >&6; }
if test "${ac_cv_lib_lex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    ac_save_LIBS=$LIBS
    ac_cv_lib_lex='none needed'
    for ac_lib in '' -lfl -ll; do
      LIBS="$ac_lib $ac_save_LIBS"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lex=$ac_lib
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      test "$ac_cv_lib_lex" != 'none needed' && break
    done
    LIBS=$ac_save_LIBS

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
$as_echo "$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
$as_echo_n "checking whether yytext is a pointer... " >&6; }
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent.  Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
ac_save_LIBS=$LIBS
LIBS="$LEXLIB $ac_save_LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define YYTEXT_POINTER 1
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_prog_lex_yytext_pointer=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
if test $ac_cv_prog_lex_yytext_pointer = yes; then

$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h

fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c

fi
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi

# If we don't have GNU Flex and we don't have a generated .c file
# (distribution tarballs will have the .c file included, but SVN
# checkouts will not), then error.  Must have GNU Flex -- other
# versions of Lex are not workable (all things being equal, since this
# is *only* required for developers, we decided that it really was not
# worth it to be portable between different versions of lex ;-).

if test -z "$LEX" -o -n "`echo $LEX | $GREP missing`" -o \
    "`basename $LEX`" != "flex"; then
    if test ! -f "$srcdir/opal/util/show_help_lex.c"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find GNU Flex on your system." >&5
$as_echo "$as_me: WARNING: *** Could not find GNU Flex on your system." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GNU Flex required for developer builds of Open MPI." >&5
$as_echo "$as_me: WARNING: *** GNU Flex required for developer builds of Open MPI." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Other versions of Lex are not supported." >&5
$as_echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&5
$as_echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&5
$as_echo "$as_me: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** consider using a distribution tarball, or generate the" >&5
$as_echo "$as_me: WARNING: *** consider using a distribution tarball, or generate the" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** following files on another system (using Flex) and" >&5
$as_echo "$as_me: WARNING: *** following files on another system (using Flex) and" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** copy them here:" >&5
$as_echo "$as_me: WARNING: *** copy them here:" >&2;}
        for lfile in `find . -name \*.l -print`; do
            cfile="`echo $lfile | cut -d. -f-2`"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***     $cfile.c" >&5
$as_echo "$as_me: WARNING: ***     $cfile.c" >&2;}
        done
        as_fn_error "Cannot continue" "$LINENO" 5
    fi
fi

#
# Look for ps command and arguments for orte-clean
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flavor of ps to use" >&5
$as_echo_n "checking for flavor of ps to use... " >&6; }
PS_FLAVOR="unknown"
ps -A -o fname > /dev/null 2>&1

if test "$?" = "0"; then
     PS_FLAVOR="ps -A -o fname,pid,user"
else
     ps -A -o command > /dev/null 2>&1
     if test "$?" = "0"; then
         PS_FLAVOR="ps -A -o command,pid,user"
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_FLAVOR" >&5
$as_echo "$PS_FLAVOR" >&6; }

cat >>confdefs.h <<_ACEOF
#define ORTE_CLEAN_PS_CMD "$PS_FLAVOR"
_ACEOF



#
# File system case sensitivity
#


#
# Arguments: none
#
# Dependencies: None
#
# See if we are on a case sensitive filesystem.  Some filesystems
# (like HFS+ on MacOS X and MS Windows) are not case sensitive - opalcc
# and opalCC are the same file.
#
# Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case
# sensitive (ie, mpicc and mpiCC will be different files) or 0 if
# filesystem is not case sensitive (ie, mpicc and mpiCC will be
# the same file).
#
#

have_cs_fs=1

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if build filesystem is case sensitive" >&5
$as_echo_n "checking if build filesystem is case sensitive... " >&6; }
cat > conf_fs_test.$$ <<EOF
lowercase
EOF

cat > CONF_FS_TEST.$$ <<EOF
uppercase
EOF

if test "`cat conf_fs_test.$$`" = "lowercase"; then
    have_cs_fs=1
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
    have_cs_fs=0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

rm -f conf_fs_test.$$ CONF_FS_TEST.$$

#
# Now see what the user wants to do...
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if configuring for case sensitive filesystem" >&5
$as_echo_n "checking if configuring for case sensitive filesystem... " >&6; }

# Check whether --with-cs_fs was given.
if test "${with_cs_fs+set}" = set; then :
  withval=$with_cs_fs;
fi


if test "$with_cs_fs" = "yes"; then
    OPAL_WANT_CS_FS=1
elif test -z "$with_cs_fs"; then
    OPAL_WANT_CS_FS=$have_cs_fs
else
    OPAL_WANT_CS_FS=0
fi

if test "$OPAL_WANT_CS_FS" = "1"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

 if test "$OPAL_WANT_CS_FS" = "1"; then
  CASE_SENSITIVE_FS_TRUE=
  CASE_SENSITIVE_FS_FALSE='#'
else
  CASE_SENSITIVE_FS_TRUE='#'
  CASE_SENSITIVE_FS_FALSE=
fi


if test "$OPAL_WANT_CS_FS" = "0"; then
	cat <<EOF

*******************************************************************************
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
*******************************************************************************

Because OPAL is being installed on a non-case sensitive file
system, the C++ wrapper compiler will be named opalc++ instead of the
traditional opalCC.

Please update any makefiles appropriately.

*******************************************************************************
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
*******************************************************************************

EOF
fi

# Clean up
unset have_cs_fs

# AIX: FIONBIO in sys/ioctl.h
# glibc: memcpy

#
# Do we have RLIMIT_NPROC in <sys/resources.h>? (e.g., Solaris does not)
#

ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
$ac_includes_default
#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
"
if test "x$ac_cv_have_decl_RLIMIT_NPROC" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_RLIMIT_NPROC $ac_have_decl
_ACEOF


#
# Do we have RLIMIT_MEMLOCK in <sys/resources.h>? (e.g., Solaris does not)
#

ac_fn_c_check_decl "$LINENO" "RLIMIT_MEMLOCK" "ac_cv_have_decl_RLIMIT_MEMLOCK" "
$ac_includes_default
#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
"
if test "x$ac_cv_have_decl_RLIMIT_MEMLOCK" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_RLIMIT_MEMLOCK $ac_have_decl
_ACEOF


# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


##################################
# MCA
##################################

ompi_show_title "Modular Component Architecture (MCA) setup"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for subdir args" >&5
$as_echo_n "checking for subdir args... " >&6; }

#
# Invoke configure in subdirectories.
#
# ompi_subdir_args is the name of the variable to assign the output to
#

#
# Make a list of command line args --eliminate the --srcdir and
# --cache-file args, because we need to replace them with our own
# values when invoking the sub-configure script.
#

subdirs_args=
subdirs_skip=no

eval "set x $ac_configure_args"
shift
for subdirs_arg
do
    if test "$subdirs_skip" = "yes"; then
	subdirs_skip=no
    else
	case $subdirs_arg in
	-cache-file | --cache-file | -cache | --cache)
	    subdirs_skip=yes
	    ;;
	--config-cache | -C)
	    ;;
	-cache-file=* | --cache-file=*)
	    ;;
	-srcdir | --srcdir)
	    subdirs_skip=yes
	    ;;
	-srcdir=* | --srcdir=*)
	    ;;
	*)
	    case $subdir_arg in
	    *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
	    esac
	    subdirs_args="$subdirs_args '$subdirs_arg'"
	    ;;
	esac
    fi
done

#
# Assign the output
#

subdirs_str=ompi_subdir_args=\"$subdirs_args\"
eval "$subdirs_str"

#
# Clean up
#

unset subdirs_str subdirs_skip subdirs_args subdirs_arg
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_subdir_args" >&5
$as_echo "$ompi_subdir_args" >&6; }



if test "x$ac_cv_env_HWLOC_PKG_CONFIG_set" != "xset"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_HWLOC_PKG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $HWLOC_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_HWLOC_PKG_CONFIG="$HWLOC_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_HWLOC_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
HWLOC_PKG_CONFIG=$ac_cv_path_HWLOC_PKG_CONFIG
if test -n "$HWLOC_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_PKG_CONFIG" >&5
$as_echo "$HWLOC_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_HWLOC_PKG_CONFIG"; then
  ac_pt_HWLOC_PKG_CONFIG=$HWLOC_PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_HWLOC_PKG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_HWLOC_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_HWLOC_PKG_CONFIG="$ac_pt_HWLOC_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_HWLOC_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_HWLOC_PKG_CONFIG=$ac_cv_path_ac_pt_HWLOC_PKG_CONFIG
if test -n "$ac_pt_HWLOC_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_HWLOC_PKG_CONFIG" >&5
$as_echo "$ac_pt_HWLOC_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_HWLOC_PKG_CONFIG" = x; then
    HWLOC_PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    HWLOC_PKG_CONFIG=$ac_pt_HWLOC_PKG_CONFIG
  fi
else
  HWLOC_PKG_CONFIG="$ac_cv_path_HWLOC_PKG_CONFIG"
fi

fi
if test -n "$HWLOC_PKG_CONFIG"; then
	HWLOC_pkg_min_version=0.9.0
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; }
	if $HWLOC_PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		HWLOC_PKG_CONFIG=""
	fi

fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __NetBSD__" >&5
$as_echo_n "checking __NetBSD__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __NetBSD__
      error: this isnt __NetBSD__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_netbsd=yes
else
  opal_found_netbsd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_netbsd" >&5
$as_echo "$opal_found_netbsd" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __FreeBSD__" >&5
$as_echo_n "checking __FreeBSD__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __FreeBSD__
      error: this isnt __FreeBSD__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_freebsd=yes
else
  opal_found_freebsd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_freebsd" >&5
$as_echo "$opal_found_freebsd" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __OpenBSD__" >&5
$as_echo_n "checking __OpenBSD__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __OpenBSD__
      error: this isnt __OpenBSD__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_openbsd=yes
else
  opal_found_openbsd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_openbsd" >&5
$as_echo "$opal_found_openbsd" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __DragonFly__" >&5
$as_echo_n "checking __DragonFly__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __DragonFly__
      error: this isnt __DragonFly__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_dragonfly=yes
else
  opal_found_dragonfly=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_dragonfly" >&5
$as_echo "$opal_found_dragonfly" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __386BSD__" >&5
$as_echo_n "checking __386BSD__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __386BSD__
      error: this isnt __386BSD__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_386bsd=yes
else
  opal_found_386bsd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_386bsd" >&5
$as_echo "$opal_found_386bsd" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __bsdi__" >&5
$as_echo_n "checking __bsdi__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __bsdi__
      error: this isnt __bsdi__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_bsdi=yes
else
  opal_found_bsdi=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_bsdi" >&5
$as_echo "$opal_found_bsdi" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __APPLE__" >&5
$as_echo_n "checking __APPLE__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE__
      error: this isnt __APPLE__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_apple=yes
else
  opal_found_apple=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_apple" >&5
$as_echo "$opal_found_apple" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __linux__" >&5
$as_echo_n "checking __linux__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __linux__
      error: this isnt __linux__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_linux=yes
else
  opal_found_linux=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_linux" >&5
$as_echo "$opal_found_linux" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sun__" >&5
$as_echo_n "checking __sun__... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __sun__
      error: this isnt __sun__
      #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  opal_found_sun=yes
else
  opal_found_sun=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_found_sun" >&5
$as_echo "$opal_found_sun" >&6; }


    # check for sockaddr_in (a good sign we have TCP)
    ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF

opal_found_sockaddr=yes
else
  opal_found_sockaddr=no
fi





    # Find which components should be built as run-time loadable components
    # Acceptable combinations:
    #
    # [default -- no option given]
    # --enable-mca-dso
    # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]*
    # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]*
    # --disable-mca-dso
    #
    # Check whether --enable-mca-no-build was given.
if test "${enable_mca_no_build+set}" = set; then :
  enableval=$enable_mca_no_build;
fi

    # Check whether --enable-mca-dso was given.
if test "${enable_mca_dso+set}" = set; then :
  enableval=$enable_mca_dso;
fi

    # Check whether --enable-mca-static was given.
if test "${enable_mca_static+set}" = set; then :
  enableval=$enable_mca_static;
fi

    # Check whether --enable-mca-direct was given.
if test "${enable_mca_direct+set}" = set; then :
  enableval=$enable_mca_direct;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be disabled" >&5
$as_echo_n "checking which components should be disabled... " >&6; }
    if test "$enable_mca_no_build" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        as_fn_error "*** The enable-mca-no-build flag requires an explicit list
*** of type-component pairs.  For example, --enable-mca-direct=pml-ob1" "$LINENO" 5
    else
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_no_build; do
            type="`echo $item | cut -s -f1 -d-`"
            comp="`echo $item | cut -s -f2- -d-`"
            if test -z $type ; then
                type=$item
            fi
            if test -z $comp ; then
                str="`echo DISABLE_${type}=1 | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            else
                str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            fi
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    #
    # First, add all the mca-direct components / types into the mca-static
    # lists and create a list of component types that are direct compile,
    # in the form DIRECT_[type]=[component]
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be direct-linked into the library" >&5
$as_echo_n "checking which components should be direct-linked into the library... " >&6; }
    if test "$enable_mca_direct" = "yes" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        as_fn_error "*** The enable-mca-direct flag requires an explicit list of
*** type-component pairs.  For example, --enable-mca-direct=pml-ob1,coll-basic" "$LINENO" 5
    elif test ! -z "$enable_mca_direct" -a "$enable_mca_direct" != "" ; then
        #
        # we need to add this into the static list, unless the static list
        # is everything
        #
        if test "$enable_mca_static" = "no" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Re-enabling static component support for direct call" >&5
$as_echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;}
            enable_mca_static="$enable_mca_direct"
        elif test -z "$enable_mca_static" ; then
            enable_mca_static="$enable_mca_direct"
        elif test "$enable_mca_static" != "yes" ; then
            enable_mca_static="$enable_mca_direct,$enable_mca_static"
        fi

        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_direct; do
            type="`echo $item | cut -f1 -d-`"
            comp="`echo $item | cut -f2- -d-`"
            if test -z $type -o -z $comp ; then
                as_fn_error "*** The enable-mca-direct flag requires a
*** list of type-component pairs.  Invalid input detected." "$LINENO" 5
            else
                str="`echo DIRECT_$type=$comp | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            fi
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    #
    # Second, set the DSO_all and STATIC_all variables.  conflict
    # resolution (prefer static) is done in the big loop below
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be run-time loadable" >&5
$as_echo_n "checking which components should be run-time loadable... " >&6; }
    if test "$enable_static" != "no"; then
        DSO_all=0
        msg=none
    elif test -z "$enable_mca_dso" -o "$enable_mca_dso" = "yes"; then
        DSO_all=1
        msg=all
    elif test "$enable_mca_dso" = "no"; then
        DSO_all=0
        msg=none
    else
        DSO_all=0
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_dso; do
            str="`echo DSO_$item=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg
    if test "$enable_static" != "no"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5
$as_echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building MCA components as DSOs automatically disabled" >&5
$as_echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;}
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be static" >&5
$as_echo_n "checking which components should be static... " >&6; }
    if test "$enable_mca_static" = "yes"; then
        STATIC_all=1
        msg=all
    elif test -z "$enable_mca_static" -o "$enable_mca_static" = "no"; then
        STATIC_all=0
        msg=none
    else
        STATIC_all=0
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_static; do
            str="`echo STATIC_$item=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for projects containing MCA frameworks" >&5
$as_echo_n "checking for projects containing MCA frameworks... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal, orte, ompi" >&5
$as_echo "opal, orte, ompi" >&6; }

    # if there isn't a project list, abort


    # now configre all the projects, frameworks, and components.  Most
    # of the hard stuff is in here
    MCA_PROJECT_SUBDIRS=
    MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS opal"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring MCA for opal"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for opal" >&5
$as_echo_n "checking for frameworks for opal... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, pstat, sysinfo, timer" >&5
$as_echo "backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, pstat, sysinfo, timer" >&6; }

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library


    MCA_opal_FRAMEWORKS=
    MCA_opal_FRAMEWORKS_SUBDIRS=
    MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
    MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
    MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
    MCA_opal_FRAMEWORK_LIBS=

    # common has to go up front
                          if test "backtrace" = "common" ; then
                              MCA_opal_FRAMEWORKS="backtrace $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/backtrace $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_backtrace_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_backtrace_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_backtrace_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS backtrace"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/backtrace"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_backtrace_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_backtrace_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_backtrace_STATIC_SUBDIRS)"
                          fi
                          if test "backtrace" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/backtrace/libmca_backtrace.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_backtrace_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework backtrace"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "backtrace" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/backtrace/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework backtrace" >&5
$as_echo_n "checking for no configure components in framework backtrace... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework backtrace" >&5
$as_echo_n "checking for m4 configure components in framework backtrace... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: execinfo, printstack, darwin, none" >&5
$as_echo "execinfo, printstack, darwin, none" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component backtrace:execinfo (m4 configuration macro)"




    project=opal
    framework=backtrace
    component=execinfo
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_backtrace" ; then
            if test "$DIRECT_backtrace" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:execinfo compile mode" >&5
$as_echo_n "checking for MCA component backtrace:execinfo compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    for ac_header in execinfo.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
if test "x$ac_cv_header_execinfo_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EXECINFO_H 1
_ACEOF

fi

done

    # FreeBSD has backtrace in -lexecinfo, usually in libc

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lexecinfo for backtrace" >&5
$as_echo_n "checking if we need -lexecinfo for backtrace... " >&6; }
if test "${ompi_cv_func_lib_backtrace_execinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define backtrace innocuous_backtrace

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char backtrace (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef backtrace

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char backtrace ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_backtrace || defined __stub___backtrace
choke me
#endif

int
main ()
{
return backtrace ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_backtrace_execinfo="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lexecinfo"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define backtrace innocuous_backtrace

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char backtrace (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef backtrace

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char backtrace ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_backtrace || defined __stub___backtrace
choke me
#endif

int
main ()
{
return backtrace ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_backtrace_execinfo="yes"
else
  ompi_cv_func_lib_backtrace_execinfo="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_backtrace_execinfo" >&5
$as_echo "$ompi_cv_func_lib_backtrace_execinfo" >&6; }
    if test "x$ompi_cv_func_lib_backtrace_execinfo" = x""yes; then :
  LIBS="$LIBS -lexecinfo"
fi

    # see if we actually have backtrace.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lexecinfo if we decided we needed it above
    for ac_func in backtrace
do :
  ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
if test "x$ac_cv_func_backtrace" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BACKTRACE 1
_ACEOF
 backtrace_execinfo_happy="yes"
else
  backtrace_execinfo_happy="no"
fi
done



    if test "$backtrace_execinfo_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=backtrace
    component=execinfo

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_backtrace" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_backtrace" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:execinfo can compile" >&5
$as_echo_n "checking if MCA component backtrace:execinfo can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "execinfo" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"execinfo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_backtrace" ; then
        if test "$DIRECT_backtrace" = "execinfo" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"execinfo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components execinfo"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_backtrace_execinfo_DSO=1
else
  BUILD_backtrace_execinfo_DSO=0
fi
     if test "$BUILD_backtrace_execinfo_DSO" = "1"; then
  OMPI_BUILD_backtrace_execinfo_DSO_TRUE=
  OMPI_BUILD_backtrace_execinfo_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_execinfo_DSO_TRUE='#'
  OMPI_BUILD_backtrace_execinfo_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component backtrace:printstack (m4 configuration macro)"




    project=opal
    framework=backtrace
    component=printstack
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_backtrace" ; then
            if test "$DIRECT_backtrace" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:printstack compile mode" >&5
$as_echo_n "checking for MCA component backtrace:printstack compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    for ac_header in ucontext.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
if test "x$ac_cv_header_ucontext_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UCONTEXT_H 1
_ACEOF

fi

done

    # FreeBSD has backtrace in -lexecinfo, usually in libc
    for ac_func in printstack
do :
  ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack"
if test "x$ac_cv_func_printstack" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PRINTSTACK 1
_ACEOF
 backtrace_printstack_happy="yes"
else
  backtrace_printstack_happy="no"
fi
done


    if test "$backtrace_printstack_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=backtrace
    component=printstack

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_backtrace" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_backtrace" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:printstack can compile" >&5
$as_echo_n "checking if MCA component backtrace:printstack can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "printstack" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"printstack\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_backtrace" ; then
        if test "$DIRECT_backtrace" = "printstack" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"printstack\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components printstack"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_backtrace_printstack_DSO=1
else
  BUILD_backtrace_printstack_DSO=0
fi
     if test "$BUILD_backtrace_printstack_DSO" = "1"; then
  OMPI_BUILD_backtrace_printstack_DSO_TRUE=
  OMPI_BUILD_backtrace_printstack_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_printstack_DSO_TRUE='#'
  OMPI_BUILD_backtrace_printstack_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component backtrace:darwin (m4 configuration macro)"




    project=opal
    framework=backtrace
    component=darwin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_backtrace" ; then
            if test "$DIRECT_backtrace" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:darwin compile mode" >&5
$as_echo_n "checking for MCA component backtrace:darwin compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    for ac_func in vm_read_overwrite
do :
  ac_fn_c_check_func "$LINENO" "vm_read_overwrite" "ac_cv_func_vm_read_overwrite"
if test "x$ac_cv_func_vm_read_overwrite" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VM_READ_OVERWRITE 1
_ACEOF
 backtrace_darwin_happy="yes"
else
  backtrace_darwin_happy="no"
fi
done


    case "${host}" in
    i?86-*|x86_64*)
        if test "$ac_cv_sizeof_long" = "8" ; then
            backtrace_darwin_happy="no"
        fi
    esac

    if test "$backtrace_darwin_happy" = "yes" ; then
       if test "$OPAL_C_GCC_INLINE_ASSEMBLY" = "0" ; then
           backtrace_darwin_happy="no"
       fi
    fi

    if test "$backtrace_darwin_happy" = "yes"; then :
  for ac_header in mach/mach_vm.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_vm.h" "ac_cv_header_mach_mach_vm_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_vm_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_MACH_VM_H 1
_ACEOF

fi

done

           for ac_func in mach_vm_region mach_vm_read
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi

    backtrace_darwin_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"


    # see if registers are prefixed with __ or not.  On systems
    # previous to Leopard, they were not.  On leopard, it depends on
    # whether code is compiled in UNIX03 mode or not.  Check PPC even
    # if on x86 because x86 always has PPC includes, but the other way
    # around is not guaranteed.
    if test "$backtrace_darwin_happy" = "yes"; then :
  ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "srr0" "ac_cv_member_ppc_thread_state_t_srr0" "
#include <mach/ppc/thread_status.h>
"
if test "x$ac_cv_member_ppc_thread_state_t_srr0" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PPC_THREAD_STATE_T_SRR0 1
_ACEOF


fi

fi

    if test "$backtrace_darwin_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=backtrace
    component=darwin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_backtrace" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_backtrace" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:darwin can compile" >&5
$as_echo_n "checking if MCA component backtrace:darwin can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "darwin" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_backtrace" ; then
        if test "$DIRECT_backtrace" = "darwin" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components darwin"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_backtrace_darwin_DSO=1
else
  BUILD_backtrace_darwin_DSO=0
fi
     if test "$BUILD_backtrace_darwin_DSO" = "1"; then
  OMPI_BUILD_backtrace_darwin_DSO_TRUE=
  OMPI_BUILD_backtrace_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_darwin_DSO_TRUE='#'
  OMPI_BUILD_backtrace_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component backtrace:none (m4 configuration macro)"




    project=opal
    framework=backtrace
    component=none
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_backtrace" ; then
            if test "$DIRECT_backtrace" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:none compile mode" >&5
$as_echo_n "checking for MCA component backtrace:none compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=backtrace
    component=none

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_backtrace" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_backtrace" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:none can compile" >&5
$as_echo_n "checking if MCA component backtrace:none can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "none" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_backtrace" ; then
        if test "$DIRECT_backtrace" = "none" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components none"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_backtrace_none_DSO=1
else
  BUILD_backtrace_none_DSO=0
fi
     if test "$BUILD_backtrace_none_DSO" = "1"; then
  OMPI_BUILD_backtrace_none_DSO_TRUE=
  OMPI_BUILD_backtrace_none_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_none_DSO_TRUE='#'
  OMPI_BUILD_backtrace_none_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_backtrace_ALL_COMPONENTS="$all_components"
    MCA_backtrace_STATIC_COMPONENTS="$static_components"
    MCA_backtrace_DSO_COMPONENTS="$dso_components"
    MCA_backtrace_STATIC_LTLIBS="$static_ltlibs"







    MCA_backtrace_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_backtrace_ALL_SUBDIRS="$MCA_backtrace_ALL_SUBDIRS mca/backtrace/$item"
    done



    MCA_backtrace_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_backtrace_STATIC_SUBDIRS="$MCA_backtrace_STATIC_SUBDIRS mca/backtrace/$item"
    done



    MCA_backtrace_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_backtrace_DSO_SUBDIRS="$MCA_backtrace_DSO_SUBDIRS mca/backtrace/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "backtrace" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_backtrace_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "carto" = "common" ; then
                              MCA_opal_FRAMEWORKS="carto $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/carto $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_carto_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_carto_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_carto_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS carto"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/carto"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_carto_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_carto_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_carto_STATIC_SUBDIRS)"
                          fi
                          if test "carto" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/carto/libmca_carto.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_carto_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework carto"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "carto" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/carto/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework carto" >&5
$as_echo_n "checking for no configure components in framework carto... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto_detect, file" >&5
$as_echo "auto_detect, file" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework carto" >&5
$as_echo_n "checking for m4 configure components in framework carto... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component carto:auto_detect (no configuration)"




    project=opal
    framework=carto
    component=auto_detect
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_carto" ; then
            if test "$DIRECT_carto" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=carto
    component=auto_detect

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_carto" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=carto
    component=auto_detect

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_carto" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_carto" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component carto:auto_detect can compile" >&5
$as_echo_n "checking if MCA component carto:auto_detect can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_carto" = "auto_detect" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_carto" ; then
        if test "$DIRECT_carto" = "auto_detect" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components auto_detect"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_carto_auto_detect_DSO=1
    else
        BUILD_carto_auto_detect_DSO=0
    fi
     if test "$BUILD_carto_auto_detect_DSO" = "1"; then
  OMPI_BUILD_carto_auto_detect_DSO_TRUE=
  OMPI_BUILD_carto_auto_detect_DSO_FALSE='#'
else
  OMPI_BUILD_carto_auto_detect_DSO_TRUE='#'
  OMPI_BUILD_carto_auto_detect_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component carto:file (no configuration)"




    project=opal
    framework=carto
    component=file
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_carto" ; then
            if test "$DIRECT_carto" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=carto
    component=file

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_carto" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=carto
    component=file

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_carto" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_carto" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component carto:file can compile" >&5
$as_echo_n "checking if MCA component carto:file can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_carto" = "file" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_carto" ; then
        if test "$DIRECT_carto" = "file" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components file"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_carto_file_DSO=1
    else
        BUILD_carto_file_DSO=0
    fi
     if test "$BUILD_carto_file_DSO" = "1"; then
  OMPI_BUILD_carto_file_DSO_TRUE=
  OMPI_BUILD_carto_file_DSO_FALSE='#'
else
  OMPI_BUILD_carto_file_DSO_TRUE='#'
  OMPI_BUILD_carto_file_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/opal/mca/carto/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component carto:$component (need to configure)"




    project=opal
    framework=carto
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_carto" ; then
            if test "$DIRECT_carto" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=carto
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_carto" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/carto/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/carto/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=opal
    framework=carto
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_carto" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_carto" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component carto:$component can compile" >&5
$as_echo_n "checking if MCA component carto:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_carto" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_carto" ; then
        if test "$DIRECT_carto" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_carto_ALL_COMPONENTS="$all_components"
    MCA_carto_STATIC_COMPONENTS="$static_components"
    MCA_carto_DSO_COMPONENTS="$dso_components"
    MCA_carto_STATIC_LTLIBS="$static_ltlibs"







    MCA_carto_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_carto_ALL_SUBDIRS="$MCA_carto_ALL_SUBDIRS mca/carto/$item"
    done



    MCA_carto_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_carto_STATIC_SUBDIRS="$MCA_carto_STATIC_SUBDIRS mca/carto/$item"
    done



    MCA_carto_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_carto_DSO_SUBDIRS="$MCA_carto_DSO_SUBDIRS mca/carto/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "carto" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_carto_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "crs" = "common" ; then
                              MCA_opal_FRAMEWORKS="crs $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/crs $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS crs"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/crs"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crs_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crs_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crs_STATIC_SUBDIRS)"
                          fi
                          if test "crs" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/crs/libmca_crs.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_crs_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework crs"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "crs" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/crs/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework crs" >&5
$as_echo_n "checking for no configure components in framework crs... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework crs" >&5
$as_echo_n "checking for m4 configure components in framework crs... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: blcr, self" >&5
$as_echo "blcr, self" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component crs:none (no configuration)"




    project=opal
    framework=crs
    component=none
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_crs" ; then
            if test "$DIRECT_crs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=crs
    component=none

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=crs
    component=none

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_crs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_crs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:none can compile" >&5
$as_echo_n "checking if MCA component crs:none can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "none" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "none" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components none"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_crs_none_DSO=1
    else
        BUILD_crs_none_DSO=0
    fi
     if test "$BUILD_crs_none_DSO" = "1"; then
  OMPI_BUILD_crs_none_DSO_TRUE=
  OMPI_BUILD_crs_none_DSO_FALSE='#'
else
  OMPI_BUILD_crs_none_DSO_TRUE='#'
  OMPI_BUILD_crs_none_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component crs:blcr (m4 configuration macro)"




    project=opal
    framework=crs
    component=blcr
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_crs" ; then
            if test "$DIRECT_crs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=crs
    component=blcr

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-blcr was given.
if test "${with_blcr+set}" = set; then :
  withval=$with_blcr;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-blcr value" >&5
$as_echo_n "checking --with-blcr value... " >&6; }
    if test "$with_blcr" = "yes" -o "$with_blcr" = "no" -o "x$with_blcr" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_blcr"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_blcr not found" >&5
$as_echo "$as_me: WARNING: Directory $with_blcr not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_blcr/include/libcr.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_blcr/include/libcr.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_blcr/include/libcr.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_blcr)" >&5
$as_echo "sanity check ok ($with_blcr)" >&6; }

fi


fi


fi


# Check whether --with-blcr-libdir was given.
if test "${with_blcr_libdir+set}" = set; then :
  withval=$with_blcr_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-blcr-libdir value" >&5
$as_echo_n "checking --with-blcr-libdir value... " >&6; }
    if test "$with_blcr_libdir" = "yes" -o "$with_blcr_libdir" = "no" -o "x$with_blcr_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_blcr_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_blcr_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_blcr_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_blcr_libdir/libcr.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_blcr_libdir/libcr.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_blcr_libdir/libcr.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_blcr_libdir)" >&5
$as_echo "sanity check ok ($with_blcr_libdir)" >&6; }

fi


fi


fi


    check_crs_blcr_good="no"

    # If we do not want FT, don't compile this component
    if test "$ompi_want_ft_cr" = "0"; then :
  should_build=0
           check_crs_blcr_good="no"
else
  check_crs_blcr_good="yes"
fi

    # If we do not want BLCR, then do not compile it
    if test "$with_blcr" = "no" -o "$check_crs_blcr_good" = "no"; then :
  should_build=0
           check_crs_blcr_good="no"
else
  check_crs_blcr_good="yes"
fi

    # Defaults
    check_crs_blcr_dir_msg="compiler default"
    check_crs_blcr_libdir_msg="linker default"
    check_crs_blcr_dir=""
    check_crs_blcr_libdir=""

    # Determine the search paths for the headers and libraries
    if test "$check_crs_blcr_good" != "yes"; then :
  should_build=0
else
  if test ! -z "$with_blcr" -a "$with_blcr" != "yes"; then :
  check_crs_blcr_dir="$with_blcr"
                  check_crs_blcr_dir_msg="$with_blcr (from --with-blcr)"
fi
           if test ! -z "$with_blcr_libdir" -a "$with_blcr_libdir" != "yes"; then :
  check_crs_blcr_libdir="$with_blcr_libdir"
                  check_crs_blcr_libdir_msg="$with_blcr_libdir (from --with-blcr-libdir)"
fi

fi

    if test "$check_crs_blcr_good" != "yes"; then :
  should_build=0
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLCR dir" >&5
$as_echo_n "checking for BLCR dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_crs_blcr_dir_msg" >&5
$as_echo "$check_crs_blcr_dir_msg" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLCR library dir" >&5
$as_echo_n "checking for BLCR library dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_crs_blcr_libdir_msg" >&5
$as_echo "$check_crs_blcr_libdir_msg" >&6; }

    ompi_check_package_crs_blcr_check_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_crs_blcr_check_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_crs_blcr_check_save_LIBS="$LIBS"

    ompi_check_package_crs_blcr_check_orig_CPPFLAGS="$crs_blcr_check_CPPFLAGS"
    ompi_check_package_crs_blcr_check_orig_LDFLAGS="$crs_blcr_check_LDFLAGS"
    ompi_check_package_crs_blcr_check_orig_LIBS="$crs_blcr_check_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_libcr_h

    ompi_check_package_header_happy="no"
    if test "$check_crs_blcr_dir" = "/usr" -o "$check_crs_blcr_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "libcr.h" "ac_cv_header_libcr_h" "$ac_includes_default"
if test "x$ac_cv_header_libcr_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_libcr_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$check_crs_blcr_dir" != ""; then :
  crs_blcr_check_CPPFLAGS="$crs_blcr_check_CPPFLAGS -I$check_crs_blcr_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$check_crs_blcr_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "libcr.h" "ac_cv_header_libcr_h" "$ac_includes_default"
if test "x$ac_cv_header_libcr_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_cr_cr_init
    ompi_check_package_lib_happy="no"
    if test "$check_crs_blcr_libdir" != ""; then :
   # libdir was specified - search only there
           crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir"
           LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                  crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                  unset ac_cv_lib_cr_cr_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$check_crs_blcr_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                     crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                     unset ac_cv_lib_cr_cr_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  crs_blcr_check_LIBS="-lcr "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_cr_cr_init
    ompi_check_package_lib_happy="no"
    if test "$check_crs_blcr_libdir" != ""; then :
   # libdir was specified - search only there
           crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir"
           LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                  crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                  unset ac_cv_lib_cr_cr_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$check_crs_blcr_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                     crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                     unset ac_cv_lib_cr_cr_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_init ();
int
main ()
{
return cr_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cr_cr_init=yes
else
  ac_cv_lib_cr_cr_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  crs_blcr_check_LIBS="-lcr "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  check_crs_blcr_good="yes"
else
  crs_blcr_check_CPPFLAGS="$ompi_check_package_crs_blcr_check_orig_CPPFLAGS"
           crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
           crs_blcr_check_LIBS="$ompi_check_package_crs_blcr_check_orig_LIBS"
           check_crs_blcr_good="no"
fi

    CPPFLAGS="$ompi_check_package_crs_blcr_check_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
    LIBS="$ompi_check_package_crs_blcr_check_save_LIBS"


fi

    crs_blcr_save_CFLAGS="$CFLAGS"
    crs_blcr_save_CPPFLAGS="$CPPFLAGS"
    crs_blcr_save_LDFLAGS="$LDFLAGS"
    crs_blcr_save_LIBS="$LIBS"

    crs_blcr_CFLAGS="$CFLAGS $crs_blcr_check_CFLAGS"
    crs_blcr_CPPFLAGS="$CPPFLAGS $crs_blcr_check_CPPFLAGS"
    crs_blcr_LDFLAGS="$LDFLAGS $crs_blcr_check_LDFLAGS"
    crs_blcr_LIBS="$LIBS $crs_blcr_check_LIBS"

    # Check to see if we found the BLCR libcr.h library
    # If we did then add the arguments to the wrapper compiler
    if test "$check_crs_blcr_good" != "yes"; then :
  should_build=0
else

           #
           # Since BLCR libraries are not fully ISO99 C compliant
           # -pedantic and -Wundef raise a bunch of warnings, so
           # we just strip them off for this component
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&5
$as_echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&2;}
           # Strip off problematic arguments
           crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-pedantic//g'`"
           crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-Wundef//g'`"
           crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-pedantic//g'`"
           crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-Wundef//g'`"
           crs_blcr_LDFLAGS="$crs_blcr_LDFLAGS"
           crs_blcr_LIBS="$crs_blcr_LIBS"
           #
           # Setup wrapper options for static builds
           #
           crs_blcr_WRAPPER_EXTRA_CPPFLAGS="$crs_blcr_CPPFLAGS"
           crs_blcr_WRAPPER_EXTRA_LDFLAGS="$crs_blcr_LDFLAGS"
           crs_blcr_WRAPPER_EXTRA_LIBS="$crs_blcr_LIBS"
           should_build=1
fi

    #
    # Check for version difference which may have:
    # - working cr_request_file
    # - working cr_request_checkpoint (which should be used instead of cr_request_file)
    # - 'requester' parameter to checkpoint_info
    #
    if test "$check_crs_blcr_good" != "yes"; then :
  should_build=0
else

            CFLAGS="$crs_blcr_CFLAGS"
            CPPFLAGS="$crs_blcr_CPPFLAGS"
            LDFLAGS="$crs_blcr_LDFLAGS"
            LIBS="$crs_blcr_LIBS"
           #
           # First look for the cr_request_file function
           #
           crs_blcr_have_working_cr_request=0
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLCR working cr_request" >&5
$as_echo_n "checking for BLCR working cr_request... " >&6; }

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lcr for cr_request_file" >&5
$as_echo_n "checking if we need -lcr for cr_request_file... " >&6; }
if test "${ompi_cv_func_lib_cr_request_file_cr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define cr_request_file to an innocuous variant, in case <limits.h> declares cr_request_file.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cr_request_file innocuous_cr_request_file

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_file (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cr_request_file

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_request_file ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_cr_request_file || defined __stub___cr_request_file
choke me
#endif

int
main ()
{
return cr_request_file ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_cr_request_file_cr="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lcr"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define cr_request_file to an innocuous variant, in case <limits.h> declares cr_request_file.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cr_request_file innocuous_cr_request_file

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_file (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cr_request_file

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_request_file ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_cr_request_file || defined __stub___cr_request_file
choke me
#endif

int
main ()
{
return cr_request_file ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_cr_request_file_cr="yes"
else
  ompi_cv_func_lib_cr_request_file_cr="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_cr_request_file_cr" >&5
$as_echo "$ompi_cv_func_lib_cr_request_file_cr" >&6; }
    if test "x$ompi_cv_func_lib_cr_request_file_cr" = x""yes; then :
  LIBS="$LIBS -lcr"
fi

    # see if we actually have cr_request_file.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lcr if we decided we needed it above
    for ac_func in cr_request_file
do :
  ac_fn_c_check_func "$LINENO" "cr_request_file" "ac_cv_func_cr_request_file"
if test "x$ac_cv_func_cr_request_file" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CR_REQUEST_FILE 1
_ACEOF
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libcr.h>
int
main ()
{
#if CR_RELEASE_MAJOR <= 0 && CR_RELEASE_MINOR < 6
                        #error Version earlier than 0.6.0
                        #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  crs_blcr_have_working_cr_request=1

else
  crs_blcr_have_working_cr_request=0
                           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&2;}

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  crs_blcr_have_working_cr_request=0
                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This BLCR version does not contain the cr_request_file function" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain the cr_request_file function" >&2;}

fi
done



cat >>confdefs.h <<_ACEOF
#define CRS_BLCR_HAVE_CR_REQUEST $crs_blcr_have_working_cr_request
_ACEOF


           #
           # Look for the cr_request_checkpoint function
           #
           crs_blcr_have_cr_request_checkpoint=0
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLCR cr_request_checkpoint" >&5
$as_echo_n "checking for BLCR cr_request_checkpoint... " >&6; }

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lcr for cr_request_checkpoint" >&5
$as_echo_n "checking if we need -lcr for cr_request_checkpoint... " >&6; }
if test "${ompi_cv_func_lib_cr_request_checkpoint_cr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define cr_request_checkpoint to an innocuous variant, in case <limits.h> declares cr_request_checkpoint.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cr_request_checkpoint innocuous_cr_request_checkpoint

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_checkpoint (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cr_request_checkpoint

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_request_checkpoint ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_cr_request_checkpoint || defined __stub___cr_request_checkpoint
choke me
#endif

int
main ()
{
return cr_request_checkpoint ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_cr_request_checkpoint_cr="no"
else
  LIBS_save="$LIBS"
             LIBS="$LIBS -lcr"
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define cr_request_checkpoint to an innocuous variant, in case <limits.h> declares cr_request_checkpoint.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cr_request_checkpoint innocuous_cr_request_checkpoint

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_checkpoint (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cr_request_checkpoint

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cr_request_checkpoint ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_cr_request_checkpoint || defined __stub___cr_request_checkpoint
choke me
#endif

int
main ()
{
return cr_request_checkpoint ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_lib_cr_request_checkpoint_cr="yes"
else
  ompi_cv_func_lib_cr_request_checkpoint_cr="not found"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_lib_cr_request_checkpoint_cr" >&5
$as_echo "$ompi_cv_func_lib_cr_request_checkpoint_cr" >&6; }
    if test "x$ompi_cv_func_lib_cr_request_checkpoint_cr" = x""yes; then :
  LIBS="$LIBS -lcr"
fi

    # see if we actually have cr_request_checkpoint.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lcr if we decided we needed it above
    for ac_func in cr_request_checkpoint
do :
  ac_fn_c_check_func "$LINENO" "cr_request_checkpoint" "ac_cv_func_cr_request_checkpoint"
if test "x$ac_cv_func_cr_request_checkpoint" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CR_REQUEST_CHECKPOINT 1
_ACEOF
 crs_blcr_have_cr_request_checkpoint=1

else
  crs_blcr_have_cr_request_checkpoint=0
                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&2;}

fi
done



cat >>confdefs.h <<_ACEOF
#define CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT $crs_blcr_have_cr_request_checkpoint
_ACEOF


           #
           # Look for the cr_checkpoint_info.requester member
           #
           crs_blcr_have_info_requester=0
           ac_fn_c_check_member "$LINENO" "struct cr_checkpoint_info" "requester" "ac_cv_member_struct_cr_checkpoint_info_requester" "#include <libcr.h>
"
if test "x$ac_cv_member_struct_cr_checkpoint_info_requester" = x""yes; then :
  crs_blcr_have_info_requester=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&2;}
fi


cat >>confdefs.h <<_ACEOF
#define CRS_BLCR_HAVE_INFO_REQUESTER $crs_blcr_have_info_requester
_ACEOF

           should_build=1
fi

    #
    # Reset the flags
    #
    CFLAGS="$crs_blcr_save_CFLAGS"
    CPPFLAGS="$crs_blcr_save_CPPFLAGS"
    LDFLAGS="$crs_blcr_save_LDFLAGS"
    LIBS="$crs_blcr_save_LIBS"

    #
    if test "$check_crs_blcr_good" = "yes"; then :







            should_build=1
else
  if test ! -z "$with_blcr" -a "$with_blcr" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BLCR support requested but not found.  Perhaps you need to specify the location of the BLCR libraries." >&5
$as_echo "$as_me: WARNING: BLCR support requested but not found.  Perhaps you need to specify the location of the BLCR libraries." >&2;}
                  as_fn_error "Aborting." "$LINENO" 5
fi

fi



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=crs
    component=blcr

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_crs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_crs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:blcr can compile" >&5
$as_echo_n "checking if MCA component crs:blcr can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "blcr" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"blcr\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "blcr" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"blcr\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components blcr"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_crs_blcr_DSO=1
else
  BUILD_crs_blcr_DSO=0
fi
     if test "$BUILD_crs_blcr_DSO" = "1"; then
  OMPI_BUILD_crs_blcr_DSO_TRUE=
  OMPI_BUILD_crs_blcr_DSO_FALSE='#'
else
  OMPI_BUILD_crs_blcr_DSO_TRUE='#'
  OMPI_BUILD_crs_blcr_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component crs:self (m4 configuration macro)"




    project=opal
    framework=crs
    component=self
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_crs" ; then
            if test "$DIRECT_crs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=crs
    component=self

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft_cr" = "1"; then :
  crs_self_good="yes"
else
  crs_self_good="no"
fi

    # We need the dlfcn.h so we can access dlsym and friends
    if test "$crs_self_good" = "yes"; then :
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  crs_self_good="yes"
else
  crs_self_good="no"
fi


fi

    # If they did not ask for dlopen support,
    # they probably do not want this component either
    if test "$crs_self_good" = "yes"; then :
  if test "$OPAL_ENABLE_DLOPEN_SUPPORT" = "1"; then :
  crs_self_good="yes"
else
  crs_self_good="no"
fi
fi

    if test "$crs_self_good" = "yes"; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=crs
    component=self

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_crs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_crs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:self can compile" >&5
$as_echo_n "checking if MCA component crs:self can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "self" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "self" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components self"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_crs_self_DSO=1
else
  BUILD_crs_self_DSO=0
fi
     if test "$BUILD_crs_self_DSO" = "1"; then
  OMPI_BUILD_crs_self_DSO_TRUE=
  OMPI_BUILD_crs_self_DSO_FALSE='#'
else
  OMPI_BUILD_crs_self_DSO_TRUE='#'
  OMPI_BUILD_crs_self_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/opal/mca/crs/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component crs:$component (need to configure)"




    project=opal
    framework=crs
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_crs" ; then
            if test "$DIRECT_crs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=crs
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/crs/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/crs/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=opal
    framework=crs
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_crs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_crs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:$component can compile" >&5
$as_echo_n "checking if MCA component crs:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_crs_ALL_COMPONENTS="$all_components"
    MCA_crs_STATIC_COMPONENTS="$static_components"
    MCA_crs_DSO_COMPONENTS="$dso_components"
    MCA_crs_STATIC_LTLIBS="$static_ltlibs"







    MCA_crs_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_crs_ALL_SUBDIRS="$MCA_crs_ALL_SUBDIRS mca/crs/$item"
    done



    MCA_crs_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_crs_STATIC_SUBDIRS="$MCA_crs_STATIC_SUBDIRS mca/crs/$item"
    done



    MCA_crs_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_crs_DSO_SUBDIRS="$MCA_crs_DSO_SUBDIRS mca/crs/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "crs" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_crs_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "installdirs" = "common" ; then
                              MCA_opal_FRAMEWORKS="installdirs $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/installdirs $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_installdirs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_installdirs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_installdirs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS installdirs"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/installdirs"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_installdirs_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_installdirs_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_installdirs_STATIC_SUBDIRS)"
                          fi
                          if test "installdirs" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/installdirs/libmca_installdirs.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_installdirs_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework installdirs"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "installdirs" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/installdirs/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework installdirs" >&5
$as_echo_n "checking for no configure components in framework installdirs... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework installdirs" >&5
$as_echo_n "checking for m4 configure components in framework installdirs... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: env, config, windows" >&5
$as_echo "env, config, windows" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component installdirs:env (m4 configuration macro)"




    project=opal
    framework=installdirs
    component=env
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_installdirs" ; then
            if test "$DIRECT_installdirs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component installdirs:env compile mode" >&5
$as_echo_n "checking for MCA component installdirs:env compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=installdirs
    component=env

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_installdirs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_installdirs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:env can compile" >&5
$as_echo_n "checking if MCA component installdirs:env can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "env" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_installdirs" ; then
        if test "$DIRECT_installdirs" = "env" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components env"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_installdirs_env_DSO=1
else
  BUILD_installdirs_env_DSO=0
fi
     if test "$BUILD_installdirs_env_DSO" = "1"; then
  OMPI_BUILD_installdirs_env_DSO_TRUE=
  OMPI_BUILD_installdirs_env_DSO_FALSE='#'
else
  OMPI_BUILD_installdirs_env_DSO_TRUE='#'
  OMPI_BUILD_installdirs_env_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component installdirs:config (m4 configuration macro)"




    project=opal
    framework=installdirs
    component=config
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_installdirs" ; then
            if test "$DIRECT_installdirs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component installdirs:config compile mode" >&5
$as_echo_n "checking for MCA component installdirs:config compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    ac_config_files="$ac_config_files opal/mca/installdirs/config/install_dirs.h"



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=installdirs
    component=config

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_installdirs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_installdirs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:config can compile" >&5
$as_echo_n "checking if MCA component installdirs:config can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "config" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_installdirs" ; then
        if test "$DIRECT_installdirs" = "config" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components config"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_installdirs_config_DSO=1
else
  BUILD_installdirs_config_DSO=0
fi
     if test "$BUILD_installdirs_config_DSO" = "1"; then
  OMPI_BUILD_installdirs_config_DSO_TRUE=
  OMPI_BUILD_installdirs_config_DSO_FALSE='#'
else
  OMPI_BUILD_installdirs_config_DSO_TRUE='#'
  OMPI_BUILD_installdirs_config_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component installdirs:windows (m4 configuration macro)"




    project=opal
    framework=installdirs
    component=windows
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_installdirs" ; then
            if test "$DIRECT_installdirs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component installdirs:windows compile mode" >&5
$as_echo_n "checking for MCA component installdirs:windows compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # check for RegOpenKeyEx allowing access to the Windows
    # registry. We should first check that the function is defined,
    # and then check for it's presence in the kernel32 library.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working RegOpenKeyEx" >&5
$as_echo_n "checking for working RegOpenKeyEx... " >&6; }
    if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <windows.h>
int main( int argc, char** argv ) {
    RegOpenKeyEx( HKEY_CURRENT_USER, "Software\\Open MPI", 0, KEY_READ, NULL);
    return 0; }
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
         should_build=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         should_build=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <windows.h>
int main( int argc, char** argv ) {
    RegOpenKeyEx( HKEY_CURRENT_USER, "Software\\Open MPI", 0, KEY_READ, NULL);
    return 0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
         should_build=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         should_build=0
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=installdirs
    component=windows

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_installdirs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_installdirs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:windows can compile" >&5
$as_echo_n "checking if MCA component installdirs:windows can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "windows" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_installdirs" ; then
        if test "$DIRECT_installdirs" = "windows" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components windows"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_installdirs_windows_DSO=1
else
  BUILD_installdirs_windows_DSO=0
fi
     if test "$BUILD_installdirs_windows_DSO" = "1"; then
  OMPI_BUILD_installdirs_windows_DSO_TRUE=
  OMPI_BUILD_installdirs_windows_DSO_FALSE='#'
else
  OMPI_BUILD_installdirs_windows_DSO_TRUE='#'
  OMPI_BUILD_installdirs_windows_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/opal/mca/installdirs/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component installdirs:$component (need to configure)"




    project=opal
    framework=installdirs
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_installdirs" ; then
            if test "$DIRECT_installdirs" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=installdirs
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_installdirs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/installdirs/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/installdirs/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=opal
    framework=installdirs
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_installdirs" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_installdirs" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:$component can compile" >&5
$as_echo_n "checking if MCA component installdirs:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_installdirs" ; then
        if test "$DIRECT_installdirs" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_installdirs_ALL_COMPONENTS="$all_components"
    MCA_installdirs_STATIC_COMPONENTS="$static_components"
    MCA_installdirs_DSO_COMPONENTS="$dso_components"
    MCA_installdirs_STATIC_LTLIBS="$static_ltlibs"







    MCA_installdirs_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_installdirs_ALL_SUBDIRS="$MCA_installdirs_ALL_SUBDIRS mca/installdirs/$item"
    done



    MCA_installdirs_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_installdirs_STATIC_SUBDIRS="$MCA_installdirs_STATIC_SUBDIRS mca/installdirs/$item"
    done



    MCA_installdirs_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_installdirs_DSO_SUBDIRS="$MCA_installdirs_DSO_SUBDIRS mca/installdirs/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "installdirs" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_installdirs_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "maffinity" = "common" ; then
                              MCA_opal_FRAMEWORKS="maffinity $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/maffinity $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_maffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_maffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_maffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS maffinity"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/maffinity"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_maffinity_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_maffinity_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_maffinity_STATIC_SUBDIRS)"
                          fi
                          if test "maffinity" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/maffinity/libmca_maffinity.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_maffinity_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework maffinity"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "maffinity" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/maffinity/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework maffinity" >&5
$as_echo_n "checking for no configure components in framework maffinity... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: first_use" >&5
$as_echo "first_use" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework maffinity" >&5
$as_echo_n "checking for m4 configure components in framework maffinity... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libnuma" >&5
$as_echo "libnuma" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component maffinity:first_use (no configuration)"




    project=opal
    framework=maffinity
    component=first_use
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_maffinity" ; then
            if test "$DIRECT_maffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=maffinity
    component=first_use

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_maffinity" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=maffinity
    component=first_use

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_maffinity" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_maffinity" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component maffinity:first_use can compile" >&5
$as_echo_n "checking if MCA component maffinity:first_use can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "first_use" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"first_use\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_maffinity" ; then
        if test "$DIRECT_maffinity" = "first_use" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"first_use\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components first_use"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_maffinity_first_use_DSO=1
    else
        BUILD_maffinity_first_use_DSO=0
    fi
     if test "$BUILD_maffinity_first_use_DSO" = "1"; then
  OMPI_BUILD_maffinity_first_use_DSO_TRUE=
  OMPI_BUILD_maffinity_first_use_DSO_FALSE='#'
else
  OMPI_BUILD_maffinity_first_use_DSO_TRUE='#'
  OMPI_BUILD_maffinity_first_use_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component maffinity:libnuma (m4 configuration macro)"




    project=opal
    framework=maffinity
    component=libnuma
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_maffinity" ; then
            if test "$DIRECT_maffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=maffinity
    component=libnuma

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_maffinity" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-libnuma was given.
if test "${with_libnuma+set}" = set; then :
  withval=$with_libnuma;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libnuma value" >&5
$as_echo_n "checking --with-libnuma value... " >&6; }
    if test "$with_libnuma" = "yes" -o "$with_libnuma" = "no" -o "x$with_libnuma" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_libnuma"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libnuma not found" >&5
$as_echo "$as_me: WARNING: Directory $with_libnuma not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_libnuma/include/numa.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libnuma/include/numa.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_libnuma/include/numa.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libnuma)" >&5
$as_echo "sanity check ok ($with_libnuma)" >&6; }

fi


fi


fi


# Check whether --with-libnuma-libdir was given.
if test "${with_libnuma_libdir+set}" = set; then :
  withval=$with_libnuma_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libnuma-libdir value" >&5
$as_echo_n "checking --with-libnuma-libdir value... " >&6; }
    if test "$with_libnuma_libdir" = "yes" -o "$with_libnuma_libdir" = "no" -o "x$with_libnuma_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_libnuma_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libnuma_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_libnuma_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_libnuma_libdir/libnuma* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libnuma_libdir/libnuma* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_libnuma_libdir/libnuma* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libnuma_libdir)" >&5
$as_echo "sanity check ok ($with_libnuma_libdir)" >&6; }

fi


fi


fi


    if test ! -z "$with_libnuma" -a "$with_libnuma" != "yes"; then :
  maffinity_libnuma_dir="$with_libnuma"
fi
    if test ! -z "$with_libnuma_libdir" -a "$with_libnuma_libdir" != "yes"; then :
  maffinity_libnuma_libdir="$with_libnuma_libdir"
fi

    if test "$with_libnuma" = "no"; then :
  maffinity_libnuma_happy="no"
else
  maffinity_libnuma_happy="yes"
fi

    if test "$maffinity_libnuma_happy" = "yes"; then :

    ompi_check_package_maffinity_libnuma_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_maffinity_libnuma_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_maffinity_libnuma_save_LIBS="$LIBS"

    ompi_check_package_maffinity_libnuma_orig_CPPFLAGS="$maffinity_libnuma_CPPFLAGS"
    ompi_check_package_maffinity_libnuma_orig_LDFLAGS="$maffinity_libnuma_LDFLAGS"
    ompi_check_package_maffinity_libnuma_orig_LIBS="$maffinity_libnuma_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_numa_h

    ompi_check_package_header_happy="no"
    if test "$maffinity_libnuma_dir" = "/usr" -o "$maffinity_libnuma_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default"
if test "x$ac_cv_header_numa_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_numa_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$maffinity_libnuma_dir" != ""; then :
  maffinity_libnuma_CPPFLAGS="$maffinity_libnuma_CPPFLAGS -I$maffinity_libnuma_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$maffinity_libnuma_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default"
if test "x$ac_cv_header_numa_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_numa_numa_available
    ompi_check_package_lib_happy="no"
    if test "$maffinity_libnuma_libdir" != ""; then :
   # libdir was specified - search only there
           maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$maffinity_libnuma_libdir"
           LDFLAGS="$LDFLAGS -L$maffinity_libnuma_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                  maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                  unset ac_cv_lib_numa_numa_available
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$maffinity_libnuma_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                     maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                     unset ac_cv_lib_numa_numa_available
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  maffinity_libnuma_LIBS="-lnuma "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_numa_numa_available
    ompi_check_package_lib_happy="no"
    if test "$maffinity_libnuma_libdir" != ""; then :
   # libdir was specified - search only there
           maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$maffinity_libnuma_libdir"
           LDFLAGS="$LDFLAGS -L$maffinity_libnuma_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                  maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                  unset ac_cv_lib_numa_numa_available
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$maffinity_libnuma_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                     maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                     unset ac_cv_lib_numa_numa_available
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_numa_available=yes
else
  ac_cv_lib_numa_numa_available=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  maffinity_libnuma_LIBS="-lnuma "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  maffinity_libnuma_happy="yes"
else
  maffinity_libnuma_CPPFLAGS="$ompi_check_package_maffinity_libnuma_orig_CPPFLAGS"
           maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
           maffinity_libnuma_LIBS="$ompi_check_package_maffinity_libnuma_orig_LIBS"
           maffinity_libnuma_happy="no"
fi

    CPPFLAGS="$ompi_check_package_maffinity_libnuma_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
    LIBS="$ompi_check_package_maffinity_libnuma_save_LIBS"

fi

    if test "$maffinity_libnuma_happy" = "yes"; then :
  maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS"
           maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS"
           ac_fn_c_check_decl "$LINENO" "MPOL_MF_MOVE" "ac_cv_have_decl_MPOL_MF_MOVE" "$ac_includes_default"
if test "x$ac_cv_have_decl_MPOL_MF_MOVE" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_MPOL_MF_MOVE $ac_have_decl
_ACEOF

                               should_build=1
else
  should_build=0
fi

    # sanity check
    if test "$maffinity_libnuma_happy" = "no"; then :
  if test "$with_libnuma" != "no" -a ! -z "$with_libnuma"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: maffinity:libnuma requested but not found" >&5
$as_echo "$as_me: WARNING: maffinity:libnuma requested but not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    # substitute in the things needed to build libnuma







fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=maffinity
    component=libnuma

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_maffinity" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_maffinity" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component maffinity:libnuma can compile" >&5
$as_echo_n "checking if MCA component maffinity:libnuma can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "libnuma" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_maffinity" ; then
        if test "$DIRECT_maffinity" = "libnuma" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components libnuma"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_maffinity_libnuma_DSO=1
else
  BUILD_maffinity_libnuma_DSO=0
fi
     if test "$BUILD_maffinity_libnuma_DSO" = "1"; then
  OMPI_BUILD_maffinity_libnuma_DSO_TRUE=
  OMPI_BUILD_maffinity_libnuma_DSO_FALSE='#'
else
  OMPI_BUILD_maffinity_libnuma_DSO_TRUE='#'
  OMPI_BUILD_maffinity_libnuma_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/opal/mca/maffinity/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component maffinity:$component (need to configure)"




    project=opal
    framework=maffinity
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_maffinity" ; then
            if test "$DIRECT_maffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=opal
    framework=maffinity
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_maffinity" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/maffinity/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/maffinity/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=opal
    framework=maffinity
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_maffinity" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_maffinity" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component maffinity:$component can compile" >&5
$as_echo_n "checking if MCA component maffinity:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_maffinity" ; then
        if test "$DIRECT_maffinity" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_maffinity_ALL_COMPONENTS="$all_components"
    MCA_maffinity_STATIC_COMPONENTS="$static_components"
    MCA_maffinity_DSO_COMPONENTS="$dso_components"
    MCA_maffinity_STATIC_LTLIBS="$static_ltlibs"







    MCA_maffinity_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_maffinity_ALL_SUBDIRS="$MCA_maffinity_ALL_SUBDIRS mca/maffinity/$item"
    done



    MCA_maffinity_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_maffinity_STATIC_SUBDIRS="$MCA_maffinity_STATIC_SUBDIRS mca/maffinity/$item"
    done



    MCA_maffinity_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_maffinity_DSO_SUBDIRS="$MCA_maffinity_DSO_SUBDIRS mca/maffinity/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "maffinity" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_maffinity_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "memchecker" = "common" ; then
                              MCA_opal_FRAMEWORKS="memchecker $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/memchecker $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memchecker_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memchecker_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memchecker_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memchecker"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memchecker"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memchecker_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memchecker_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memchecker_STATIC_SUBDIRS)"
                          fi
                          if test "memchecker" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memchecker/libmca_memchecker.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memchecker_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Pre-configuring the framework memchecker"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-memchecker was specified" >&5
$as_echo_n "checking if --enable-memchecker was specified... " >&6; }
    # Check whether --enable-memchecker was given.
if test "${enable_memchecker+set}" = set; then :
  enableval=$enable_memchecker;
fi

    if test "$enable_memchecker" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        WANT_MEMCHECKER=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (adding \"memchecker\" to --enable-mca-no-build list)" >&5
$as_echo "no (adding \"memchecker\" to --enable-mca-no-build list)" >&6; }
        WANT_MEMCHECKER=0

        # Setting this environment variable causes
        # MCA_COMONENT_BUILD_CHECK (in ompi_mca.m4, invoked by
        # MCA_CONFIGURE_FRAMEWORK, below) to rule that the component
        # should not be built.  It is effectively the same as adding
        # "memchecker" to the --enable-mca-no-build list.
        DISABLE_memchecker=1
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_MEMCHECKER $WANT_MEMCHECKER
_ACEOF

     if test "$WANT_MEMCHECKER" = "1"; then
  OMPI_WANT_MEMCHECKER_TRUE=
  OMPI_WANT_MEMCHECKER_FALSE='#'
else
  OMPI_WANT_MEMCHECKER_TRUE='#'
  OMPI_WANT_MEMCHECKER_FALSE=
fi


    # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework memchecker"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "memchecker" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/memchecker/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memchecker" >&5
$as_echo_n "checking for no configure components in framework memchecker... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memchecker" >&5
$as_echo_n "checking for m4 configure components in framework memchecker... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind" >&5
$as_echo "valgrind" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component memchecker:valgrind (m4 configuration macro)"




    project=opal
    framework=memchecker
    component=valgrind
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memchecker" ; then
            if test "$DIRECT_memchecker" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memchecker:valgrind compile mode" >&5
$as_echo_n "checking for MCA component memchecker:valgrind compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



# Check whether --with-valgrind was given.
if test "${with_valgrind+set}" = set; then :
  withval=$with_valgrind;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-valgrind value" >&5
$as_echo_n "checking --with-valgrind value... " >&6; }
    if test "$with_valgrind" = "yes" -o "$with_valgrind" = "no" -o "x$with_valgrind" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_valgrind"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_valgrind not found" >&5
$as_echo "$as_me: WARNING: Directory $with_valgrind not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_valgrind/include/valgrind/valgrind.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_valgrind/include/valgrind/valgrind.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_valgrind/include/valgrind/valgrind.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_valgrind)" >&5
$as_echo "sanity check ok ($with_valgrind)" >&6; }

fi


fi


fi


    opal_memchecker_valgrind_CPPFLAGS=
    opal_memchecker_valgrind_save_CPPFLAGS="$CPPFLAGS"
    opal_memchecker_valgrind_happy=no
    if test "$with_valgrind" != "no"; then :
  if test ! -z "$with_valgrind" -a "$with_valgrind" != "yes"; then :
  opal_memchecker_valgrind_CPPFLAGS="-I$with_valgrind/include"
                  # We need this -I to stay in CPPFLAGS when we're done
                  CPPFLAGS="$CPPFLAGS -I$with_valgrind/include"
                  opal_memchecker_valgrind_save_CPPFLAGS=$CPPFLAGS
fi
           for ac_header in valgrind/valgrind.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VALGRIND_VALGRIND_H 1
_ACEOF
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE" >&5
$as_echo_n "checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE... " >&6; }
                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "valgrind/memcheck.h"

int
main ()
{
char buffer = 0xff;
                       VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer));
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                      opal_memchecker_valgrind_happy=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                      as_fn_error "Need Valgrind version 3.2.0 or later. Can not build component." "$LINENO" 5
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling; assume yes...?" >&5
$as_echo "cross-compiling; assume yes...?" >&6; }
                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&5
$as_echo "$as_me: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&2;}
                      opal_memchecker_valgrind_happy=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext,

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: valgrind.h not found" >&5
$as_echo "$as_me: WARNING: valgrind.h not found" >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot compile this component" >&5
$as_echo "$as_me: WARNING: Cannot compile this component" >&2;}
fi

done

fi
    CPPFLAGS="$opal_memchecker_valgrind_save_CPPFLAGS"

    if test "$opal_memchecker_valgrind_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi




    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=memchecker
    component=valgrind

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memchecker" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memchecker" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memchecker:valgrind can compile" >&5
$as_echo_n "checking if MCA component memchecker:valgrind can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memchecker" = "valgrind" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"valgrind\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_memchecker" ; then
        if test "$DIRECT_memchecker" = "valgrind" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"valgrind\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components valgrind"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_memchecker_valgrind_DSO=1
else
  BUILD_memchecker_valgrind_DSO=0
fi
     if test "$BUILD_memchecker_valgrind_DSO" = "1"; then
  OMPI_BUILD_memchecker_valgrind_DSO_TRUE=
  OMPI_BUILD_memchecker_valgrind_DSO_FALSE='#'
else
  OMPI_BUILD_memchecker_valgrind_DSO_TRUE='#'
  OMPI_BUILD_memchecker_valgrind_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_memchecker_ALL_COMPONENTS="$all_components"
    MCA_memchecker_STATIC_COMPONENTS="$static_components"
    MCA_memchecker_DSO_COMPONENTS="$dso_components"
    MCA_memchecker_STATIC_LTLIBS="$static_ltlibs"







    MCA_memchecker_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_memchecker_ALL_SUBDIRS="$MCA_memchecker_ALL_SUBDIRS mca/memchecker/$item"
    done



    MCA_memchecker_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_memchecker_STATIC_SUBDIRS="$MCA_memchecker_STATIC_SUBDIRS mca/memchecker/$item"
    done



    MCA_memchecker_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_memchecker_DSO_SUBDIRS="$MCA_memchecker_DSO_SUBDIRS mca/memchecker/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "memchecker" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_memchecker_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real



cat >>confdefs.h <<_ACEOF
#define OMPI_MEMCHECKER_HAVE_COMPONENT $memchecker_base_found
_ACEOF

# common has to go up front
                          if test "memcpy" = "common" ; then
                              MCA_opal_FRAMEWORKS="memcpy $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/memcpy $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memcpy_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memcpy_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memcpy_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memcpy"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memcpy"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memcpy_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memcpy_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memcpy_STATIC_SUBDIRS)"
                          fi
                          if test "memcpy" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memcpy/libmca_memcpy.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memcpy_STATIC_LTLIBS)"

        memcpy_base_include=

        # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework memcpy"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "memcpy" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/memcpy/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memcpy" >&5
$as_echo_n "checking for no configure components in framework memcpy... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memcpy" >&5
$as_echo_n "checking for m4 configure components in framework memcpy... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_memcpy_ALL_COMPONENTS="$all_components"
    MCA_memcpy_STATIC_COMPONENTS="$static_components"
    MCA_memcpy_DSO_COMPONENTS="$dso_components"
    MCA_memcpy_STATIC_LTLIBS="$static_ltlibs"







    MCA_memcpy_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_memcpy_ALL_SUBDIRS="$MCA_memcpy_ALL_SUBDIRS mca/memcpy/$item"
    done



    MCA_memcpy_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_memcpy_STATIC_SUBDIRS="$MCA_memcpy_STATIC_SUBDIRS mca/memcpy/$item"
    done



    MCA_memcpy_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_memcpy_DSO_SUBDIRS="$MCA_memcpy_DSO_SUBDIRS mca/memcpy/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "memcpy" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_memcpy_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real


        # someone should have set this...
        if test "$memcpy_base_include" = "" ; then
            memcpy_base_include="base/memcpy_base_default.h"
        fi


cat >>confdefs.h <<_ACEOF
#define MCA_memcpy_IMPLEMENTATION_HEADER "opal/mca/memcpy/$memcpy_base_include"
_ACEOF

# common has to go up front
                          if test "memory" = "common" ; then
                              MCA_opal_FRAMEWORKS="memory $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/memory $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memory_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memory_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memory_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memory"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memory"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memory_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memory_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memory_STATIC_SUBDIRS)"
                          fi
                          if test "memory" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memory/libmca_memory.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memory_STATIC_LTLIBS)"


# Check whether --with-memory-manager was given.
if test "${with_memory_manager+set}" = set; then :
  withval=$with_memory_manager;
fi


        memory_base_found=0

        # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework memory"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "memory" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/memory/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memory" >&5
$as_echo_n "checking for no configure components in framework memory... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memory" >&5
$as_echo_n "checking for m4 configure components in framework memory... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux, malloc_solaris" >&5
$as_echo "linux, malloc_solaris" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component memory:linux (m4 configuration macro)"




    project=opal
    framework=memory
    component=linux
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memory" ; then
            if test "$DIRECT_memory" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memory:linux compile mode" >&5
$as_echo_n "checking for MCA component memory:linux compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in memory_linux_ptmalloc2_happy memory_linux_ummu_happy memory_linux_requested icc_major_ver icc_minor_ver memory_linux_mmap memory_linux_munmap memory_linux_LIBS_SAVE; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"memory_linux_ptmalloc2_happy memory_linux_ummu_happy memory_linux_requested icc_major_ver icc_minor_ver memory_linux_mmap memory_linux_munmap memory_linux_LIBS_SAVE\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # Only allow this component to build on Linux-based systems

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
$as_echo_n "checking operating system... " >&6; }
    case $host in
    *linux*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host -- supported" >&5
$as_echo "$host -- supported" >&6; }
        memory_linux_ptmalloc2_happy=yes
        memory_linux_ummu_happy=yes
        ;;
    *)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host -- unsupported" >&5
$as_echo "$host -- unsupported" >&6; }
        memory_linux_ptmalloc2_happy=no
        memory_linux_ummu_happy=no
        ;;
    esac

    if test "$with_memory_manager" = "linux"; then :
  memory_linux_ptmalloc2_happy=yes
           memory_linux_ummu_happy=yes
           memory_linux_requested=1
else
  memory_linux_requested=0
           if test "$with_memory_manager" = ""; then :
  memory_linux_ptmalloc2_happy=yes
                  memory_linux_ummu_happy=yes
else
  memory_linux_ptmalloc2_happy=yes
                  memory_linux_ummu_happy=no
fi
fi

    ######################################################################
    # ptmalloc2
    ######################################################################

    # Per ticket #227, Intel 9.0 v20051201 on ia64 with optimization
    # of -O2 or higher will bork linux in strange in mysterious ways.
    # Doh!  So if the compiler vendor is intel and we're on an ia64
    # box, run "icc --version" and snarf the version string.  If it's
    # 9.0 and the version is <= 20051201, then disable ptmalloc2.
    # Executive decision: ignore optimization levels (even though -O1
    # and -O0 seem to work).  The upgrade to 9.1 is free, so that's a
    # better path than trying to make a much more complicated test
    # here.

    if test "$memory_linux_ptmalloc2_happy" = yes; then :
  case $host in
           ia64-*)
                if test "$ompi_c_vendor" = "intel"; then :
  # check for v9.0 <= 20051201
                       icc_major_ver="`$CC --version | head -n 1 | awk '{ print $3 }'`"
                       icc_minor_ver="`$CC --version | head -n 1 | awk '{ print $4 }'`"
                       if test "$icc_major_ver" = "9.0" -a "`expr $icc_minor_ver \<= 20051201`" = "1"; then :
  memory_linux_ptmalloc2_happy=no
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&5
$as_echo "$as_me: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&2;}
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&5
$as_echo "$as_me: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&2;}
                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling ptmalloc2" >&5
$as_echo "$as_me: WARNING: *** Disabling ptmalloc2" >&2;}
fi
fi
                ;;
           esac
fi

    if test "$memory_linux_ptmalloc2_happy" = yes; then :
  # check for malloc.h
           ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
if test "x$ac_cv_header_malloc_h" = x""yes; then :
  memory_linux_ptmalloc2_happy=yes
else
  memory_linux_ptmalloc2_happy=no
fi


fi

    if test "$memory_linux_ptmalloc2_happy" = yes; then :
  # check for init hook symbol
           ac_fn_c_check_decl "$LINENO" "__malloc_initialize_hook" "ac_cv_have_decl___malloc_initialize_hook" "$ac_includes_default
                          #include <malloc.h>
"
if test "x$ac_cv_have_decl___malloc_initialize_hook" = x""yes; then :
  memory_linux_ptmalloc2_happy=yes
else
  memory_linux_ptmalloc2_happy=no
fi

fi

    #
    # See if we have sbrk prototyped
    #
    if test "$memory_linux_ptmalloc2_happy" = yes; then :
  ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SBRK $ac_have_decl
_ACEOF

fi

    #
    # Figure out how we're going to call mmap/munmap for real
    #
    if test "$memory_linux_ptmalloc2_happy" = yes; then :
  memory_linux_mmap=0
           memory_linux_munmap=1

           # it's nearly impossible to call mmap from syscall(), so
           # only go this route if we can't get at munmap any other
           # way.
           ac_fn_c_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
if test "x$ac_cv_header_syscall_h" = x""yes; then :
  for ac_func in syscall
do :
  ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
if test "x$ac_cv_func_syscall" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYSCALL 1
_ACEOF

else
  memory_linux_munmap=0
fi
done

fi



           # Always look for __munmap and __mmap
           for ac_func in __munmap
do :
  ac_fn_c_check_func "$LINENO" "__munmap" "ac_cv_func___munmap"
if test "x$ac_cv_func___munmap" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___MUNMAP 1
_ACEOF
 memory_linux_mmap=1
fi
done

           for ac_func in __mmap
do :
  ac_fn_c_check_func "$LINENO" "__mmap" "ac_cv_func___mmap"
if test "x$ac_cv_func___mmap" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___MMAP 1
_ACEOF

fi
done


           # only allow dlsym (and therefore add -ldl) if we
           # really need to
           if test "$memory_linux_mmap" = "0"; then :
  memory_linux_LIBS_SAVE="$LIBS"
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
$as_echo_n "checking for dlsym in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlsym ();
int
main ()
{
return dlsym ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlsym=yes
else
  ac_cv_lib_dl_dlsym=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
  LIBS="$LIBS -ldl"
                                memory_linux_LIBS="-ldl"
                                memory_linux_mmap=1
fi

                  for ac_func in dlsym
do :
  ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
if test "x$ac_cv_func_dlsym" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLSYM 1
_ACEOF

fi
done

                  LIBS="$memory_linux_LIBS_SAVE"
fi

           if test "$memory_linux_mmap" = "0" -a "$memory_linux_munmap" = "0"; then :
  memory_linux_ptmalloc2_happy=no
fi
fi

    # If all is good, save the extra libs for the wrapper
    if test "$memory_linux_ptmalloc2_happy" = yes; then :
  memory_linux_WRAPPER_EXTRA_LIBS="$memory_linux_LIBS"
           value=1
else
  value=0
fi

cat >>confdefs.h <<_ACEOF
#define MEMORY_LINUX_PTMALLOC2 $value
_ACEOF

     if test "$memory_linux_ptmalloc2_happy" = yes; then
  MEMORY_LINUX_PTMALLOC2_TRUE=
  MEMORY_LINUX_PTMALLOC2_FALSE='#'
else
  MEMORY_LINUX_PTMALLOC2_TRUE='#'
  MEMORY_LINUX_PTMALLOC2_FALSE=
fi


    ######################################################################
    # ummunotify
    ######################################################################

    # Check for the relevant header
    if test "$memory_linux_ummu_happy" = yes; then :
  # check for linux/ummunotify.h
           ac_fn_c_check_header_mongrel "$LINENO" "linux/ummunotify.h" "ac_cv_header_linux_ummunotify_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_ummunotify_h" = x""yes; then :
  memory_linux_ummu_happy=yes
else
  memory_linux_ummu_happy=no
fi


fi

    # <stropts.h> has the Linux declaration for ioctl
    for ac_header in stropts.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_stropts_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STROPTS_H 1
_ACEOF

fi

done


    # If all is good, set the header file that we want the rest of the
    # code base to use
    if test "$memory_linux_ummu_happy" = yes; then :
  memory_base_include="linux/public.h"
           value=1
else
  value=0
fi

cat >>confdefs.h <<_ACEOF
#define MEMORY_LINUX_UMMUNOTIFY $value
_ACEOF

     if test "$memory_linux_ummu_happy" = yes; then
  MEMORY_LINUX_UMMUNOTIFY_TRUE=
  MEMORY_LINUX_UMMUNOTIFY_FALSE='#'
else
  MEMORY_LINUX_UMMUNOTIFY_TRUE='#'
  MEMORY_LINUX_UMMUNOTIFY_FALSE=
fi


    ######################################################################
    # post processing
    ######################################################################

    if test "$memory_malloc_hooks_requested" = 1 -a \
                "$memory_linux_ptmalloc2_happy" = no -a \
                "$memory_linux_ummu_happy" = no; then :
  as_fn_error "linux memory management requested but neither ptmalloc2 nor ummunotify are available.  Aborting." "$LINENO" 5
fi


    if test "$memory_linux_ptmalloc2_happy" = yes -o \
                "$memory_linux_ummu_happy" = yes; then :
  memory_base_found=1
           should_build=1
else
  memory_base_found=0
           memory_base_include=
           should_build=0
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=memory
    component=linux

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memory" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memory" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memory:linux can compile" >&5
$as_echo_n "checking if MCA component memory:linux can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "linux" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_memory" ; then
        if test "$DIRECT_memory" = "linux" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components linux"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_memory_linux_DSO=1
else
  BUILD_memory_linux_DSO=0
fi
     if test "$BUILD_memory_linux_DSO" = "1"; then
  OMPI_BUILD_memory_linux_DSO_TRUE=
  OMPI_BUILD_memory_linux_DSO_FALSE='#'
else
  OMPI_BUILD_memory_linux_DSO_TRUE='#'
  OMPI_BUILD_memory_linux_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component memory:malloc_solaris (m4 configuration macro)"




    project=opal
    framework=memory
    component=malloc_solaris
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memory" ; then
            if test "$DIRECT_memory" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memory:malloc_solaris compile mode" >&5
$as_echo_n "checking for MCA component memory:malloc_solaris compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in memory_malloc_solaris_happy memory_malloc_solaris_should_use memory_malloc_solaris_munmap memory_alloc_solaris_legacy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"memory_malloc_solaris_happy memory_malloc_solaris_should_use memory_malloc_solaris_munmap memory_alloc_solaris_legacy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris" >&5
$as_echo_n "checking for Solaris... " >&6; }

    case "$host" in
    *solaris*)

        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

        if test "$with_memory_manager" = "malloc_solaris"; then :
  memory_malloc_solaris_happy="yes"
                memory_malloc_solaris_should_use=1
else
  memory_malloc_solaris_should_use=0
                if test "$with_memory_manager" = ""; then :
  memory_malloc_solaris_happy="yes"
else
  memory_malloc_solaris_happy="no"
fi
fi

        if test "$memory_malloc_solaris_happy" = "yes"; then :
  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
if test "x$ac_cv_header_malloc_h" = x""yes; then :

else
  memory_malloc_solaris_happy="no"
fi


fi

        if test "$memory_malloc_solaris_happy" = "yes"; then :
  memory_malloc_solaris_munmap=0

              ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
  for ac_func in syscall
do :
  ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
if test "x$ac_cv_func_syscall" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYSCALL 1
_ACEOF
 memory_malloc_solaris_munmap=1
fi
done

fi



              for ac_func in __munmap
do :
  ac_fn_c_check_func "$LINENO" "__munmap" "ac_cv_func___munmap"
if test "x$ac_cv_func___munmap" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___MUNMAP 1
_ACEOF
 memory_malloc_solaris_munmap=1
fi
done


              # only allow dlsym (and therefore add -ldl) if we
              # really need to
              if test "$memory_malloc_solaris_munmap" = "0"; then :
  memory_malloc_solaris_LIBS_SAVE="$LIBS"
                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
$as_echo_n "checking for dlsym in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlsym ();
int
main ()
{
return dlsym ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlsym=yes
else
  ac_cv_lib_dl_dlsym=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
  memory_malloc_solaris_LIBS="-ldl"
                                     memory_malloc_solaris_munmap=1
fi

                      for ac_func in dlsym
do :
  ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
if test "x$ac_cv_func_dlsym" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLSYM 1
_ACEOF

fi
done

                      LIBS="$memory_malloc_solaris_LIBS_SAVE"
fi

              if test "$memory_malloc_solaris_munmap" = "0"; then :
  memory_malloc_solaris_happy="no"
fi
fi

        # There is a difference in the munmap prototypes for different
        # Solaris versions.  So determine whether we are to use Legacy
        # S10 or later prototypes.
        memory_alloc_solaris_legacy=0
        if test "$memory_malloc_solaris_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris Legacy MUNMAP" >&5
$as_echo_n "checking for Solaris Legacy MUNMAP... " >&6; }
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/mman.h>
int
main ()
{
char *addr;
                                                    extern int munmap(caddr_t addr, size_t len);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  memory_alloc_solaris_legacy=1
                                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define USE_SOLARIS_LEGACY_MUNMAP_PROTOTYPE $memory_alloc_solaris_legacy
_ACEOF


fi

        if test "$memory_malloc_solaris_happy" = "yes"; then :
  memory_malloc_solaris_WRAPPER_EXTRA_LIBS="$memory_malloc_solaris_LIBS"
fi

        if test "$memory_malloc_solaris_happy" = "no" -a \
                "$memory_malloc_solaris_should_use" = "1"; then :
  as_fn_error "malloc_solaris memory management requested but not available.  Aborting." "$LINENO" 5
fi



    ;;
    *)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test "$with_memory_manager" = "malloc_solaris"; then :
  memory_malloc_solaris_happy="no"
                memory_malloc_solaris_should_use=0
fi
    ;;
    esac

    if test "$memory_malloc_solaris_happy" = "yes"; then :
  memory_base_found=1
           should_build=1
else
  should_build=0
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=memory
    component=malloc_solaris

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memory" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memory" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memory:malloc_solaris can compile" >&5
$as_echo_n "checking if MCA component memory:malloc_solaris can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "malloc_solaris" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_memory" ; then
        if test "$DIRECT_memory" = "malloc_solaris" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components malloc_solaris"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_memory_malloc_solaris_DSO=1
else
  BUILD_memory_malloc_solaris_DSO=0
fi
     if test "$BUILD_memory_malloc_solaris_DSO" = "1"; then
  OMPI_BUILD_memory_malloc_solaris_DSO_TRUE=
  OMPI_BUILD_memory_malloc_solaris_DSO_FALSE='#'
else
  OMPI_BUILD_memory_malloc_solaris_DSO_TRUE='#'
  OMPI_BUILD_memory_malloc_solaris_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_memory_ALL_COMPONENTS="$all_components"
    MCA_memory_STATIC_COMPONENTS="$static_components"
    MCA_memory_DSO_COMPONENTS="$dso_components"
    MCA_memory_STATIC_LTLIBS="$static_ltlibs"







    MCA_memory_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_memory_ALL_SUBDIRS="$MCA_memory_ALL_SUBDIRS mca/memory/$item"
    done



    MCA_memory_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_memory_STATIC_SUBDIRS="$MCA_memory_STATIC_SUBDIRS mca/memory/$item"
    done



    MCA_memory_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_memory_DSO_SUBDIRS="$MCA_memory_DSO_SUBDIRS mca/memory/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "memory" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_memory_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real



cat >>confdefs.h <<_ACEOF
#define OMPI_MEMORY_HAVE_COMPONENT $memory_base_found
_ACEOF


        # See if someone set to use their header file
        if test "$memory_base_include" = "" ; then
            memory_base_include="base/empty.h"
        fi


cat >>confdefs.h <<_ACEOF
#define MCA_memory_IMPLEMENTATION_HEADER "opal/mca/memory/$memory_base_include"
_ACEOF

# common has to go up front
                          if test "paffinity" = "common" ; then
                              MCA_opal_FRAMEWORKS="paffinity $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/paffinity $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_paffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_paffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_paffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS paffinity"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/paffinity"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_paffinity_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_paffinity_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_paffinity_STATIC_SUBDIRS)"
                          fi
                          if test "paffinity" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/paffinity/libmca_paffinity.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_paffinity_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework paffinity"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "paffinity" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/paffinity/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework paffinity" >&5
$as_echo_n "checking for no configure components in framework paffinity... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework paffinity" >&5
$as_echo_n "checking for m4 configure components in framework paffinity... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: hwloc, test" >&5
$as_echo "hwloc, test" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/hwloc/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component paffinity:hwloc (m4 configuration macro)"




    project=opal
    framework=paffinity
    component=hwloc
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_paffinity" ; then
            if test "$DIRECT_paffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=paffinity
    component=hwloc

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in HWLOC_VERSION opal_check_hwloc_happy opal_check_hwloc_save_CPPFLAGS opal_check_hwloc_save_LDFLAGS opal_check_hwloc_save_LIBS opal_common_hwloc_save_xml opal_common_hwloc_save_cairo; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"HWLOC_VERSION opal_check_hwloc_happy opal_check_hwloc_save_CPPFLAGS opal_check_hwloc_save_LDFLAGS opal_check_hwloc_save_LIBS opal_common_hwloc_save_xml opal_common_hwloc_save_cairo\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # Allowing building using either the internal copy of
    # hwloc, or an external version.

# Check whether --with-hwloc was given.
if test "${with_hwloc+set}" = set; then :
  withval=$with_hwloc;
fi


    # Default to building the internal copy.  After this,
    # paffinity_hwloc_location is guaranteed to be set to one of:
    # "internal", a directory name (i.e., whatever the user supplied),
    # or "no".
    paffinity_hwloc_location=$with_hwloc
    if test -z "$paffinity_hwloc_location" -o "$paffinity_hwloc_location" = "yes"; then :
  paffinity_hwloc_location=internal
fi

    # Check the DIR value if it's a directory
    case $paffinity_hwloc_location in
    no|internal|external) ;;
    *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-hwloc value" >&5
$as_echo_n "checking --with-hwloc value... " >&6; }
    if test "$paffinity_hwloc_location" = "yes" -o "$paffinity_hwloc_location" = "no" -o "x$paffinity_hwloc_location" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$paffinity_hwloc_location"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $paffinity_hwloc_location not found" >&5
$as_echo "$as_me: WARNING: Directory $paffinity_hwloc_location not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $paffinity_hwloc_location/include/hwloc.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $paffinity_hwloc_location/include/hwloc.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $paffinity_hwloc_location/include/hwloc.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($paffinity_hwloc_location)" >&5
$as_echo "sanity check ok ($paffinity_hwloc_location)" >&6; }

fi


fi


fi
 ;;
    esac


# Check whether --with-hwloc-libdir was given.
if test "${with_hwloc_libdir+set}" = set; then :
  withval=$with_hwloc_libdir;
fi

    if test "$with_hwloc_libdir" = "internal" -a "$with_hwloc_libdir" != ""; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both --with-hwloc=internal and --with-hwloc-libdir=DIR" >&5
$as_echo "$as_me: WARNING: Both --with-hwloc=internal and --with-hwloc-libdir=DIR" >&2;}
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: were specified, which does not make sense." >&5
$as_echo "$as_me: WARNING: were specified, which does not make sense." >&2;}
           as_fn_error "Cannot continue" "$LINENO" 5
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-hwloc-libdir value" >&5
$as_echo_n "checking --with-hwloc-libdir value... " >&6; }
    if test "$with_hwloc_libdir" = "yes" -o "$with_hwloc_libdir" = "no" -o "x$with_hwloc_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_hwloc_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_hwloc_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_hwloc_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_hwloc_libdir/libhwloc.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_hwloc_libdir/libhwloc.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_hwloc_libdir/libhwloc.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_hwloc_libdir)" >&5
$as_echo "sanity check ok ($with_hwloc_libdir)" >&6; }

fi


fi


fi


    opal_check_hwloc_save_CPPFLAGS=$CPPFLAGS
    opal_check_hwloc_save_LDFLAGS=$LDFLAGS
    opal_check_hwloc_save_LIBS=$LIBS

    if test "$paffinity_hwloc_location" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for hwloc" >&5
$as_echo_n "checking where to look for hwloc... " >&6; }
fi

    # If we're building internal, run the hwloc configuration.
    if test "$paffinity_hwloc_location" = "internal"; then :
  # Main hwloc configuration
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal copy" >&5
$as_echo "internal copy" >&6; }

    hwloc_symbol_prefix_value=opal_paffinity_


           # We don't want no stinkin' XML or graphical support
           opal_common_hwloc_save_xml=$enable_xml
           opal_common_hwloc_save_cairo=$enable_cairo
           enable_xml=no
           enable_cairo=no





    if test "x" != "x"; then :
  cat <<EOF

###
### Configuring hwloc core
###
EOF
fi

    # If no prefix was defined, set a good value


    # Unless previously set to "standalone" mode, default to embedded
    # mode
    if test "$hwloc_mode" = ""; then :
  hwloc_mode=embedded
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking hwloc building mode" >&5
$as_echo_n "checking hwloc building mode... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5
$as_echo "$hwloc_mode" >&6; }

    # Get hwloc's absolute top builddir (which may not be the same as
    # the real $top_builddir, because we may be building in embedded
    # mode).
    HWLOC_startdir=`pwd`
    if test x"opal/mca/paffinity/hwloc/hwloc/" != "x" -a ! -d "opal/mca/paffinity/hwloc/hwloc/"; then
        mkdir -p "opal/mca/paffinity/hwloc/hwloc/"
    fi
    if test x"opal/mca/paffinity/hwloc/hwloc/" != "x"; then
        cd "opal/mca/paffinity/hwloc/hwloc/"
    fi
    HWLOC_top_builddir=`pwd`


    # Get hwloc's absolute top srcdir (which may not be the same as
    # the real $top_srcdir, because we may be building in embedded
    # mode).  First, go back to the startdir incase the $srcdir is
    # relative.

    cd "$HWLOC_startdir"
    cd "$srcdir"/opal/mca/paffinity/hwloc/hwloc/
    HWLOC_top_srcdir="`pwd`"


    # Go back to where we started
    cd "$HWLOC_startdir"

    { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5
$as_echo "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5
$as_echo "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;}
    if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
$as_echo "$as_me: Detected VPATH build" >&6;}
    fi

    # Debug mode?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5
$as_echo_n "checking if want hwloc maintainer support... " >&6; }
    hwloc_debug=

    # Unconditionally disable debug mode in embedded mode; if someone
    # asks, we can add a configure-time option for it.  Disable it
    # now, however, because --enable-debug is not even added as an
    # option when configuring in embedded mode, and we wouldn't want
    # to hijack the enclosing application's --enable-debug configure
    # switch.
    if test "$hwloc_mode" = "embedded"; then :
  hwloc_debug=0
           hwloc_debug_msg="disabled (embedded mode)"
fi
    if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"; then :
  hwloc_debug=1
           hwloc_debug_msg="enabled"
fi
    if test "$hwloc_debug" = ""; then :
  hwloc_debug=0
           hwloc_debug_msg="disabled"
fi
    # Grr; we use #ifndef for HWLOC_DEBUG!  :-(

    if test "$hwloc_debug" = "1"; then :
  $as_echo "#define HWLOC_DEBUG 1" >>confdefs.h

fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5
$as_echo "$hwloc_debug_msg" >&6; }

    # We need to set a path for header, etc files depending on whether
    # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED.

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5
$as_echo_n "checking for hwloc directory prefix... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal/mca/paffinity/hwloc/hwloc/" >&5
$as_echo "opal/mca/paffinity/hwloc/hwloc/" >&6; }

    # Note that private/config.h *MUST* be listed first so that it
    # becomes the "main" config header file.  Any AC-CONFIG-HEADERS
    # after that (hwloc/config.h) will only have selective #defines
    # replaced, not the entire file.
    ac_config_headers="$ac_config_headers opal/mca/paffinity/hwloc/hwloc/include/private/autogen/config.h"

    ac_config_headers="$ac_config_headers opal/mca/paffinity/hwloc/hwloc/include/hwloc/autogen/config.h"


    # What prefix are we using?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5
$as_echo_n "checking for hwloc symbol prefix... " >&6; }
    if test "$hwloc_symbol_prefix_value" = ""; then :
  if test "$with_hwloc_symbol_prefix" = ""; then :
  hwloc_symbol_prefix_value=hwloc_
else
  hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix
fi
fi

cat >>confdefs.h <<_ACEOF
#define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value
_ACEOF

    # Ensure to [] escape the whole next line so that we can get the
    # proper tr tokens
    hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`"

cat >>confdefs.h <<_ACEOF
#define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps
_ACEOF

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5
$as_echo "$hwloc_symbol_prefix_value" >&6; }

    # Give an easy #define to know if we need to transform all the
    # hwloc names

    if test "$hwloc_symbol_prefix_value" = "hwloc_"; then :
  $as_echo "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h

else
  $as_echo "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h

fi

    # GCC specifics.
    if test "x$GCC" = "xyes"; then
        HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef"
        HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align"
    fi

    # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc.



$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h


    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    # Check to see if we're producing a 32 or 64 bit executable by
    # checking the sizeof void*.  Note that AC CHECK_SIZEOF even works
    # when cross compiling (!), according to the AC 2.64 docs.  This
    # check is needed because on some systems, you can instruct the
    # compiler to specifically build 32 or 64 bit executables -- even
    # though the $target may indicate something different.
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if test "${ac_cv_sizeof_void_p+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_void_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (void *)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_void_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF



    #
    # Check OS support
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5
$as_echo_n "checking which OS support to include... " >&6; }
    case ${target} in
      *-*-linux*)

$as_echo "#define HWLOC_LINUX_SYS 1" >>confdefs.h

        hwloc_linux=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
$as_echo "Linux" >&6; }
        ;;
      *-*-irix*)

$as_echo "#define HWLOC_IRIX_SYS 1" >>confdefs.h

        hwloc_irix=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
$as_echo "IRIX" >&6; }
        ;;
      *-*-darwin*)

$as_echo "#define HWLOC_DARWIN_SYS 1" >>confdefs.h

        hwloc_darwin=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
$as_echo "Darwin" >&6; }
        ;;
      *-*-solaris*)

$as_echo "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h

        hwloc_solaris=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
$as_echo "Solaris" >&6; }
        ;;
      *-*-aix*)

$as_echo "#define HWLOC_AIX_SYS 1" >>confdefs.h

        hwloc_aix=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
$as_echo "AIX" >&6; }
        ;;
      *-*-osf*)

$as_echo "#define HWLOC_OSF_SYS 1" >>confdefs.h

        hwloc_osf=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSF" >&5
$as_echo "OSF" >&6; }
        ;;
      *-*-hpux*)

$as_echo "#define HWLOC_HPUX_SYS 1" >>confdefs.h

        hwloc_hpux=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5
$as_echo "HP-UX" >&6; }
        ;;
      *-*-mingw*|*-*-cygwin*)

$as_echo "#define HWLOC_WIN_SYS 1" >>confdefs.h

        hwloc_windows=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
$as_echo "Windows" >&6; }
        ;;
      *-*-*freebsd*)

$as_echo "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h

        hwloc_freebsd=yes
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
$as_echo "FreeBSD" >&6; }
        ;;
      *)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5
$as_echo "Unsupported! ($target)" >&6; }

$as_echo "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h

        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
$as_echo "$as_me: WARNING: ***********************************************************" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5
$as_echo "$as_me: WARNING: *** hwloc does not support this system." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5
$as_echo "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor." >&5
$as_echo "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5
$as_echo "$as_me: WARNING: *** You have been warned." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5
$as_echo "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
$as_echo "$as_me: WARNING: ***********************************************************" >&2;}
        sleep 10
        ;;
    esac

    #
    # Check CPU support
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5
$as_echo_n "checking which CPU support to include... " >&6; }
    case ${target} in
      i*86-*-*|x86_64-*-*)
        case ${ac_cv_sizeof_void_p} in
          4)

$as_echo "#define HWLOC_X86_32_ARCH 1" >>confdefs.h

            hwloc_x86_32=yes
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5
$as_echo "x86_32" >&6; }
            ;;
          8)

$as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h

            hwloc_x86_64=yes
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
$as_echo "x86_64" >&6; }
            ;;
          *)

$as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h

            hwloc_x86_64=yes
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5
$as_echo "unknown -- assuming x86_64" >&6; }
            ;;
        esac
    esac

    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
$as_echo_n "checking size of unsigned long... " >&6; }
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (unsigned long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_unsigned_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
_ACEOF



cat >>confdefs.h <<_ACEOF
#define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
_ACEOF

    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
$as_echo_n "checking size of unsigned int... " >&6; }
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (unsigned int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_unsigned_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
_ACEOF



cat >>confdefs.h <<_ACEOF
#define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
_ACEOF


    #
    # Check for compiler attributes and visibility
    #

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
$as_echo_n "checking for __attribute__... " >&6; }

  if test "${hwloc_cv___attribute__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
       /* Check for the longest available __attribute__ (since gcc-2.3) */
       struct foo {
           char a;
           int x[2] __attribute__ ((__packed__));
        };

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__=1
else
  hwloc_cv___attribute__=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    if test "$hwloc_cv___attribute__" = "1" ; then
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
           /* Check for the longest available __attribute__ (since gcc-2.3) */
           struct foo {
               char a;
               int x[2] __attribute__ ((__packed__));
            };

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__=1
else
  hwloc_cv___attribute__=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi

fi


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__
_ACEOF


#
# Now that we know the compiler support __attribute__ let's check which kind of
# attributed are supported.
#
  if test "$hwloc_cv___attribute__" = "0" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    hwloc_cv___attribute__aligned=0
    hwloc_cv___attribute__always_inline=0
    hwloc_cv___attribute__cold=0
    hwloc_cv___attribute__const=0
    hwloc_cv___attribute__deprecated=0
    hwloc_cv___attribute__format=0
    hwloc_cv___attribute__hot=0
    hwloc_cv___attribute__malloc=0
    hwloc_cv___attribute__may_alias=0
    hwloc_cv___attribute__no_instrument_function=0
    hwloc_cv___attribute__nonnull=0
    hwloc_cv___attribute__noreturn=0
    hwloc_cv___attribute__packed=0
    hwloc_cv___attribute__pure=0
    hwloc_cv___attribute__sentinel=0
    hwloc_cv___attribute__unused=0
    hwloc_cv___attribute__warn_unused_result=0
    hwloc_cv___attribute__weak_alias=0
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5
$as_echo_n "checking for __attribute__(aligned)... " >&6; }
    if test "${hwloc_cv___attribute__aligned+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__aligned=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__aligned=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__aligned=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__aligned=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__aligned=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__aligned=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__aligned" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


    #
    # Ignored by PGI-6.2.5; -- recognized by output-parser
    #

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5
$as_echo_n "checking for __attribute__(always_inline)... " >&6; }
    if test "${hwloc_cv___attribute__always_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (int arg) __attribute__ ((__always_inline__));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__always_inline=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__always_inline=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__always_inline=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__always_inline=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__always_inline" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5
$as_echo_n "checking for __attribute__(cold)... " >&6; }
    if test "${hwloc_cv___attribute__cold+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__cold__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__cold=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__cold=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__cold=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__cold=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__cold=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__cold=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__cold" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5
$as_echo_n "checking for __attribute__(const)... " >&6; }
    if test "${hwloc_cv___attribute__const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__const__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__const=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__const=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__const=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__const=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__const=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__const=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__const" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5
$as_echo_n "checking for __attribute__(deprecated)... " >&6; }
    if test "${hwloc_cv___attribute__deprecated+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__deprecated=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__deprecated=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__deprecated=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__deprecated=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__deprecated" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    HWLOC_ATTRIBUTE_CFLAGS=
    case "$hwloc_c_vendor" in
        gnu)
            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we want specifically the warning on format string conversion
            HWLOC_ATTRIBUTE_CFLAGS="-we181"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5
$as_echo_n "checking for __attribute__(format)... " >&6; }
    if test "${hwloc_cv___attribute__format+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__format=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__format=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__format=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__format" = "1" -a "
         static int usage (int * argument);
         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage (int * argument);
         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__format=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__format=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__format=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__format" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5
$as_echo_n "checking for __attribute__(hot)... " >&6; }
    if test "${hwloc_cv___attribute__hot+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__hot__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__hot=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__hot=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__hot=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__hot=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__hot=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__hot=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__hot" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5
$as_echo_n "checking for __attribute__(malloc)... " >&6; }
    if test "${hwloc_cv___attribute__malloc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         int * foo(int arg1) __attribute__ ((__malloc__));
         int * foo(int arg1) { return (int*) malloc(arg1); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__malloc=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__malloc=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__malloc=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__malloc=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__malloc=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__malloc=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__malloc" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
    # Ignored by intel-9.1.045 -- turn off with -wd1292
    # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
    #

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5
$as_echo_n "checking for __attribute__(may_alias)... " >&6; }
    if test "${hwloc_cv___attribute__may_alias+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int * p_value __attribute__ ((__may_alias__));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__may_alias=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__may_alias=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__may_alias=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__may_alias=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__may_alias" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5
$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; }
    if test "${hwloc_cv___attribute__no_instrument_function+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int * foo(int arg1) __attribute__ ((__no_instrument_function__));
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__no_instrument_function=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__no_instrument_function=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__no_instrument_function=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__no_instrument_function=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute nonnull:
    # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
    #
    HWLOC_ATTRIBUTE_CFLAGS=
    case "$hwloc_c_vendor" in
        gnu)
            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings, but rather real warnings
            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5
$as_echo_n "checking for __attribute__(nonnull)... " >&6; }
    if test "${hwloc_cv___attribute__nonnull+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int *arg) __attribute__ ((__nonnull__));
         int square(int *arg) { return *arg; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__nonnull=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__nonnull=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a "
         static int usage(int * argument);
         int square(int * argument) __attribute__ ((__nonnull__));
         int square(int * argument) { return (*argument) * (*argument); }

         static int usage(int * argument) {
             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage(int * argument);
         int square(int * argument) __attribute__ ((__nonnull__));
         int square(int * argument) { return (*argument) * (*argument); }

         static int usage(int * argument) {
             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__nonnull=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__nonnull=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__nonnull" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5
$as_echo_n "checking for __attribute__(noreturn)... " >&6; }
    if test "${hwloc_cv___attribute__noreturn+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         void fatal(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { exit(arg1); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__noreturn=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__noreturn=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__noreturn=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__noreturn=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__noreturn" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5
$as_echo_n "checking for __attribute__(packed)... " >&6; }
    if test "${hwloc_cv___attribute__packed+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         struct foo {
             char a;
             int x[2] __attribute__ ((__packed__));
         };

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__packed=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__packed=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__packed=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__packed=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__packed=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__packed=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__packed" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5
$as_echo_n "checking for __attribute__(pure)... " >&6; }
    if test "${hwloc_cv___attribute__pure+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int arg) __attribute__ ((__pure__));
         int square(int arg) { return arg * arg; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__pure=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__pure=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__pure=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__pure=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__pure=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__pure=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__pure" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


    #
    # Attribute sentinel:
    # Ignored by the intel-9.1.045 -- recognized by cross-check
    #                intel-10.0beta works fine
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
    #
    HWLOC_ATTRIBUTE_CFLAGS=
    case "$hwloc_c_vendor" in
        gnu)
            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings
            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5
$as_echo_n "checking for __attribute__(sentinel)... " >&6; }
    if test "${hwloc_cv___attribute__sentinel+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__sentinel=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__sentinel=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a "
         static int usage(int * argument);
         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

         static int usage(int * argument) {
             void * last_arg_should_be_null = argument;
             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage(int * argument);
         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

         static int usage(int * argument) {
             void * last_arg_should_be_null = argument;
             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__sentinel=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__sentinel=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__sentinel" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5
$as_echo_n "checking for __attribute__(unused)... " >&6; }
    if test "${hwloc_cv___attribute__unused+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int square(int arg1 __attribute__ ((__unused__)), int arg2);
         int square(int arg1, int arg2) { return arg2; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__unused=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__unused=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__unused=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__unused=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__unused=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__unused=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__unused" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute warn_unused_result:
    # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
    #
    HWLOC_ATTRIBUTE_CFLAGS=
    case "$hwloc_c_vendor" in
        gnu)
            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings
            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5
$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; }
    if test "${hwloc_cv___attribute__warn_unused_result+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg) __attribute__ ((__warn_unused_result__));
         int foo(int arg) { return arg + 3; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__warn_unused_result=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__warn_unused_result=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a "
         static int usage(int * argument);
         int foo(int arg) __attribute__ ((__warn_unused_result__));

         int foo(int arg) { return arg + 3; }
         static int usage(int * argument) {
           foo (*argument);        /* Should produce an unused result warning */
           return 0;
         }

         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         static int usage(int * argument);
         int foo(int arg) __attribute__ ((__warn_unused_result__));

         int foo(int arg) { return arg + 3; }
         static int usage(int * argument) {
           foo (*argument);        /* Should produce an unused result warning */
           return 0;
         }

         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__warn_unused_result=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__warn_unused_result=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5
$as_echo_n "checking for __attribute__(weak_alias)... " >&6; }
    if test "${hwloc_cv___attribute__weak_alias+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

         int foo(int arg);
         int foo(int arg) { return arg + 3; }
         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the hwloc_cv__attribute__var=0
                        #
                        hwloc_cv___attribute__weak_alias=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


else
  hwloc_cv___attribute__weak_alias=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS "

            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                 int i=4711;
                 i=usage(&i);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  hwloc_cv___attribute__weak_alias=0
else

                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the hwloc_cv__attribute__var=0
                 #
                 hwloc_cv___attribute__weak_alias=1

    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                hwloc_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$hwloc_cv___attribute__weak_alias" = "1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi


  fi

  # Now that all the values are set, define them


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result
_ACEOF


cat >>confdefs.h <<_ACEOF
#define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias
_ACEOF



    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)


    msg="whether to enable visibility"
    # Check if the compiler has support for visibility, like some
    # versions of gcc, icc.
    # Check whether --enable-visibility was given.
if test "${enable_visibility+set}" = set; then :
  enableval=$enable_visibility;
fi


    case ${target} in
      *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*)
        enable_visibility=no
        ;;
    esac

    if test "$enable_visibility" = "no"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
$as_echo_n "checking $msg... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
$as_echo "no (disabled)" >&6; }
        have_visibility=0
    else
        CFLAGS_orig="$CFLAGS"
        CFLAGS="$CFLAGS_orig -fvisibility=hidden"
        hwloc_add=
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility" >&5
$as_echo_n "checking if $CC supports -fvisibility... " >&6; }
if test "${hwloc_cv_cc_fvisibility+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                    __attribute__((visibility("default"))) int foo;

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  hwloc_cv_cc_fvisibility=yes
else
  if test -s conftest.err ; then
                        $GREP -iq "visibility" conftest.err
                        if test "$?" = "0" ; then
                            hwloc_cv_cc_fvisibility=no
                        else
                            hwloc_cv_cc_fvisibility=yes
                        fi
                     else
                        hwloc_cv_cc_fvisibility=yes
                     fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_cv_cc_fvisibility" >&5
$as_echo "$hwloc_cv_cc_fvisibility" >&6; }

        if test "$hwloc_cv_cc_fvisibility" = "yes" ; then
            hwloc_add=" -fvisibility=hidden"
            have_visibility=1
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
$as_echo_n "checking $msg... " >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via$hwloc_add)" >&5
$as_echo "yes (via$hwloc_add)" >&6; }
        elif test "$enable_visibility" = "yes"; then
            as_fn_error "Symbol visibility support requested but compiler does not seem to support it.  Aborting" "$LINENO" 5
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
$as_echo_n "checking $msg... " >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
$as_echo "no (unsupported)" >&6; }
            have_visibility=0
        fi
        CFLAGS=$CFLAGS_orig
        HWLOC_VISIBILITY_CFLAGS=$hwloc_add
        unset hwloc_add
    fi


cat >>confdefs.h <<_ACEOF
#define HWLOC_C_HAVE_VISIBILITY $have_visibility
_ACEOF


    HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS"
    if test "$HWLOC_VISIBILITY_CFLAGS" != ""; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5
$as_echo "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;}
fi

    #
    # Check for inline compatibility support
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline compatibility keyword" >&5
$as_echo_n "checking for inline compatibility keyword... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
static void __inline__ f(void) { }
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  __hwloc_inline=__inline__
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
static void __inline f(void) {}
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  __hwloc_inline=__inline
else
  __hwloc_inline=

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $__hwloc_inline" >&5
$as_echo "$__hwloc_inline" >&6; }

cat >>confdefs.h <<_ACEOF
#define __hwloc_inline $__hwloc_inline
_ACEOF


    #
    # Now detect support
    #

    hwloc_strncasecmp=strncmp
    for ac_func in strncasecmp
do :
  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp is declared" >&5
$as_echo_n "checking whether function strncasecmp is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
strncasecmp(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

        hwloc_strncasecmp=strncasecmp


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
done


cat >>confdefs.h <<_ACEOF
#define hwloc_strncasecmp $hwloc_strncasecmp
_ACEOF


    for ac_func in strftime
do :
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
if test "x$ac_cv_func_strftime" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
_ACEOF

fi
done

    for ac_func in setlocale
do :
  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
if test "x$ac_cv_func_setlocale" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETLOCALE 1
_ACEOF

fi
done


    ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
if test "x$ac_cv_header_stdint_h" = x""yes; then :


$as_echo "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h


fi


    for ac_header in sys/mman.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_MMAN_H 1
_ACEOF

fi

done


    ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include <windows.h>
"
if test "x$ac_cv_type_KAFFINITY" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_KAFFINITY 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include <windows.h>
"
if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PROCESSOR_CACHE_TYPE 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include <windows.h>
"
if test "x$ac_cv_type_CACHE_DESCRIPTOR" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_CACHE_DESCRIPTOR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include <windows.h>
"
if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include <windows.h>
"
if test "x$ac_cv_type_RelationProcessorPackage" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_RELATIONPROCESSORPACKAGE 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include <windows.h>
"
if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include <windows.h>
"
if test "x$ac_cv_type_GROUP_AFFINITY" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GROUP_AFFINITY 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include <windows.h>
"
if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PROCESSOR_RELATIONSHIP 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include <windows.h>
"
if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_NUMA_NODE_RELATIONSHIP 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include <windows.h>
"
if test "x$ac_cv_type_CACHE_RELATIONSHIP" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_CACHE_RELATIONSHIP 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include <windows.h>
"
if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PROCESSOR_GROUP_INFO 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include <windows.h>
"
if test "x$ac_cv_type_GROUP_RELATIONSHIP" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GROUP_RELATIONSHIP 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include <windows.h>
"
if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include <windows.h>
"
if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include <windows.h>
"
if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1
_ACEOF


fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
$as_echo_n "checking for main in -lgdi32... " >&6; }
if test "${ac_cv_lib_gdi32_main+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgdi32  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gdi32_main=yes
else
  ac_cv_lib_gdi32_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
$as_echo "$ac_cv_lib_gdi32_main" >&6; }
if test "x$ac_cv_lib_gdi32_main" = x""yes; then :
  HWLOC_LIBS="-lgdi32 $HWLOC_LIBS"

$as_echo "#define HAVE_LIBGDI32 1" >>confdefs.h

fi


    ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
if test "x$ac_cv_header_windows_h" = x""yes; then :


$as_echo "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h


fi



    for ac_header in sys/lgrp_user.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_lgrp_user_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_LGRP_USER_H 1
_ACEOF

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgrp_latency_cookie in -llgrp" >&5
$as_echo_n "checking for lgrp_latency_cookie in -llgrp... " >&6; }
if test "${ac_cv_lib_lgrp_lgrp_latency_cookie+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llgrp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lgrp_latency_cookie ();
int
main ()
{
return lgrp_latency_cookie ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lgrp_lgrp_latency_cookie=yes
else
  ac_cv_lib_lgrp_lgrp_latency_cookie=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lgrp_lgrp_latency_cookie" >&5
$as_echo "$ac_cv_lib_lgrp_lgrp_latency_cookie" >&6; }
if test "x$ac_cv_lib_lgrp_lgrp_latency_cookie" = x""yes; then :
  HWLOC_LIBS="-llgrp $HWLOC_LIBS"

$as_echo "#define HAVE_LIBLGRP 1" >>confdefs.h

fi


fi

done

    for ac_header in kstat.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
if test "x$ac_cv_header_kstat_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KSTAT_H 1
_ACEOF

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5
$as_echo_n "checking for main in -lkstat... " >&6; }
if test "${ac_cv_lib_kstat_main+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lkstat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_kstat_main=yes
else
  ac_cv_lib_kstat_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5
$as_echo "$ac_cv_lib_kstat_main" >&6; }
if test "x$ac_cv_lib_kstat_main" = x""yes; then :
  HWLOC_LIBS="-lkstat $HWLOC_LIBS"

$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h

fi


fi

done


    ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h>
"
if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi
ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include <unistd.h>
"
if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi
ac_fn_c_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include <unistd.h>
"
if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi
ac_fn_c_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include <unistd.h>
"
if test "x$ac_cv_have_decl__SC_NPROC_CONF" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__SC_NPROC_CONF $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi
ac_fn_c_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include <unistd.h>
"
if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi


    for ac_header in mach/mach_host.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_host_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_MACH_HOST_H 1
_ACEOF

fi

done

    for ac_header in mach/mach_init.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_init_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_MACH_INIT_H 1
_ACEOF

      for ac_func in host_info
do :
  ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info"
if test "x$ac_cv_func_host_info" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_HOST_INFO 1
_ACEOF

fi
done


fi

done


    for ac_header in sys/param.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PARAM_H 1
_ACEOF

fi

done

    for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
      $ac_includes_default
      #if HAVE_SYS_PARAM_H
      #include <sys/param.h>
      #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

      ac_fn_c_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" "
      #if HAVE_SYS_PARAM_H
      #include <sys/param.h>
      #endif
      #include <sys/sysctl.h>

"
if test "x$ac_cv_have_decl_CTL_HW" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CTL_HW $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" "
      #if HAVE_SYS_PARAM_H
      #include <sys/param.h>
      #endif
      #include <sys/sysctl.h>

"
if test "x$ac_cv_have_decl_HW_NCPU" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_HW_NCPU $ac_have_decl
_ACEOF


fi

done

    for ac_func in sysctl sysctlbyname
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    case ${target} in
      *-*-mingw*|*-*-cygwin*)
        hwloc_pid_t=HANDLE
        hwloc_thread_t=HANDLE
        ;;
      *)
        hwloc_pid_t=pid_t
        ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include <pthread.h>
"
if test "x$ac_cv_type_pthread_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_T 1
_ACEOF

hwloc_thread_t=pthread_t
else
  :
fi

        ;;
    esac

cat >>confdefs.h <<_ACEOF
#define hwloc_pid_t $hwloc_pid_t
_ACEOF

    if test "x$hwloc_thread_t" != "x" ; then

cat >>confdefs.h <<_ACEOF
#define hwloc_thread_t $hwloc_thread_t
_ACEOF

    fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity is declared" >&5
$as_echo_n "checking whether function sched_setaffinity is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _GNU_SOURCE
#include <sched.h>


int
main ()
{
sched_setaffinity(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5
$as_echo_n "checking for old prototype of sched_setaffinity... " >&6; }
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


          #define _GNU_SOURCE
          #include <sched.h>
          static unsigned long mask;

int
main ()
{
 sched_setaffinity(0, (void*) &mask);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

$as_echo "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h

         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5
$as_echo_n "checking for working CPU_SET... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


        #include <sched.h>
        cpu_set_t set;

int
main ()
{
 CPU_ZERO(&set); CPU_SET(0, &set);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

$as_echo "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h

         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5
$as_echo_n "checking for working CPU_SET_S... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


          #include <sched.h>
          cpu_set_t *set;

int
main ()
{

          set = CPU_ALLOC(1024);
          CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set);
          CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set);
          CPU_FREE(set);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

$as_echo "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h

         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working _syscall3" >&5
$as_echo_n "checking for working _syscall3... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


          #include <linux/unistd.h>
          #include <errno.h>
          #define __NR_hwloc_test 123
          _syscall3(int, hwloc_test, int, param1, int, param2, int, param3);

int
main ()
{
 hwloc_test(1, 2, 3);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

$as_echo "#define HWLOC_HAVE__SYSCALL3 1" >>confdefs.h

         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    # Check for kerrighed, but don't abort if not found.  It's illegal
    # to pass in an empty 3rd argument, but we trust the output of
    # pkg-config, so just give it a value that will always work:
    # printf.


    HWLOC_pkg_failed=no
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERRIGHED" >&5
$as_echo_n "checking for KERRIGHED... " >&6; }

    if test -n "$HWLOC_PKG_CONFIG"; then
    if test -n "$HWLOC_KERRIGHED_CFLAGS"; then
        HWLOC_pkg_cv_HWLOC_KERRIGHED_CFLAGS="$HWLOC_KERRIGHED_CFLAGS"
    else
        if test -n "$HWLOC_PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$HWLOC_PKG_CONFIG --exists --silence-errors \"kerrighed >= 2.0\""; } >&5
  ($HWLOC_PKG_CONFIG --exists --silence-errors "kerrighed >= 2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    HWLOC_pkg_cv_HWLOC_KERRIGHED_CFLAGS=`$HWLOC_PKG_CONFIG --cflags "kerrighed >= 2.0" 2>/dev/null`
    else
                     HWLOC_pkg_failed=yes
fi
    fi
else
	HWLOC_pkg_failed=untried
fi

    if test -n "$HWLOC_PKG_CONFIG"; then
    if test -n "$HWLOC_KERRIGHED_LIBS"; then
        HWLOC_pkg_cv_HWLOC_KERRIGHED_LIBS="$HWLOC_KERRIGHED_LIBS"
    else
        if test -n "$HWLOC_PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$HWLOC_PKG_CONFIG --exists --silence-errors \"kerrighed >= 2.0\""; } >&5
  ($HWLOC_PKG_CONFIG --exists --silence-errors "kerrighed >= 2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    HWLOC_pkg_cv_HWLOC_KERRIGHED_LIBS=`$HWLOC_PKG_CONFIG --libs "kerrighed >= 2.0" 2>/dev/null`
    else
                     HWLOC_pkg_failed=yes
fi
    fi
else
	HWLOC_pkg_failed=untried
fi




    # Check for failure of pkg-config
    if test $HWLOC_pkg_failed = yes; then

if $HWLOC_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        HWLOC_pkg_short_errors_supported=yes
else
        HWLOC_pkg_short_errors_supported=no
fi
        if test $HWLOC_pkg_short_errors_supported = yes; then
            HWLOC_KERRIGHED_PKG_ERRORS=`$HWLOC_PKG_CONFIG --short-errors --errors-to-stdout --print-errors "kerrighed >= 2.0" 2>&1`
        else
            HWLOC_KERRIGHED_PKG_ERRORS=`$HWLOC_PKG_CONFIG --errors-to-stdout --print-errors "kerrighed >= 2.0" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
	echo "$HWLOC_KERRIGHED_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                :
    elif test $HWLOC_pkg_failed = untried; then
        :
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

        # If we got good results from pkg-config, check that they
        # actually work (i.e., that we can link against the resulting
        # $LIBS).  The canonical example why we do this is if
        # pkg-config returns 64 bit libraries but ./configure was run
        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
        # results, but we'll fail if we try to link.  So detect that
        # failure now.
        hwloc_cflags_save=$CFLAGS
        hwloc_libs_save=$LIBS
        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_KERRIGHED_CFLAGS"
        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_KERRIGHED_LIBS"
        ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
if test "x$ac_cv_func_printf" = x""yes; then :
  hwloc_result=yes
else
  hwloc_result=no
fi

        CFLAGS=$hwloc_cflags_save
        LIBS=$hwloc_libs_save

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final KERRIGHED support" >&5
$as_echo_n "checking for final KERRIGHED support... " >&6; }
        if test "$hwloc_result" = "yes"; then :
  HWLOC_KERRIGHED_CFLAGS=$HWLOC_pkg_cv_HWLOC_KERRIGHED_CFLAGS
               HWLOC_KERRIGHED_LIBS=$HWLOC_pkg_cv_HWLOC_KERRIGHED_LIBS
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
               :
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
               :
fi
    fi

    for ac_prog in lib
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_HWLOC_MS_LIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $HWLOC_MS_LIB in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_HWLOC_MS_LIB="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB
if test -n "$HWLOC_MS_LIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5
$as_echo "$HWLOC_MS_LIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$HWLOC_MS_LIB" && break
done



    # Extract the first word of "bash", so it can be a program name with args.
set dummy bash; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_BASH+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $BASH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
BASH=$ac_cv_path_BASH
if test -n "$BASH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
$as_echo "$BASH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    for ac_func in ffs
do :
  ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
if test "x$ac_cv_func_ffs" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FFS 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffs is declared" >&5
$as_echo_n "checking whether function ffs is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
ffs(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h



fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


$as_echo "#define HWLOC_HAVE_FFS 1" >>confdefs.h


fi
done

    for ac_func in ffsl
do :
  ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl"
if test "x$ac_cv_func_ffsl" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FFSL 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffsl is declared" >&5
$as_echo_n "checking whether function ffsl is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
ffsl(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h



fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


$as_echo "#define HWLOC_HAVE_FFSL 1" >>confdefs.h


fi
done


    for ac_func in fls
do :
  ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
if test "x$ac_cv_func_fls" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FLS 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function fls is declared" >&5
$as_echo_n "checking whether function fls is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
fls(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h



fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


$as_echo "#define HWLOC_HAVE_FLS 1" >>confdefs.h


fi
done

    for ac_func in flsl
do :
  ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl"
if test "x$ac_cv_func_flsl" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FLSL 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function flsl is declared" >&5
$as_echo_n "checking whether function flsl is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
flsl(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h



fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


$as_echo "#define HWLOC_HAVE_FLSL 1" >>confdefs.h


fi
done


    for ac_func in clz
do :
  ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz"
if test "x$ac_cv_func_clz" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CLZ 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clz is declared" >&5
$as_echo_n "checking whether function clz is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
clz(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h



fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


$as_echo "#define HWLOC_HAVE_CLZ 1" >>confdefs.h


fi
done

    for ac_func in clzl
do :
  ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl"
if test "x$ac_cv_func_clzl" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CLZL 1
_ACEOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clzl is declared" >&5
$as_echo_n "checking whether function clzl is declared... " >&6; }

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
clzl(1,2,3,4,5,6,7,8,9,10);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h



fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


$as_echo "#define HWLOC_HAVE_CLZL 1" >>confdefs.h


fi
done


    for ac_func in openat
do :
  ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
if test "x$ac_cv_func_openat" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_OPENAT 1
_ACEOF
 hwloc_have_openat=yes
fi
done


    for ac_header in malloc.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
if test "x$ac_cv_header_malloc_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MALLOC_H 1
_ACEOF

fi

done

    for ac_func in getpagesize memalign posix_memalign
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    for ac_header in sys/utsname.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_UTSNAME_H 1
_ACEOF

fi

done

    for ac_func in uname
do :
  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
if test "x$ac_cv_func_uname" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UNAME 1
_ACEOF

fi
done


    # set_mempolicy and mbind support
    for ac_header in numaif.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "numaif.h" "ac_cv_header_numaif_h" "$ac_includes_default"
if test "x$ac_cv_header_numaif_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NUMAIF_H 1
_ACEOF

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_mempolicy in -lnuma" >&5
$as_echo_n "checking for set_mempolicy in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_set_mempolicy+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char set_mempolicy ();
int
main ()
{
return set_mempolicy ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_set_mempolicy=yes
else
  ac_cv_lib_numa_set_mempolicy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_set_mempolicy" >&5
$as_echo "$ac_cv_lib_numa_set_mempolicy" >&6; }
if test "x$ac_cv_lib_numa_set_mempolicy" = x""yes; then :

	enable_set_mempolicy=yes
	HWLOC_LINUX_LIBNUMA_LIBS="-lnuma"


$as_echo "#define HWLOC_HAVE_SET_MEMPOLICY 1" >>confdefs.h


fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbind in -lnuma" >&5
$as_echo_n "checking for mbind in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_mbind+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mbind ();
int
main ()
{
return mbind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_mbind=yes
else
  ac_cv_lib_numa_mbind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_mbind" >&5
$as_echo "$ac_cv_lib_numa_mbind" >&6; }
if test "x$ac_cv_lib_numa_mbind" = x""yes; then :

	enable_mbind=yes
	HWLOC_LINUX_LIBNUMA_LIBS="-lnuma"


$as_echo "#define HWLOC_HAVE_MBIND 1" >>confdefs.h


fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for migrate_pages in -lnuma" >&5
$as_echo_n "checking for migrate_pages in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_migrate_pages+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char migrate_pages ();
int
main ()
{
return migrate_pages ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_numa_migrate_pages=yes
else
  ac_cv_lib_numa_migrate_pages=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_migrate_pages" >&5
$as_echo "$ac_cv_lib_numa_migrate_pages" >&6; }
if test "x$ac_cv_lib_numa_migrate_pages" = x""yes; then :

	enable_migrate_pages=yes
	HWLOC_LINUX_LIBNUMA_LIBS="-lnuma"


$as_echo "#define HWLOC_HAVE_MIGRATE_PAGES 1" >>confdefs.h


fi


fi

done


    for ac_header in pthread_np.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_NP_H 1
_ACEOF

fi

done

    ac_fn_c_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "
      #include <pthread.h>
      #ifdef HAVE_PTHREAD_NP_H
      #  include <pthread_np.h>
      #endif

"
if test "x$ac_cv_have_decl_pthread_setaffinity_np" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi

    ac_fn_c_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" "
      #include <pthread.h>
      #ifdef HAVE_PTHREAD_NP_H
      #  include <pthread_np.h>
      #endif

"
if test "x$ac_cv_have_decl_pthread_getaffinity_np" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  :
fi

    ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
if test "x$ac_cv_func_sched_setaffinity" = x""yes; then :
  hwloc_have_sched_setaffinity=yes
fi

    for ac_header in sys/cpuset.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include <sys/param.h>
"
if test "x$ac_cv_header_sys_cpuset_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CPUSET_H 1
_ACEOF

fi

done

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5
$as_echo_n "checking for library containing pthread_getthrds_np... " >&6; }
if test "${ac_cv_search_pthread_getthrds_np+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pthread_getthrds_np ();
int
main ()
{
return pthread_getthrds_np ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' pthread; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_pthread_getthrds_np=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_pthread_getthrds_np+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_pthread_getthrds_np+set}" = set; then :

else
  ac_cv_search_pthread_getthrds_np=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5
$as_echo "$ac_cv_search_pthread_getthrds_np" >&6; }
ac_res=$ac_cv_search_pthread_getthrds_np
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h


fi


    # XML support
    if test "x$enable_xml" != "xno"; then


    HWLOC_pkg_failed=no
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
$as_echo_n "checking for XML... " >&6; }

    if test -n "$HWLOC_PKG_CONFIG"; then
    if test -n "$HWLOC_XML_CFLAGS"; then
        HWLOC_pkg_cv_HWLOC_XML_CFLAGS="$HWLOC_XML_CFLAGS"
    else
        if test -n "$HWLOC_PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$HWLOC_PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
  ($HWLOC_PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    HWLOC_pkg_cv_HWLOC_XML_CFLAGS=`$HWLOC_PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
    else
                     HWLOC_pkg_failed=yes
fi
    fi
else
	HWLOC_pkg_failed=untried
fi

    if test -n "$HWLOC_PKG_CONFIG"; then
    if test -n "$HWLOC_XML_LIBS"; then
        HWLOC_pkg_cv_HWLOC_XML_LIBS="$HWLOC_XML_LIBS"
    else
        if test -n "$HWLOC_PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$HWLOC_PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
  ($HWLOC_PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    HWLOC_pkg_cv_HWLOC_XML_LIBS=`$HWLOC_PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
    else
                     HWLOC_pkg_failed=yes
fi
    fi
else
	HWLOC_pkg_failed=untried
fi




    # Check for failure of pkg-config
    if test $HWLOC_pkg_failed = yes; then

if $HWLOC_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        HWLOC_pkg_short_errors_supported=yes
else
        HWLOC_pkg_short_errors_supported=no
fi
        if test $HWLOC_pkg_short_errors_supported = yes; then
            HWLOC_XML_PKG_ERRORS=`$HWLOC_PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
        else
            HWLOC_XML_PKG_ERRORS=`$HWLOC_PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
	echo "$HWLOC_XML_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                enable_xml="no"
    elif test $HWLOC_pkg_failed = untried; then
        enable_xml="no"
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

        # If we got good results from pkg-config, check that they
        # actually work (i.e., that we can link against the resulting
        # $LIBS).  The canonical example why we do this is if
        # pkg-config returns 64 bit libraries but ./configure was run
        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
        # results, but we'll fail if we try to link.  So detect that
        # failure now.
        hwloc_cflags_save=$CFLAGS
        hwloc_libs_save=$LIBS
        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_XML_CFLAGS"
        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_XML_LIBS"
        ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc"
if test "x$ac_cv_func_xmlNewDoc" = x""yes; then :
  hwloc_result=yes
else
  hwloc_result=no
fi

        CFLAGS=$hwloc_cflags_save
        LIBS=$hwloc_libs_save

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final XML support" >&5
$as_echo_n "checking for final XML support... " >&6; }
        if test "$hwloc_result" = "yes"; then :
  HWLOC_XML_CFLAGS=$HWLOC_pkg_cv_HWLOC_XML_CFLAGS
               HWLOC_XML_LIBS=$HWLOC_pkg_cv_HWLOC_XML_LIBS
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
               :
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
               enable_xml="no"
fi
    fi
    fi
    if test "x$enable_xml" != "xno"; then
        HWLOC_REQUIRES="libxml-2.0 $HWLOC_REQUIRES"

$as_echo "#define HWLOC_HAVE_XML 1" >>confdefs.h

        HWLOC_HAVE_XML=1

    else
        HWLOC_HAVE_XML=0

    fi
    HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_XML_CFLAGS"

    # Setup HWLOC's C, CPP, and LD flags, and LIBS


    HWLOC_CPPFLAGS='-I$(HWLOC_top_srcdir)/include -I$(HWLOC_top_builddir)/include'

    HWLOC_LDFLAGS='-L$(HWLOC_top_builddir)/src'



    # Set these values explicitly for embedded builds.  Exporting
    # these values through *_EMBEDDED_* values gives us the freedom to
    # do something different someday if we ever need to.
    HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS

    HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS

    HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/src/libhwloc_embedded.la'

    HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS


    # Try to compile the cpuid inlines
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid" >&5
$as_echo_n "checking for cpuid... " >&6; }
    old_CPPFLAGS="$CPPFLAGS"
    CFLAGS="$CFLAGS -I$HWLOC_top_srcdir/include"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        #include <stdio.h>
        #include <private/cpuid.h>

int
main ()
{

        if (hwloc_have_cpuid()) {
          unsigned eax = 0, ebx, ecx = 0, edx;
          hwloc_cpuid(&eax, &ebx, &ecx, &edx);
          printf("highest cpuid %x\n", eax);
          return 0;
        }

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HWLOC_HAVE_CPUID 1" >>confdefs.h

       hwloc_have_cpuid=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    CPPFLAGS="$old_CPPFLAGS"

    # Always generate these files
    ac_config_files="$ac_config_files opal/mca/paffinity/hwloc/hwloc/Makefile opal/mca/paffinity/hwloc/hwloc/include/Makefile opal/mca/paffinity/hwloc/hwloc/src/Makefile"


    # Cleanup
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    # Success
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hwloc configure succeeded" >&5
$as_echo_n "checking whether hwloc configure succeeded... " >&6; }
                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                      HWLOC_VERSION="internal v`$srcdir/opal/mca/paffinity/hwloc/hwloc/config/hwloc_get_version.sh $srcdir/opal/mca/paffinity/hwloc/hwloc/VERSION`"

                      # Add flags to the wrappers for static builds.
                      # Note that we don't add the project name to the
                      # wrapper extra flags.  :-(
                      common_hwloc_WRAPPER_EXTRA_LIBS=$HWLOC_EMBEDDED_LIBS

                      opal_check_hwloc_happy=yes


          # Restore some env variables, if necessary
          if test -n "$opal_common_hwloc_save_xml"; then :
  enable_xml=$opal_common_hwloc_save_xml
fi
          if test -n "$opal_common_hwloc_save_cairo"; then :
  enable_cairo=$opal_common_hwloc_save_cairo
fi

fi

    # If we are not building internal, then run all the normal checks
    if test "$paffinity_hwloc_location" != "internal" -a "$paffinity_hwloc_location" != "no"; then :
  if test ! -z "$paffinity_hwloc_location" -a "$paffinity_hwloc_location" != "yes" -a "$paffinity_hwloc_location" != "external"; then :
  opal_check_hwloc_dir=$paffinity_hwloc_location
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: external install ($paffinity_hwloc_location)" >&5
$as_echo "external install ($paffinity_hwloc_location)" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: external install (default search paths)" >&5
$as_echo "external install (default search paths)" >&6; }
fi
           if test ! -z "$with_hwloc_libdir" -a "$with_hwloc_libdir" != "yes"; then :
  opal_check_hwloc_libdir="$with_hwloc_libdir"
fi
           if test "$paffinity_hwloc_location" = no; then :
  opal_check_hwloc_happy=no
else
  opal_check_hwloc_happy=yes
fi

           HWLOC_VERSION=external

    ompi_check_package_paffinity_hwloc_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_paffinity_hwloc_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_paffinity_hwloc_save_LIBS="$LIBS"

    ompi_check_package_paffinity_hwloc_orig_CPPFLAGS="$paffinity_hwloc_CPPFLAGS"
    ompi_check_package_paffinity_hwloc_orig_LDFLAGS="$paffinity_hwloc_LDFLAGS"
    ompi_check_package_paffinity_hwloc_orig_LIBS="$paffinity_hwloc_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_hwloc_h

    ompi_check_package_header_happy="no"
    if test "$opal_check_hwloc_dir" = "/usr" -o "$opal_check_hwloc_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default"
if test "x$ac_cv_header_hwloc_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_hwloc_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$opal_check_hwloc_dir" != ""; then :
  paffinity_hwloc_CPPFLAGS="$paffinity_hwloc_CPPFLAGS -I$opal_check_hwloc_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$opal_check_hwloc_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default"
if test "x$ac_cv_header_hwloc_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_hwloc_hwloc_topology_init
    ompi_check_package_lib_happy="no"
    if test "$opal_check_hwloc_libdir" != ""; then :
   # libdir was specified - search only there
           paffinity_hwloc_LDFLAGS="$paffinity_hwloc_LDFLAGS -L$opal_check_hwloc_libdir"
           LDFLAGS="$LDFLAGS -L$opal_check_hwloc_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                  paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                  unset ac_cv_lib_hwloc_hwloc_topology_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$opal_check_hwloc_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                     paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                     unset ac_cv_lib_hwloc_hwloc_topology_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  paffinity_hwloc_LDFLAGS="$paffinity_hwloc_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                          paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                          unset ac_cv_lib_hwloc_hwloc_topology_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  paffinity_hwloc_LDFLAGS="$paffinity_hwloc_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                          paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                          unset ac_cv_lib_hwloc_hwloc_topology_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  paffinity_hwloc_LIBS="-lhwloc "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_hwloc_hwloc_topology_init
    ompi_check_package_lib_happy="no"
    if test "$opal_check_hwloc_libdir" != ""; then :
   # libdir was specified - search only there
           paffinity_hwloc_LDFLAGS="$paffinity_hwloc_LDFLAGS -L$opal_check_hwloc_libdir"
           LDFLAGS="$LDFLAGS -L$opal_check_hwloc_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                  paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                  unset ac_cv_lib_hwloc_hwloc_topology_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$opal_check_hwloc_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                     paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                     unset ac_cv_lib_hwloc_hwloc_topology_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  paffinity_hwloc_LDFLAGS="$paffinity_hwloc_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                          paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                          unset ac_cv_lib_hwloc_hwloc_topology_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  paffinity_hwloc_LDFLAGS="$paffinity_hwloc_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_init in -lhwloc" >&5
$as_echo_n "checking for hwloc_topology_init in -lhwloc... " >&6; }
if test "${ac_cv_lib_hwloc_hwloc_topology_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhwloc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hwloc_topology_init ();
int
main ()
{
return hwloc_topology_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hwloc_hwloc_topology_init=yes
else
  ac_cv_lib_hwloc_hwloc_topology_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_init" >&5
$as_echo "$ac_cv_lib_hwloc_hwloc_topology_init" >&6; }
if test "x$ac_cv_lib_hwloc_hwloc_topology_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
                          paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
                          unset ac_cv_lib_hwloc_hwloc_topology_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  paffinity_hwloc_LIBS="-lhwloc "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  opal_check_hwloc_happy=yes
else
  paffinity_hwloc_CPPFLAGS="$ompi_check_package_paffinity_hwloc_orig_CPPFLAGS"
           paffinity_hwloc_LDFLAGS="$ompi_check_package_paffinity_hwloc_orig_LDFLAGS"
           paffinity_hwloc_LIBS="$ompi_check_package_paffinity_hwloc_orig_LIBS"
           opal_check_hwloc_happy=no
fi

    CPPFLAGS="$ompi_check_package_paffinity_hwloc_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_paffinity_hwloc_save_LDFLAGS"
    LIBS="$ompi_check_package_paffinity_hwloc_save_LIBS"


fi

    CPPFLAGS=$opal_check_hwloc_save_CPPFLAGS
    LDFLAGS=$opal_check_hwloc_save_LDFLAGS
    LIBS=$opal_check_hwloc_save_LIBS






    # Done!
    if test "$opal_check_hwloc_happy" = "yes"; then :

cat >>confdefs.h <<_ACEOF
#define PAFFINITY_HWLOC_HWLOC_VERSION "$HWLOC_VERSION"
_ACEOF

           should_build=1
else
  if test ! -z "$with_hwloc" -a "$with_hwloc" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hwloc support requested (via --with-hwloc) but not found." >&5
$as_echo "$as_me: WARNING: hwloc support requested (via --with-hwloc) but not found." >&2;}
                  as_fn_error "Cannot continue." "$LINENO" 5
fi
           should_build=0
fi

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=paffinity
    component=hwloc

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_paffinity" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_paffinity" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component paffinity:hwloc can compile" >&5
$as_echo_n "checking if MCA component paffinity:hwloc can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "hwloc" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hwloc\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hwloc\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "hwloc" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hwloc\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hwloc\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components hwloc"
fi


     if test "$paffinity_hwloc_location" = "internal"; then
  OPAL_PAFFINITY_HWLOC_INTERNAL_TRUE=
  OPAL_PAFFINITY_HWLOC_INTERNAL_FALSE='#'
else
  OPAL_PAFFINITY_HWLOC_INTERNAL_TRUE='#'
  OPAL_PAFFINITY_HWLOC_INTERNAL_FALSE=
fi



    if test "$hwloc_did_am_conditionals" != "yes"; then :

         if test "$hwloc_mode" = "standalone"; then
  HWLOC_BUILD_STANDALONE_TRUE=
  HWLOC_BUILD_STANDALONE_FALSE='#'
else
  HWLOC_BUILD_STANDALONE_TRUE='#'
  HWLOC_BUILD_STANDALONE_FALSE=
fi


         if test "x$GCC" = "xyes"; then
  HWLOC_HAVE_GCC_TRUE=
  HWLOC_HAVE_GCC_FALSE='#'
else
  HWLOC_HAVE_GCC_TRUE='#'
  HWLOC_HAVE_GCC_FALSE=
fi

         if test "x$HWLOC_MS_LIB" != "x"; then
  HWLOC_HAVE_MS_LIB_TRUE=
  HWLOC_HAVE_MS_LIB_FALSE='#'
else
  HWLOC_HAVE_MS_LIB_TRUE='#'
  HWLOC_HAVE_MS_LIB_FALSE=
fi

         if test "x$hwloc_have_openat" = "xyes"; then
  HWLOC_HAVE_OPENAT_TRUE=
  HWLOC_HAVE_OPENAT_FALSE='#'
else
  HWLOC_HAVE_OPENAT_TRUE='#'
  HWLOC_HAVE_OPENAT_FALSE=
fi

         if test "x$hwloc_have_linux_libnuma" = "xyes"; then
  HWLOC_HAVE_LINUX_LIBNUMA_TRUE=
  HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#'
else
  HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#'
  HWLOC_HAVE_LINUX_LIBNUMA_FALSE=
fi

         if test "x$hwloc_have_sched_setaffinity" = "xyes"; then
  HWLOC_HAVE_SCHED_SETAFFINITY_TRUE=
  HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#'
else
  HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#'
  HWLOC_HAVE_SCHED_SETAFFINITY_FALSE=
fi

         if test "x$hwloc_have_libibverbs" = "xyes"; then
  HWLOC_HAVE_LIBIBVERBS_TRUE=
  HWLOC_HAVE_LIBIBVERBS_FALSE='#'
else
  HWLOC_HAVE_LIBIBVERBS_TRUE='#'
  HWLOC_HAVE_LIBIBVERBS_FALSE=
fi

	 if test "x$hwloc_have_cuda" = "xyes"; then
  HWLOC_HAVE_CUDA_TRUE=
  HWLOC_HAVE_CUDA_FALSE='#'
else
  HWLOC_HAVE_CUDA_TRUE='#'
  HWLOC_HAVE_CUDA_FALSE=
fi

	 if test "x$hwloc_have_myriexpress" = "xyes"; then
  HWLOC_HAVE_MYRIEXPRESS_TRUE=
  HWLOC_HAVE_MYRIEXPRESS_FALSE='#'
else
  HWLOC_HAVE_MYRIEXPRESS_TRUE='#'
  HWLOC_HAVE_MYRIEXPRESS_FALSE=
fi

	 if test "x$hwloc_have_cudart" = "xyes"; then
  HWLOC_HAVE_CUDART_TRUE=
  HWLOC_HAVE_CUDART_FALSE='#'
else
  HWLOC_HAVE_CUDART_TRUE='#'
  HWLOC_HAVE_CUDART_FALSE=
fi

         if test "x$enable_cairo" != "xno"; then
  HWLOC_HAVE_CAIRO_TRUE=
  HWLOC_HAVE_CAIRO_FALSE='#'
else
  HWLOC_HAVE_CAIRO_TRUE='#'
  HWLOC_HAVE_CAIRO_FALSE=
fi

         if test "x$enable_xml" != "xno"; then
  HWLOC_HAVE_XML_TRUE=
  HWLOC_HAVE_XML_FALSE='#'
else
  HWLOC_HAVE_XML_TRUE='#'
  HWLOC_HAVE_XML_FALSE=
fi

         if test "x$enable_set_mempolicy" != "xno"; then
  HWLOC_HAVE_SET_MEMPOLICY_TRUE=
  HWLOC_HAVE_SET_MEMPOLICY_FALSE='#'
else
  HWLOC_HAVE_SET_MEMPOLICY_TRUE='#'
  HWLOC_HAVE_SET_MEMPOLICY_FALSE=
fi

         if test "x$enable_mbind" != "xno"; then
  HWLOC_HAVE_MBIND_TRUE=
  HWLOC_HAVE_MBIND_FALSE='#'
else
  HWLOC_HAVE_MBIND_TRUE='#'
  HWLOC_HAVE_MBIND_FALSE=
fi

         if test "x$BUNZIPP" != "xfalse"; then
  HWLOC_HAVE_BUNZIPP_TRUE=
  HWLOC_HAVE_BUNZIPP_FALSE='#'
else
  HWLOC_HAVE_BUNZIPP_TRUE='#'
  HWLOC_HAVE_BUNZIPP_FALSE=
fi


         if test "x$hwloc_generate_doxs" = "xyes"; then
  HWLOC_BUILD_DOXYGEN_TRUE=
  HWLOC_BUILD_DOXYGEN_FALSE='#'
else
  HWLOC_BUILD_DOXYGEN_TRUE='#'
  HWLOC_BUILD_DOXYGEN_FALSE=
fi

         if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then
  HWLOC_BUILD_README_TRUE=
  HWLOC_BUILD_README_FALSE='#'
else
  HWLOC_BUILD_README_TRUE='#'
  HWLOC_BUILD_README_FALSE=
fi

         if test "x$hwloc_install_doxs" = "xyes"; then
  HWLOC_INSTALL_DOXYGEN_TRUE=
  HWLOC_INSTALL_DOXYGEN_FALSE='#'
else
  HWLOC_INSTALL_DOXYGEN_TRUE='#'
  HWLOC_INSTALL_DOXYGEN_FALSE=
fi


         if test "x$hwloc_linux" = "xyes"; then
  HWLOC_HAVE_LINUX_TRUE=
  HWLOC_HAVE_LINUX_FALSE='#'
else
  HWLOC_HAVE_LINUX_TRUE='#'
  HWLOC_HAVE_LINUX_FALSE=
fi

         if test "x$hwloc_irix" = "xyes"; then
  HWLOC_HAVE_IRIX_TRUE=
  HWLOC_HAVE_IRIX_FALSE='#'
else
  HWLOC_HAVE_IRIX_TRUE='#'
  HWLOC_HAVE_IRIX_FALSE=
fi

         if test "x$hwloc_darwin" = "xyes"; then
  HWLOC_HAVE_DARWIN_TRUE=
  HWLOC_HAVE_DARWIN_FALSE='#'
else
  HWLOC_HAVE_DARWIN_TRUE='#'
  HWLOC_HAVE_DARWIN_FALSE=
fi

         if test "x$hwloc_freebsd" = "xyes"; then
  HWLOC_HAVE_FREEBSD_TRUE=
  HWLOC_HAVE_FREEBSD_FALSE='#'
else
  HWLOC_HAVE_FREEBSD_TRUE='#'
  HWLOC_HAVE_FREEBSD_FALSE=
fi

         if test "x$hwloc_solaris" = "xyes"; then
  HWLOC_HAVE_SOLARIS_TRUE=
  HWLOC_HAVE_SOLARIS_FALSE='#'
else
  HWLOC_HAVE_SOLARIS_TRUE='#'
  HWLOC_HAVE_SOLARIS_FALSE=
fi

         if test "x$hwloc_aix" = "xyes"; then
  HWLOC_HAVE_AIX_TRUE=
  HWLOC_HAVE_AIX_FALSE='#'
else
  HWLOC_HAVE_AIX_TRUE='#'
  HWLOC_HAVE_AIX_FALSE=
fi

         if test "x$hwloc_osf" = "xyes"; then
  HWLOC_HAVE_OSF_TRUE=
  HWLOC_HAVE_OSF_FALSE='#'
else
  HWLOC_HAVE_OSF_TRUE='#'
  HWLOC_HAVE_OSF_FALSE=
fi

         if test "x$hwloc_hpux" = "xyes"; then
  HWLOC_HAVE_HPUX_TRUE=
  HWLOC_HAVE_HPUX_FALSE='#'
else
  HWLOC_HAVE_HPUX_TRUE='#'
  HWLOC_HAVE_HPUX_FALSE=
fi

         if test "x$hwloc_windows" = "xyes"; then
  HWLOC_HAVE_WINDOWS_TRUE=
  HWLOC_HAVE_WINDOWS_FALSE='#'
else
  HWLOC_HAVE_WINDOWS_TRUE='#'
  HWLOC_HAVE_WINDOWS_FALSE=
fi

         if test "x$target_os" = "xmingw32"; then
  HWLOC_HAVE_MINGW32_TRUE=
  HWLOC_HAVE_MINGW32_FALSE='#'
else
  HWLOC_HAVE_MINGW32_TRUE='#'
  HWLOC_HAVE_MINGW32_FALSE=
fi


         if test "x$hwloc_x86_32" = "xyes"; then
  HWLOC_HAVE_X86_32_TRUE=
  HWLOC_HAVE_X86_32_FALSE='#'
else
  HWLOC_HAVE_X86_32_TRUE='#'
  HWLOC_HAVE_X86_32_FALSE=
fi

         if test "x$hwloc_x86_64" = "xyes"; then
  HWLOC_HAVE_X86_64_TRUE=
  HWLOC_HAVE_X86_64_FALSE='#'
else
  HWLOC_HAVE_X86_64_TRUE='#'
  HWLOC_HAVE_X86_64_FALSE=
fi

         if test "$HWLOC_DOXYGEN_VERSION" = "1.6.2"; then
  HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_TRUE=
  HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_FALSE='#'
else
  HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_TRUE='#'
  HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_FALSE=
fi

         if test "x$hwloc_have_cpuid" = "xyes"; then
  HWLOC_HAVE_CPUID_TRUE=
  HWLOC_HAVE_CPUID_FALSE='#'
else
  HWLOC_HAVE_CPUID_TRUE='#'
  HWLOC_HAVE_CPUID_FALSE=
fi

         if test "$hwloc_build_utils" = "yes"; then
  HWLOC_BUILD_UTILS_TRUE=
  HWLOC_BUILD_UTILS_FALSE='#'
else
  HWLOC_BUILD_UTILS_TRUE='#'
  HWLOC_BUILD_UTILS_FALSE=
fi

         if test "$hwloc_build_tests" = "yes"; then
  HWLOC_BUILD_TESTS_TRUE=
  HWLOC_BUILD_TESTS_FALSE='#'
else
  HWLOC_BUILD_TESTS_TRUE='#'
  HWLOC_BUILD_TESTS_FALSE=
fi


fi
    hwloc_did_am_conditionals=yes



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_paffinity_hwloc_DSO=1
else
  BUILD_paffinity_hwloc_DSO=0
fi
     if test "$BUILD_paffinity_hwloc_DSO" = "1"; then
  OMPI_BUILD_paffinity_hwloc_DSO_TRUE=
  OMPI_BUILD_paffinity_hwloc_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_hwloc_DSO_TRUE='#'
  OMPI_BUILD_paffinity_hwloc_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/test/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component paffinity:test (m4 configuration macro)"




    project=opal
    framework=paffinity
    component=test
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_paffinity" ; then
            if test "$DIRECT_paffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=paffinity
    component=test

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # check to see if we have <mach/mach_host.h>
    # as this is a Darwin-specific thing and
    # we are a test module for that environment

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is an --enable-debug build" >&5
$as_echo_n "checking if this is an --enable-debug build... " >&6; }
    if test "$WANT_DEBUG" = "1"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
           ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_host_h" = x""yes; then :
  should_build=1
else
  should_build=0
fi


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (component disabled)" >&5
$as_echo "no (component disabled)" >&6; }
           should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=paffinity
    component=test

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_paffinity" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_paffinity" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component paffinity:test can compile" >&5
$as_echo_n "checking if MCA component paffinity:test can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "test" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"test\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"test\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "test" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"test\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"test\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components test"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_paffinity_test_DSO=1
else
  BUILD_paffinity_test_DSO=0
fi
     if test "$BUILD_paffinity_test_DSO" = "1"; then
  OMPI_BUILD_paffinity_test_DSO_TRUE=
  OMPI_BUILD_paffinity_test_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_test_DSO_TRUE='#'
  OMPI_BUILD_paffinity_test_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi

    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_paffinity_ALL_COMPONENTS="$all_components"
    MCA_paffinity_STATIC_COMPONENTS="$static_components"
    MCA_paffinity_DSO_COMPONENTS="$dso_components"
    MCA_paffinity_STATIC_LTLIBS="$static_ltlibs"







    MCA_paffinity_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_paffinity_ALL_SUBDIRS="$MCA_paffinity_ALL_SUBDIRS mca/paffinity/$item"
    done



    MCA_paffinity_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_paffinity_STATIC_SUBDIRS="$MCA_paffinity_STATIC_SUBDIRS mca/paffinity/$item"
    done



    MCA_paffinity_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_paffinity_DSO_SUBDIRS="$MCA_paffinity_DSO_SUBDIRS mca/paffinity/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "paffinity" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_paffinity_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "pstat" = "common" ; then
                              MCA_opal_FRAMEWORKS="pstat $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/pstat $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pstat_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pstat_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pstat_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS pstat"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/pstat"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pstat_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pstat_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pstat_STATIC_SUBDIRS)"
                          fi
                          if test "pstat" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/pstat/libmca_pstat.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_pstat_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework pstat"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "pstat" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/pstat/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pstat" >&5
$as_echo_n "checking for no configure components in framework pstat... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pstat" >&5
$as_echo_n "checking for m4 configure components in framework pstat... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux, darwin" >&5
$as_echo "linux, darwin" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/opal/mca/pstat/linux/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component pstat:linux (m4 configuration macro)"




    project=opal
    framework=pstat
    component=linux
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pstat" ; then
            if test "$DIRECT_pstat" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=pstat
    component=linux

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pstat" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


   case "${host}" in
   i?86-*linux*|x86_64*linux*|ia64-*linux*|powerpc-*linux*|powerpc64-*linux*|sparc*-*linux*)
              if test -r "/proc/cpuinfo"; then :
  pstat_linux_happy="yes"
else
  pstat_linux_happy="no"
fi
        ;;
   *)
        pstat_linux_happy="no"
        ;;
   esac

   if test "$pstat_linux_happy" = "yes"; then :
  ac_fn_c_check_decl "$LINENO" "HZ" "ac_cv_have_decl_HZ" "$ac_includes_default
#include <sys/param.h>

"
if test "x$ac_cv_have_decl_HZ" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_HZ $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :

else
  pstat_linux_happy="no"
fi

fi

   if test "$pstat_linux_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=pstat
    component=linux

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pstat" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pstat" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pstat:linux can compile" >&5
$as_echo_n "checking if MCA component pstat:linux can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pstat" = "linux" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pstat" ; then
        if test "$DIRECT_pstat" = "linux" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components linux"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_pstat_linux_DSO=1
else
  BUILD_pstat_linux_DSO=0
fi
     if test "$BUILD_pstat_linux_DSO" = "1"; then
  OMPI_BUILD_pstat_linux_DSO_TRUE=
  OMPI_BUILD_pstat_linux_DSO_FALSE='#'
else
  OMPI_BUILD_pstat_linux_DSO_TRUE='#'
  OMPI_BUILD_pstat_linux_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/opal/mca/pstat/darwin/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component pstat:darwin (m4 configuration macro)"




    project=opal
    framework=pstat
    component=darwin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pstat" ; then
            if test "$DIRECT_pstat" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=pstat
    component=darwin

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pstat" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in paff_darwin_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"paff_darwin_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # check to see if we have <mach/mach_host.h>
    # as this is a Darwin-specific thing
    ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_host_h" = x""yes; then :
  paff_darwin_happy=yes
else
  paff_darwin_happy=no
fi



    if test "$paff_darwin_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=pstat
    component=darwin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pstat" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pstat" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pstat:darwin can compile" >&5
$as_echo_n "checking if MCA component pstat:darwin can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pstat" = "darwin" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pstat" ; then
        if test "$DIRECT_pstat" = "darwin" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components darwin"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_pstat_darwin_DSO=1
else
  BUILD_pstat_darwin_DSO=0
fi
     if test "$BUILD_pstat_darwin_DSO" = "1"; then
  OMPI_BUILD_pstat_darwin_DSO_TRUE=
  OMPI_BUILD_pstat_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_pstat_darwin_DSO_TRUE='#'
  OMPI_BUILD_pstat_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi

    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_pstat_ALL_COMPONENTS="$all_components"
    MCA_pstat_STATIC_COMPONENTS="$static_components"
    MCA_pstat_DSO_COMPONENTS="$dso_components"
    MCA_pstat_STATIC_LTLIBS="$static_ltlibs"







    MCA_pstat_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_pstat_ALL_SUBDIRS="$MCA_pstat_ALL_SUBDIRS mca/pstat/$item"
    done



    MCA_pstat_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_pstat_STATIC_SUBDIRS="$MCA_pstat_STATIC_SUBDIRS mca/pstat/$item"
    done



    MCA_pstat_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_pstat_DSO_SUBDIRS="$MCA_pstat_DSO_SUBDIRS mca/pstat/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "pstat" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_pstat_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "sysinfo" = "common" ; then
                              MCA_opal_FRAMEWORKS="sysinfo $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/sysinfo $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_sysinfo_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_sysinfo_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_sysinfo_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS sysinfo"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/sysinfo"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_sysinfo_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_sysinfo_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_sysinfo_STATIC_SUBDIRS)"
                          fi
                          if test "sysinfo" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/sysinfo/libmca_sysinfo.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_sysinfo_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework sysinfo"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "sysinfo" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/sysinfo/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework sysinfo" >&5
$as_echo_n "checking for no configure components in framework sysinfo... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework sysinfo" >&5
$as_echo_n "checking for m4 configure components in framework sysinfo... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux, solaris, darwin" >&5
$as_echo "linux, solaris, darwin" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/opal/mca/sysinfo/linux/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component sysinfo:linux (m4 configuration macro)"




    project=opal
    framework=sysinfo
    component=linux
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sysinfo" ; then
            if test "$DIRECT_sysinfo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=sysinfo
    component=linux

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_sysinfo" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on Linux" >&5
$as_echo_n "checking if we are on Linux... " >&6; }
    # If we are on Linux, then we're happy.
    if test "$opal_found_linux" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
           should_build=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
           should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=sysinfo
    component=linux

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sysinfo" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sysinfo" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sysinfo:linux can compile" >&5
$as_echo_n "checking if MCA component sysinfo:linux can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sysinfo" = "linux" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_sysinfo" ; then
        if test "$DIRECT_sysinfo" = "linux" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components linux"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_sysinfo_linux_DSO=1
else
  BUILD_sysinfo_linux_DSO=0
fi
     if test "$BUILD_sysinfo_linux_DSO" = "1"; then
  OMPI_BUILD_sysinfo_linux_DSO_TRUE=
  OMPI_BUILD_sysinfo_linux_DSO_FALSE='#'
else
  OMPI_BUILD_sysinfo_linux_DSO_TRUE='#'
  OMPI_BUILD_sysinfo_linux_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/opal/mca/sysinfo/solaris/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component sysinfo:solaris (m4 configuration macro)"




    project=opal
    framework=sysinfo
    component=solaris
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sysinfo" ; then
            if test "$DIRECT_sysinfo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=sysinfo
    component=solaris

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_sysinfo" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # check to see if we are on a solaris machine
    case $host in
        *solaris*)
            if test "x$ompi_cv_c_compiler_vendor" = "xsun"; then
                sysinfo_solaris_happy=yes
                { $as_echo "$as_me:${as_lineno-$LINENO}: *** Open MPI supports solaris sysinfo on this platform" >&5
$as_echo "$as_me: *** Open MPI supports solaris sysinfo on this platform" >&6;}
            else
                sysinfo_solaris_happy=no
            fi
            ;;
        *)
            sysinfo_solaris_happy=no
            { $as_echo "$as_me:${as_lineno-$LINENO}: *** Open MPI does not support solaris sysinfo on this platform" >&5
$as_echo "$as_me: *** Open MPI does not support solaris sysinfo on this platform" >&6;}
            ;;
    esac

    if test "$sysinfo_solaris_happy" = "yes"; then :


# Check whether --with-libpicl was given.
if test "${with_libpicl+set}" = set; then :
  withval=$with_libpicl;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libpicl value" >&5
$as_echo_n "checking --with-libpicl value... " >&6; }
    if test "$with_libpicl" = "yes" -o "$with_libpicl" = "no" -o "x$with_libpicl" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_libpicl"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libpicl not found" >&5
$as_echo "$as_me: WARNING: Directory $with_libpicl not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_libpicl/include/picl.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libpicl/include/picl.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_libpicl/include/picl.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libpicl)" >&5
$as_echo "sanity check ok ($with_libpicl)" >&6; }

fi


fi


fi


# Check whether --with-libpicl-libdir was given.
if test "${with_libpicl_libdir+set}" = set; then :
  withval=$with_libpicl_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libpicl-libdir value" >&5
$as_echo_n "checking --with-libpicl-libdir value... " >&6; }
    if test "$with_libpicl_libdir" = "yes" -o "$with_libpicl_libdir" = "no" -o "x$with_libpicl_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_libpicl_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libpicl_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_libpicl_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_libpicl_libdir/lib/libpicl* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libpicl_libdir/lib/libpicl* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_libpicl_libdir/lib/libpicl* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libpicl_libdir)" >&5
$as_echo "sanity check ok ($with_libpicl_libdir)" >&6; }

fi


fi


fi


    if test ! -z "$with_libpicl" -a "$with_libpicl" != "yes"; then :
  sysinfo_solaris_dir="$with_libpicl"
fi
    if test ! -z "$with_libpicl_libdir" -a "$with_libpicl_libdir" != "yes"; then :
  sysinfo_solaris_libdir="$with_libpicl_libdir"
fi

    if test "$with_libpicl" = "no"; then :
  sysinfo_solaris_happy="no"
else
  sysinfo_solaris_happy="yes"
fi

    if test "$sysinfo_solaris_happy" = "yes"; then :

    ompi_check_package_sysinfo_solaris_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_sysinfo_solaris_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_sysinfo_solaris_save_LIBS="$LIBS"

    ompi_check_package_sysinfo_solaris_orig_CPPFLAGS="$sysinfo_solaris_CPPFLAGS"
    ompi_check_package_sysinfo_solaris_orig_LDFLAGS="$sysinfo_solaris_LDFLAGS"
    ompi_check_package_sysinfo_solaris_orig_LIBS="$sysinfo_solaris_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_picl_h

    ompi_check_package_header_happy="no"
    if test "$sysinfo_solaris_dir" = "/usr" -o "$sysinfo_solaris_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
if test "x$ac_cv_header_picl_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_picl_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$sysinfo_solaris_dir" != ""; then :
  sysinfo_solaris_CPPFLAGS="$sysinfo_solaris_CPPFLAGS -I$sysinfo_solaris_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$sysinfo_solaris_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
if test "x$ac_cv_header_picl_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_picl_picl_initialize
    ompi_check_package_lib_happy="no"
    if test "$sysinfo_solaris_libdir" != ""; then :
   # libdir was specified - search only there
           sysinfo_solaris_LDFLAGS="$sysinfo_solaris_LDFLAGS -L$sysinfo_solaris_libdir"
           LDFLAGS="$LDFLAGS -L$sysinfo_solaris_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                  sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                  unset ac_cv_lib_picl_picl_initialize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$sysinfo_solaris_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                     sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                     unset ac_cv_lib_picl_picl_initialize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  sysinfo_solaris_LDFLAGS="$sysinfo_solaris_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                          sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                          unset ac_cv_lib_picl_picl_initialize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  sysinfo_solaris_LDFLAGS="$sysinfo_solaris_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                          sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                          unset ac_cv_lib_picl_picl_initialize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  sysinfo_solaris_LIBS="-lpicl "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_picl_picl_initialize
    ompi_check_package_lib_happy="no"
    if test "$sysinfo_solaris_libdir" != ""; then :
   # libdir was specified - search only there
           sysinfo_solaris_LDFLAGS="$sysinfo_solaris_LDFLAGS -L$sysinfo_solaris_libdir"
           LDFLAGS="$LDFLAGS -L$sysinfo_solaris_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                  sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                  unset ac_cv_lib_picl_picl_initialize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$sysinfo_solaris_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                     sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                     unset ac_cv_lib_picl_picl_initialize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  sysinfo_solaris_LDFLAGS="$sysinfo_solaris_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                          sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                          unset ac_cv_lib_picl_picl_initialize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  sysinfo_solaris_LDFLAGS="$sysinfo_solaris_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
if test "${ac_cv_lib_picl_picl_initialize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpicl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char picl_initialize ();
int
main ()
{
return picl_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_picl_picl_initialize=yes
else
  ac_cv_lib_picl_picl_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
if test "x$ac_cv_lib_picl_picl_initialize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
                          sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
                          unset ac_cv_lib_picl_picl_initialize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  sysinfo_solaris_LIBS="-lpicl "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  sysinfo_solaris_happy="yes"
else
  sysinfo_solaris_CPPFLAGS="$ompi_check_package_sysinfo_solaris_orig_CPPFLAGS"
           sysinfo_solaris_LDFLAGS="$ompi_check_package_sysinfo_solaris_orig_LDFLAGS"
           sysinfo_solaris_LIBS="$ompi_check_package_sysinfo_solaris_orig_LIBS"
           sysinfo_solaris_happy="no"
fi

    CPPFLAGS="$ompi_check_package_sysinfo_solaris_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_sysinfo_solaris_save_LDFLAGS"
    LIBS="$ompi_check_package_sysinfo_solaris_save_LIBS"

fi

    if test "$sysinfo_solaris_happy" = "yes"; then :
  sysinfo_solaris_WRAPPER_EXTRA_LDFLAGS="$sysinfo_solaris_LDFLAGS"
           sysinfo_solaris_WRAPPER_EXTRA_LIBS="$sysinfo_solaris_LIBS"
           ac_fn_c_check_decl "$LINENO" "MPOL_MF_MOVE" "ac_cv_have_decl_MPOL_MF_MOVE" "$ac_includes_default"
if test "x$ac_cv_have_decl_MPOL_MF_MOVE" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_MPOL_MF_MOVE $ac_have_decl
_ACEOF

                                     should_build=1
else
  should_build=0
fi

    # sanity check
    if test "$sysinfo_solaris_happy" = "no"; then :
  if test "$with_libpicl" != "no" -a ! -z "$with_libpicl"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sysinfo:solaris requested but not found" >&5
$as_echo "$as_me: WARNING: sysinfo:solaris requested but not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    # substitute in the things needed to build libnuma





else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=sysinfo
    component=solaris

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sysinfo" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sysinfo" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sysinfo:solaris can compile" >&5
$as_echo_n "checking if MCA component sysinfo:solaris can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sysinfo" = "solaris" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_sysinfo" ; then
        if test "$DIRECT_sysinfo" = "solaris" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components solaris"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_sysinfo_solaris_DSO=1
else
  BUILD_sysinfo_solaris_DSO=0
fi
     if test "$BUILD_sysinfo_solaris_DSO" = "1"; then
  OMPI_BUILD_sysinfo_solaris_DSO_TRUE=
  OMPI_BUILD_sysinfo_solaris_DSO_FALSE='#'
else
  OMPI_BUILD_sysinfo_solaris_DSO_TRUE='#'
  OMPI_BUILD_sysinfo_solaris_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/opal/mca/sysinfo/darwin/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component sysinfo:darwin (m4 configuration macro)"




    project=opal
    framework=sysinfo
    component=darwin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sysinfo" ; then
            if test "$DIRECT_sysinfo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=sysinfo
    component=darwin

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_sysinfo" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in sysinfo_darwin_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"sysinfo_darwin_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # check to see if we have <mach/mach_host.h>
    # as this is a Darwin-specific thing
    ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_host_h" = x""yes; then :
  sysinfo_darwin_happy=yes
else
  sysinfo_darwin_happy=no
fi



    if test "$sysinfo_darwin_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=sysinfo
    component=darwin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sysinfo" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sysinfo" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sysinfo:darwin can compile" >&5
$as_echo_n "checking if MCA component sysinfo:darwin can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sysinfo" = "darwin" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_sysinfo" ; then
        if test "$DIRECT_sysinfo" = "darwin" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components darwin"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_sysinfo_darwin_DSO=1
else
  BUILD_sysinfo_darwin_DSO=0
fi
     if test "$BUILD_sysinfo_darwin_DSO" = "1"; then
  OMPI_BUILD_sysinfo_darwin_DSO_TRUE=
  OMPI_BUILD_sysinfo_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_sysinfo_darwin_DSO_TRUE='#'
  OMPI_BUILD_sysinfo_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi

    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_sysinfo_ALL_COMPONENTS="$all_components"
    MCA_sysinfo_STATIC_COMPONENTS="$static_components"
    MCA_sysinfo_DSO_COMPONENTS="$dso_components"
    MCA_sysinfo_STATIC_LTLIBS="$static_ltlibs"







    MCA_sysinfo_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_sysinfo_ALL_SUBDIRS="$MCA_sysinfo_ALL_SUBDIRS mca/sysinfo/$item"
    done



    MCA_sysinfo_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_sysinfo_STATIC_SUBDIRS="$MCA_sysinfo_STATIC_SUBDIRS mca/sysinfo/$item"
    done



    MCA_sysinfo_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_sysinfo_DSO_SUBDIRS="$MCA_sysinfo_DSO_SUBDIRS mca/sysinfo/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "sysinfo" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_sysinfo_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "timer" = "common" ; then
                              MCA_opal_FRAMEWORKS="timer $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/timer $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_timer_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_timer_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_timer_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS timer"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/timer"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_timer_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_timer_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_timer_STATIC_SUBDIRS)"
                          fi
                          if test "timer" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/timer/libmca_timer.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_timer_STATIC_LTLIBS)"

        timer_base_include=

        # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework timer"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "timer" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/timer/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework timer" >&5
$as_echo_n "checking for no configure components in framework timer... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework timer" >&5
$as_echo_n "checking for m4 configure components in framework timer... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: catamount, aix, altix, darwin, solaris, windows, linux" >&5
$as_echo "catamount, aix, altix, darwin, solaris, windows, linux" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component timer:catamount (m4 configuration macro)"




    project=opal
    framework=timer
    component=catamount
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:catamount compile mode" >&5
$as_echo_n "checking for MCA component timer:catamount compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "catamount"; then :
  timer_catamount_happy="yes"
           timer_catamount_should_use=1
else
  timer_catamount_should_use=0
           if test "$with_timer" = ""; then :
  timer_catamount_happy="yes"
else
  timer_catamount_happy="no"
fi
fi

   if test "$timer_catamount_happy" = "yes"; then :
  for ac_header in catamount/dclock.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "catamount/dclock.h" "ac_cv_header_catamount_dclock_h" "$ac_includes_default"
if test "x$ac_cv_header_catamount_dclock_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CATAMOUNT_DCLOCK_H 1
_ACEOF

else
  timer_catamount_happy=no
fi

done

fi

   if test "$timer_catamount_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_mhz" >&5
$as_echo_n "checking for __cpu_mhz... " >&6; }
if test "${ompi_cv_have___cpu_mhz+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <catamount/dclock.h>

int
main ()
{

unsigned int a = __cpu_mhz;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_have___cpu_mhz=yes
else
  ompi_cv_have___cpu_mhz=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_have___cpu_mhz" >&5
$as_echo "$ompi_cv_have___cpu_mhz" >&6; }
          if test "$ompi_cv_have___cpu_mhz" = "no"; then :
  timer_catamount_happy="no"
fi
fi

   if test "$timer_catamount_happy" = "no" -a \
               "$timer_catamount_should_use" = "1"; then :
  as_fn_error "Catamount timer requested but not available.  Aborting." "$LINENO" 5
fi

    if test "$timer_catamount_happy" = "yes"; then :
  timer_base_include="catamount/timer_catamount.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=catamount

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:catamount can compile" >&5
$as_echo_n "checking if MCA component timer:catamount can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "catamount" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"catamount\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "catamount" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"catamount\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components catamount"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_catamount_DSO=1
else
  BUILD_timer_catamount_DSO=0
fi
     if test "$BUILD_timer_catamount_DSO" = "1"; then
  OMPI_BUILD_timer_catamount_DSO_TRUE=
  OMPI_BUILD_timer_catamount_DSO_FALSE='#'
else
  OMPI_BUILD_timer_catamount_DSO_TRUE='#'
  OMPI_BUILD_timer_catamount_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component timer:aix (m4 configuration macro)"




    project=opal
    framework=timer
    component=aix
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:aix compile mode" >&5
$as_echo_n "checking for MCA component timer:aix compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "aix"; then :
  timer_aix_happy="yes"
           timer_aix_should_use=1
else
  timer_aix_should_use=0
           if test "$with_timer" = ""; then :
  timer_aix_happy="yes"
else
  timer_aix_happy="no"
fi
fi

    if test "$timer_aix_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "time_base_to_time" "ac_cv_func_time_base_to_time"
if test "x$ac_cv_func_time_base_to_time" = x""yes; then :
  timer_aix_happy="yes"
else
  timer_aix_happy="no"
fi

fi

    # look to see if -lpmapi is available
    timer_aix_LIBS=
    timer_aix_LIBS_SAVE="$LIBS"
    if test "$timer_aix_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pm_cycles in -lpmapi" >&5
$as_echo_n "checking for pm_cycles in -lpmapi... " >&6; }
if test "${ac_cv_lib_pmapi_pm_cycles+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmapi  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pm_cycles ();
int
main ()
{
return pm_cycles ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pmapi_pm_cycles=yes
else
  ac_cv_lib_pmapi_pm_cycles=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmapi_pm_cycles" >&5
$as_echo "$ac_cv_lib_pmapi_pm_cycles" >&6; }
if test "x$ac_cv_lib_pmapi_pm_cycles" = x""yes; then :
  LIBS="$LIBS -lpmapi"
                         timer_aix_LIBS="-lpmapi"
else
  timer_aix_LIBS=""
fi

fi

    # get us a HAVE_PM_CYCLES #define
    if test "$timer_aix_happy" = "yes"; then :
  for ac_func in pm_cycles
do :
  ac_fn_c_check_func "$LINENO" "pm_cycles" "ac_cv_func_pm_cycles"
if test "x$ac_cv_func_pm_cycles" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PM_CYCLES 1
_ACEOF

fi
done

           for ac_header in pmapi.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pmapi.h" "ac_cv_header_pmapi_h" "$ac_includes_default"
if test "x$ac_cv_header_pmapi_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PMAPI_H 1
_ACEOF

fi

done

fi
   LIBS="$timer_aix_LIBS_SAVE"

    if test "$timer_aix_happy" = "no" -a \
                "$timer_aix_should_use" = "1"; then :
  as_fn_error "AIX timer requested but not available.  Aborting." "$LINENO" 5
fi



    if test "$timer_aix_happy" = "yes"; then :
  timer_aix_WRAPPER_EXTRA_LIBS="$timer_aix_LIBS"
           timer_base_include="aix/timer_aix.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=aix

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:aix can compile" >&5
$as_echo_n "checking if MCA component timer:aix can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "aix" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"aix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "aix" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"aix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components aix"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_aix_DSO=1
else
  BUILD_timer_aix_DSO=0
fi
     if test "$BUILD_timer_aix_DSO" = "1"; then
  OMPI_BUILD_timer_aix_DSO_TRUE=
  OMPI_BUILD_timer_aix_DSO_FALSE='#'
else
  OMPI_BUILD_timer_aix_DSO_TRUE='#'
  OMPI_BUILD_timer_aix_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component timer:altix (m4 configuration macro)"




    project=opal
    framework=timer
    component=altix
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:altix compile mode" >&5
$as_echo_n "checking for MCA component timer:altix compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "altix"; then :
  timer_altix_happy="yes"
           timer_altix_should_use=1
else
  timer_altix_should_use=0
           if test "$with_timer" = ""; then :
  timer_altix_happy="yes"
else
  timer_altix_happy="no"
fi
fi

    if test "$timer_altix_happy" = "yes"; then :
  ac_fn_c_check_header_mongrel "$LINENO" "sn/mmtimer.h" "ac_cv_header_sn_mmtimer_h" "$ac_includes_default"
if test "x$ac_cv_header_sn_mmtimer_h" = x""yes; then :
  timer_altix_happy="yes"
else
  timer_altix_happy="no"
fi


fi

    if test "$timer_altix_happy" = "yes"; then :
  for ac_header in sys/ioctl.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi

    if test "$timer_altix_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MM timer can be opened" >&5
$as_echo_n "checking if MM timer can be opened... " >&6; }
if test "${ompi_cv_mm_timer_mmap+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sn/mmtimer.h>

int
main ()
{

    int fd;
    fd = open(MMTIMER_FULLNAME, O_RDONLY);
    if (-1 ==fd) return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ompi_cv_mm_timer_mmap="yes"
else
  ompi_cv_mm_timer_mmap="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_mm_timer_mmap" >&5
$as_echo "$ompi_cv_mm_timer_mmap" >&6; }
           if test "$ompi_cv_mm_timer_mmap" = "yes"; then :
  timer_altix_happy="yes"
else
  timer_altix_happy="no"
fi
fi

    if test "$timer_altix_happy" = "no" -a \
                "$timer_altix_should_use" = "1"; then :
  as_fn_error "Altix timer requested but not available.  Aborting." "$LINENO" 5
fi

    if test "$timer_altix_happy" = "yes"; then :
  timer_base_include="altix/timer_altix.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=altix

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:altix can compile" >&5
$as_echo_n "checking if MCA component timer:altix can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "altix" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"altix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "altix" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"altix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components altix"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_altix_DSO=1
else
  BUILD_timer_altix_DSO=0
fi
     if test "$BUILD_timer_altix_DSO" = "1"; then
  OMPI_BUILD_timer_altix_DSO_TRUE=
  OMPI_BUILD_timer_altix_DSO_FALSE='#'
else
  OMPI_BUILD_timer_altix_DSO_TRUE='#'
  OMPI_BUILD_timer_altix_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component timer:darwin (m4 configuration macro)"




    project=opal
    framework=timer
    component=darwin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:darwin compile mode" >&5
$as_echo_n "checking for MCA component timer:darwin compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "darwin"; then :
  timer_darwin_happy="yes"
           timer_darwin_should_use=1
else
  timer_darwin_should_use=0
           if test "$with_timer" = ""; then :
  timer_darwin_happy="yes"
else
  timer_darwin_happy="no"
fi
fi

    if test "$timer_darwin_happy" = "yes"; then :
  for ac_header in mach/mach_time.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_mach_time_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_MACH_TIME_H 1
_ACEOF

fi

done

           ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  timer_darwin_happy="yes"
else
  timer_darwin_happy="no"
fi

fi

   if test "$timer_darwin_happy" = "no" -a \
               "$timer_darwin_should_use" = "1"; then :
  as_fn_error "Darwin timer requested but not available.  Aborting." "$LINENO" 5
fi

    if test "$timer_darwin_happy" = "yes"; then :
  timer_base_include="darwin/timer_darwin.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=darwin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:darwin can compile" >&5
$as_echo_n "checking if MCA component timer:darwin can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "darwin" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "darwin" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components darwin"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_darwin_DSO=1
else
  BUILD_timer_darwin_DSO=0
fi
     if test "$BUILD_timer_darwin_DSO" = "1"; then
  OMPI_BUILD_timer_darwin_DSO_TRUE=
  OMPI_BUILD_timer_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_timer_darwin_DSO_TRUE='#'
  OMPI_BUILD_timer_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component timer:solaris (m4 configuration macro)"




    project=opal
    framework=timer
    component=solaris
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:solaris compile mode" >&5
$as_echo_n "checking for MCA component timer:solaris compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "solaris"; then :
  timer_solaris_happy="yes"
           timer_solaris_should_use=1
else
  timer_solaris_should_use=0
           if test "$with_timer" = ""; then :
  timer_solaris_happy="yes"
else
  timer_solaris_happy="no"
fi
fi

    if test "$timer_solaris_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
if test "x$ac_cv_func_gethrtime" = x""yes; then :
  timer_solaris_happy="yes"
else
  timer_solaris_happy="no"
fi

fi

   if test "$timer_solaris_happy" = "no" -a \
               "$timer_solaris_should_use" = "1"; then :
  as_fn_error "Solaris timer requested but not available.  Aborting." "$LINENO" 5
fi

    if test "$timer_solaris_happy" = "yes"; then :
  timer_base_include="solaris/timer_solaris.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=solaris

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:solaris can compile" >&5
$as_echo_n "checking if MCA component timer:solaris can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "solaris" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "solaris" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components solaris"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_solaris_DSO=1
else
  BUILD_timer_solaris_DSO=0
fi
     if test "$BUILD_timer_solaris_DSO" = "1"; then
  OMPI_BUILD_timer_solaris_DSO_TRUE=
  OMPI_BUILD_timer_solaris_DSO_FALSE='#'
else
  OMPI_BUILD_timer_solaris_DSO_TRUE='#'
  OMPI_BUILD_timer_solaris_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component timer:windows (m4 configuration macro)"




    project=opal
    framework=timer
    component=windows
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:windows compile mode" >&5
$as_echo_n "checking for MCA component timer:windows compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "windows"; then :
  timer_windows_happy="yes"
           timer_windows_should_use=1
else
  timer_windows_should_use=0
           if test "$with_timer" = ""; then :
  timer_windows_happy="yes"
else
  timer_windows_happy="no"
fi
fi

    if test "$timer_windows_happy" = "yes"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <windows.h>
int
main ()
{
LARGE_INTEGER now;
                           QueryPerformanceCounter( &now );
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  timer_windows_happy="yes"
else
  timer_windows_happy="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

   if test "$timer_windows_happy" = "no" -a \
               "$timer_windows_should_use" = "1"; then :
  as_fn_error "Windows timer requested but not available.  Aborting." "$LINENO" 5
fi

    if test "$timer_windows_happy" = "yes"; then :
  timer_base_include="windows/timer_windows.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=windows

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:windows can compile" >&5
$as_echo_n "checking if MCA component timer:windows can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "windows" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "windows" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components windows"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_windows_DSO=1
else
  BUILD_timer_windows_DSO=0
fi
     if test "$BUILD_timer_windows_DSO" = "1"; then
  OMPI_BUILD_timer_windows_DSO_TRUE=
  OMPI_BUILD_timer_windows_DSO_FALSE='#'
else
  OMPI_BUILD_timer_windows_DSO_TRUE='#'
  OMPI_BUILD_timer_windows_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component timer:linux (m4 configuration macro)"




    project=opal
    framework=timer
    component=linux
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:linux compile mode" >&5
$as_echo_n "checking for MCA component timer:linux compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


# Check whether --with-timer was given.
if test "${with_timer+set}" = set; then :
  withval=$with_timer;
fi


    if test "$with_timer" = "linux"; then :
  timer_linux_happy="yes"
           timer_linux_should_use=1
else
  timer_linux_should_use=0
           if test "$with_timer" = ""; then :
  timer_linux_happy="yes"
else
  timer_linux_happy="no"
fi
fi

   case "${host}" in
   i?86-*linux*|x86_64*linux*|ia64-*linux*|powerpc-*linux*|powerpc64-*linux*|sparc*-*linux*)
        if test "$timer_linux_happy" = "yes"; then :
  if test -r "/proc/cpuinfo"; then :
  timer_linux_happy="yes"
else
  timer_linux_happy="no"
fi
fi
        ;;
   *)
        timer_linux_happy="no"
        ;;
   esac

   if test "$timer_linux_happy" = "no" -a \
               "$timer_linux_should_use" = "1"; then :
  as_fn_error "Linux timer requested but not available.  Aborting." "$LINENO" 5
fi

    if test "$timer_linux_happy" = "yes"; then :
  timer_base_include="linux/timer_linux.h"
           should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=opal
    framework=timer
    component=linux

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:linux can compile" >&5
$as_echo_n "checking if MCA component timer:linux can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "linux" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "linux" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components linux"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_timer_linux_DSO=1
else
  BUILD_timer_linux_DSO=0
fi
     if test "$BUILD_timer_linux_DSO" = "1"; then
  OMPI_BUILD_timer_linux_DSO_TRUE=
  OMPI_BUILD_timer_linux_DSO_FALSE='#'
else
  OMPI_BUILD_timer_linux_DSO_TRUE='#'
  OMPI_BUILD_timer_linux_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode

                   if test $components_last_result -eq 1; then :
  components_looking_for_succeed=0
fi


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_timer_ALL_COMPONENTS="$all_components"
    MCA_timer_STATIC_COMPONENTS="$static_components"
    MCA_timer_DSO_COMPONENTS="$dso_components"
    MCA_timer_STATIC_LTLIBS="$static_ltlibs"







    MCA_timer_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_timer_ALL_SUBDIRS="$MCA_timer_ALL_SUBDIRS mca/timer/$item"
    done



    MCA_timer_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_timer_STATIC_SUBDIRS="$MCA_timer_STATIC_SUBDIRS mca/timer/$item"
    done



    MCA_timer_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_timer_DSO_SUBDIRS="$MCA_timer_DSO_SUBDIRS mca/timer/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "timer" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_timer_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real


        # someone should have set this...
        if test "$timer_base_include" = "" ; then
            timer_base_include="base/timer_base_null.h"
        fi


cat >>confdefs.h <<_ACEOF
#define MCA_timer_IMPLEMENTATION_HEADER "opal/mca/timer/$timer_base_include"
_ACEOF









MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS orte"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring MCA for orte"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for orte" >&5
$as_echo_n "checking for frameworks for orte... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: debugger, errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rmcast, rml, routed, snapc" >&5
$as_echo "debugger, errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rmcast, rml, routed, snapc" >&6; }

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library


    MCA_orte_FRAMEWORKS=
    MCA_orte_FRAMEWORKS_SUBDIRS=
    MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
    MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
    MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
    MCA_orte_FRAMEWORK_LIBS=

    # common has to go up front
                          if test "debugger" = "common" ; then
                              MCA_orte_FRAMEWORKS="debugger $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/debugger $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_debugger_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_debugger_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_debugger_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS debugger"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/debugger"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_debugger_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_debugger_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_debugger_STATIC_SUBDIRS)"
                          fi
                          if test "debugger" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/debugger/libmca_debugger.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_debugger_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework debugger"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "debugger" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/debugger/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework debugger" >&5
$as_echo_n "checking for no configure components in framework debugger... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpir, mpirx" >&5
$as_echo "mpir, mpirx" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework debugger" >&5
$as_echo_n "checking for m4 configure components in framework debugger... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component debugger:mpir (no configuration)"




    project=orte
    framework=debugger
    component=mpir
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_debugger" ; then
            if test "$DIRECT_debugger" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=debugger
    component=mpir

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_debugger" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=debugger
    component=mpir

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_debugger" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_debugger" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component debugger:mpir can compile" >&5
$as_echo_n "checking if MCA component debugger:mpir can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_debugger" = "mpir" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mpir\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mpir\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_debugger" ; then
        if test "$DIRECT_debugger" = "mpir" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mpir\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mpir\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components mpir"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_debugger_mpir_DSO=1
    else
        BUILD_debugger_mpir_DSO=0
    fi
     if test "$BUILD_debugger_mpir_DSO" = "1"; then
  OMPI_BUILD_debugger_mpir_DSO_TRUE=
  OMPI_BUILD_debugger_mpir_DSO_FALSE='#'
else
  OMPI_BUILD_debugger_mpir_DSO_TRUE='#'
  OMPI_BUILD_debugger_mpir_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component debugger:mpirx (no configuration)"




    project=orte
    framework=debugger
    component=mpirx
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_debugger" ; then
            if test "$DIRECT_debugger" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=debugger
    component=mpirx

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_debugger" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=debugger
    component=mpirx

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_debugger" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_debugger" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component debugger:mpirx can compile" >&5
$as_echo_n "checking if MCA component debugger:mpirx can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_debugger" = "mpirx" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mpirx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mpirx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_debugger" ; then
        if test "$DIRECT_debugger" = "mpirx" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mpirx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mpirx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components mpirx"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_debugger_mpirx_DSO=1
    else
        BUILD_debugger_mpirx_DSO=0
    fi
     if test "$BUILD_debugger_mpirx_DSO" = "1"; then
  OMPI_BUILD_debugger_mpirx_DSO_TRUE=
  OMPI_BUILD_debugger_mpirx_DSO_FALSE='#'
else
  OMPI_BUILD_debugger_mpirx_DSO_TRUE='#'
  OMPI_BUILD_debugger_mpirx_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/debugger/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component debugger:$component (need to configure)"




    project=orte
    framework=debugger
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_debugger" ; then
            if test "$DIRECT_debugger" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=debugger
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_debugger" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/debugger/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/debugger/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=debugger
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_debugger" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_debugger" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component debugger:$component can compile" >&5
$as_echo_n "checking if MCA component debugger:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_debugger" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_debugger" ; then
        if test "$DIRECT_debugger" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_debugger_ALL_COMPONENTS="$all_components"
    MCA_debugger_STATIC_COMPONENTS="$static_components"
    MCA_debugger_DSO_COMPONENTS="$dso_components"
    MCA_debugger_STATIC_LTLIBS="$static_ltlibs"







    MCA_debugger_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_debugger_ALL_SUBDIRS="$MCA_debugger_ALL_SUBDIRS mca/debugger/$item"
    done



    MCA_debugger_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_debugger_STATIC_SUBDIRS="$MCA_debugger_STATIC_SUBDIRS mca/debugger/$item"
    done



    MCA_debugger_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_debugger_DSO_SUBDIRS="$MCA_debugger_DSO_SUBDIRS mca/debugger/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "debugger" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_debugger_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "errmgr" = "common" ; then
                              MCA_orte_FRAMEWORKS="errmgr $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/errmgr $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_errmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_errmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_errmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS errmgr"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/errmgr"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_errmgr_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_errmgr_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_errmgr_STATIC_SUBDIRS)"
                          fi
                          if test "errmgr" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/errmgr/libmca_errmgr.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_errmgr_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework errmgr"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "errmgr" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/errmgr/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework errmgr" >&5
$as_echo_n "checking for no configure components in framework errmgr... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
$as_echo "default" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework errmgr" >&5
$as_echo_n "checking for m4 configure components in framework errmgr... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component errmgr:default (no configuration)"




    project=orte
    framework=errmgr
    component=default
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_errmgr" ; then
            if test "$DIRECT_errmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=errmgr
    component=default

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_errmgr" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=errmgr
    component=default

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_errmgr" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_errmgr" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default can compile" >&5
$as_echo_n "checking if MCA component errmgr:default can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_errmgr" = "default" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_errmgr" ; then
        if test "$DIRECT_errmgr" = "default" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components default"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_errmgr_default_DSO=1
    else
        BUILD_errmgr_default_DSO=0
    fi
     if test "$BUILD_errmgr_default_DSO" = "1"; then
  OMPI_BUILD_errmgr_default_DSO_TRUE=
  OMPI_BUILD_errmgr_default_DSO_FALSE='#'
else
  OMPI_BUILD_errmgr_default_DSO_TRUE='#'
  OMPI_BUILD_errmgr_default_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/errmgr/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component errmgr:$component (need to configure)"




    project=orte
    framework=errmgr
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_errmgr" ; then
            if test "$DIRECT_errmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=errmgr
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_errmgr" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/errmgr/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/errmgr/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=errmgr
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_errmgr" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_errmgr" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:$component can compile" >&5
$as_echo_n "checking if MCA component errmgr:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_errmgr" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_errmgr" ; then
        if test "$DIRECT_errmgr" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_errmgr_ALL_COMPONENTS="$all_components"
    MCA_errmgr_STATIC_COMPONENTS="$static_components"
    MCA_errmgr_DSO_COMPONENTS="$dso_components"
    MCA_errmgr_STATIC_LTLIBS="$static_ltlibs"







    MCA_errmgr_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_errmgr_ALL_SUBDIRS="$MCA_errmgr_ALL_SUBDIRS mca/errmgr/$item"
    done



    MCA_errmgr_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_errmgr_STATIC_SUBDIRS="$MCA_errmgr_STATIC_SUBDIRS mca/errmgr/$item"
    done



    MCA_errmgr_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_errmgr_DSO_SUBDIRS="$MCA_errmgr_DSO_SUBDIRS mca/errmgr/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "errmgr" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_errmgr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "ess" = "common" ; then
                              MCA_orte_FRAMEWORKS="ess $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/ess $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ess_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ess_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ess_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ess"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ess"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ess_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ess_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ess_STATIC_SUBDIRS)"
                          fi
                          if test "ess" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ess/libmca_ess.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ess_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework ess"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "ess" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/ess/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework ess" >&5
$as_echo_n "checking for no configure components in framework ess... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework ess" >&5
$as_echo_n "checking for m4 configure components in framework ess... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: portals_utcp, cnos, alps, env, hnp, lsf, singleton, slave, slurm, slurmd, tm, tool" >&5
$as_echo "portals_utcp, cnos, alps, env, hnp, lsf, singleton, slave, slurm, slurmd, tm, tool" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/orte/mca/ess/portals_utcp/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:portals_utcp (m4 configuration macro)"




    project=orte
    framework=ess
    component=portals_utcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=portals_utcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # save compiler flags so that we don't alter them for later
    # components.
    ess_portals_utcp_save_CPPFLAGS="$CPPFLAGS"
    ess_portals_utcp_save_LDFLAGS="$LDFLAGS"
    ess_portals_utcp_save_LIBS="$LIBS"

    # allow user a way to say where the Portals installation is

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then :
  withval=$with_portals;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi


fi


fi


    if test -n "$with_portals"; then :
  if test -d "$with_portals/include"; then :
  ess_portals_utcp_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $ess_portals_utcp_CPPFLAGS"
fi
           if test -d "$with_portals/lib"; then :
  ess_portals_utcp_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $ess_portals_utcp_LDFLAGS"
fi
fi

    # Try to find all the portals libraries (this is not fun!)

# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then :
  withval=$with_portals_libs;
fi

    if test -n "$with_portals_libs" ; then
        ess_portals_utcp_LIBS=""
        for lib in $with_portals_libs ; do
            ess_portals_utcp_LIBS="$ess_portals_utcp_LIBS -l$lib"
        done
    fi

    ess_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"

    # check for portals
    LIBS="$LIBS $ess_portals_utcp_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PtlGetRank" >&5
$as_echo_n "checking for PtlGetRank... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <portals3.h>
#include <stdio.h>
#include <p3nal_utcp.h>
#include <p3rt/p3rt.h>
#include <p3api/debug.h>
FILE *utcp_api_out;
FILE *utcp_lib_out;
int
main ()
{
unsigned int nprocs, rank;
int dummy;
PtlInit(&dummy);
PtlNIInit(PTL_IFACE_DEFAULT, PTL_PID_ANY, NULL, NULL, NULL);
PtlGetRank(PTL_INVALID_HANDLE, &rank, &nprocs);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    should_build=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                    should_build=0
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    # we don't actually need the Portals code for this component,
    # so don't link against them...
    ess_portals_utcp_CPPFLAGS=
    ess_portals_utcp_LDFLAGS=
    ess_portals_utcp_LIBS=

    # substitute in the things needed to build Portals




    # reset the flags for the next test
    CPPFLAGS="$ess_portals_utcp_save_CPPFLAGS"
    LDFLAGS="$ess_portals_utcp_save_LDFLAGS"
    LIBS="$ess_portals_utcp_save_LIBS"


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=portals_utcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:portals_utcp can compile" >&5
$as_echo_n "checking if MCA component ess:portals_utcp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "portals_utcp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "portals_utcp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components portals_utcp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_portals_utcp_DSO=1
else
  BUILD_ess_portals_utcp_DSO=0
fi
     if test "$BUILD_ess_portals_utcp_DSO" = "1"; then
  OMPI_BUILD_ess_portals_utcp_DSO_TRUE=
  OMPI_BUILD_ess_portals_utcp_DSO_FALSE='#'
else
  OMPI_BUILD_ess_portals_utcp_DSO_TRUE='#'
  OMPI_BUILD_ess_portals_utcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/cnos/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:cnos (m4 configuration macro)"




    project=orte
    framework=ess
    component=cnos
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=cnos

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # check for cnos functions
    # a bit of a hack,,, we don't want ess_cnos if alps
    # was requested, and we can't rely on build priority because
    # ess_alps uses priorty 10 so that ess_hnp is built as well.
    ac_fn_c_check_func "$LINENO" "cnos_get_rank" "ac_cv_func_cnos_get_rank"
if test "x$ac_cv_func_cnos_get_rank" = x""yes; then :


# Check whether --with-alps was given.
if test "${with_alps+set}" = set; then :
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    orte_check_alps_happy="yes"
	fi
	if test "$orte_check_alps_happy" = "yes"; then :
  should_build=0
else
  should_build=1
fi

else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=cnos

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:cnos can compile" >&5
$as_echo_n "checking if MCA component ess:cnos can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "cnos" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "cnos" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components cnos"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_cnos_DSO=1
else
  BUILD_ess_cnos_DSO=0
fi
     if test "$BUILD_ess_cnos_DSO" = "1"; then
  OMPI_BUILD_ess_cnos_DSO_TRUE=
  OMPI_BUILD_ess_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_ess_cnos_DSO_TRUE='#'
  OMPI_BUILD_ess_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/alps/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:alps (m4 configuration macro)"




    project=orte
    framework=ess
    component=alps
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=alps

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

        for ac_header in catamount/cnos_mpi_os.h
do :
  ac_fn_c_check_header_compile "$LINENO" "catamount/cnos_mpi_os.h" "ac_cv_header_catamount_cnos_mpi_os_h" "$ac_includes_default
"
if test "x$ac_cv_header_catamount_cnos_mpi_os_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CATAMOUNT_CNOS_MPI_OS_H 1
_ACEOF

else
  for ac_header in cnos_mpi_os.h
do :
  ac_fn_c_check_header_compile "$LINENO" "cnos_mpi_os.h" "ac_cv_header_cnos_mpi_os_h" "$ac_includes_default
"
if test "x$ac_cv_header_cnos_mpi_os_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CNOS_MPI_OS_H 1
_ACEOF

else
  should_build=0
fi

done

fi

done




# Check whether --with-alps was given.
if test "${with_alps+set}" = set; then :
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    orte_check_alps_happy="yes"
	fi
	if test "$orte_check_alps_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "cnos_get_rank" "ac_cv_func_cnos_get_rank"
if test "x$ac_cv_func_cnos_get_rank" = x""yes; then :
  should_build=1
else
  should_build=0
fi

else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=alps

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:alps can compile" >&5
$as_echo_n "checking if MCA component ess:alps can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "alps" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "alps" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components alps"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_alps_DSO=1
else
  BUILD_ess_alps_DSO=0
fi
     if test "$BUILD_ess_alps_DSO" = "1"; then
  OMPI_BUILD_ess_alps_DSO_TRUE=
  OMPI_BUILD_ess_alps_DSO_FALSE='#'
else
  OMPI_BUILD_ess_alps_DSO_TRUE='#'
  OMPI_BUILD_ess_alps_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/env/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:env (m4 configuration macro)"




    project=orte
    framework=ess
    component=env
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=env

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=env

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:env can compile" >&5
$as_echo_n "checking if MCA component ess:env can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "env" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "env" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components env"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_env_DSO=1
else
  BUILD_ess_env_DSO=0
fi
     if test "$BUILD_ess_env_DSO" = "1"; then
  OMPI_BUILD_ess_env_DSO_TRUE=
  OMPI_BUILD_ess_env_DSO_FALSE='#'
else
  OMPI_BUILD_ess_env_DSO_TRUE='#'
  OMPI_BUILD_ess_env_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/hnp/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:hnp (m4 configuration macro)"




    project=orte
    framework=ess
    component=hnp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=hnp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=hnp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:hnp can compile" >&5
$as_echo_n "checking if MCA component ess:hnp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "hnp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "hnp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components hnp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_hnp_DSO=1
else
  BUILD_ess_hnp_DSO=0
fi
     if test "$BUILD_ess_hnp_DSO" = "1"; then
  OMPI_BUILD_ess_hnp_DSO_TRUE=
  OMPI_BUILD_ess_hnp_DSO_FALSE='#'
else
  OMPI_BUILD_ess_hnp_DSO_TRUE='#'
  OMPI_BUILD_ess_hnp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/lsf/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:lsf (m4 configuration macro)"




    project=orte
    framework=ess
    component=lsf
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=lsf

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-lsf was given.
if test "${with_lsf+set}" = set; then :
  withval=$with_lsf;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf value" >&5
$as_echo_n "checking --with-lsf value... " >&6; }
    if test "$with_lsf" = "yes" -o "$with_lsf" = "no" -o "x$with_lsf" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf)" >&5
$as_echo "sanity check ok ($with_lsf)" >&6; }

fi


fi


fi


# Check whether --with-lsf-libdir was given.
if test "${with_lsf_libdir+set}" = set; then :
  withval=$with_lsf_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf-libdir value" >&5
$as_echo_n "checking --with-lsf-libdir value... " >&6; }
    if test "$with_lsf_libdir" = "yes" -o "$with_lsf_libdir" = "no" -o "x$with_lsf_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf_libdir)" >&5
$as_echo "sanity check ok ($with_lsf_libdir)" >&6; }

fi


fi


fi


    # Defaults
    orte_check_lsf_dir_msg="compiler default"
    orte_check_lsf_libdir_msg="linker default"

    # Save directory names if supplied
    if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then :
  orte_check_lsf_dir="$with_lsf"
           orte_check_lsf_dir_msg="$orte_check_lsf_dir (from --with-lsf)"
fi
    if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then :
  orte_check_lsf_libdir="$with_lsf_libdir"
           orte_check_lsf_libdir_msg="$orte_check_lsf_libdir (from --with-lsf-libdir)"
fi

    # If no directories were specified, look for LSF_LIBDIR,
    # LSF_INCLUDEDIR, and/or LSF_ENVDIR.
    if test -z "$orte_check_lsf_dir" -a -z "$orte_check_lsf_libdir"; then :
  if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then :
  LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi
           if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then :
  LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi
           if test ! -z "$LSF_LIBDIR"; then :
  orte_check_lsf_libdir=$LSF_LIBDIR
                  orte_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"
fi
           if test ! -z "$LSF_INCLUDEDIR"; then :
  orte_check_lsf_dir=`dirname $LSF_INCLUDEDIR`
                  orte_check_lsf_dir_msg="$orte_check_lsf_dir (from \$LSF_INCLUDEDIR)"
fi
fi

    if test "$with_lsf" = "no"; then :
  orte_check_lsf_happy="no"
else
  orte_check_lsf_happy="yes"
fi

    orte_check_lsf_ess_lsf_save_CPPFLAGS="$CPPFLAGS"
    orte_check_lsf_ess_lsf_save_LDFLAGS="$LDFLAGS"
    orte_check_lsf_ess_lsf_save_LIBS="$LIBS"

    if test "$orte_check_lsf_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF dir" >&5
$as_echo_n "checking for LSF dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_dir_msg" >&5
$as_echo "$orte_check_lsf_dir_msg" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF library dir" >&5
$as_echo_n "checking for LSF library dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_libdir_msg" >&5
$as_echo "$orte_check_lsf_libdir_msg" >&6; }

    ompi_check_package_ess_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ess_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ess_lsf_save_LIBS="$LIBS"

    ompi_check_package_ess_lsf_orig_CPPFLAGS="$ess_lsf_CPPFLAGS"
    ompi_check_package_ess_lsf_orig_LDFLAGS="$ess_lsf_LDFLAGS"
    ompi_check_package_ess_lsf_orig_LIBS="$ess_lsf_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_lsf_lsbatch_h

    ompi_check_package_header_happy="no"
    if test "$orte_check_lsf_dir" = "/usr" -o "$orte_check_lsf_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default"
if test "x$ac_cv_header_lsf_lsbatch_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_lsf_lsbatch_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$orte_check_lsf_dir" != ""; then :
  ess_lsf_CPPFLAGS="$ess_lsf_CPPFLAGS -I$orte_check_lsf_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$orte_check_lsf_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default"
if test "x$ac_cv_header_lsf_lsbatch_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$orte_check_lsf_libdir" != ""; then :
   # libdir was specified - search only there
           ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$orte_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                  ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                     ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ess_lsf_LIBS="-lbat -llsf"
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$orte_check_lsf_libdir" != ""; then :
   # libdir was specified - search only there
           ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$orte_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                  ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                     ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ess_lsf_LIBS="-lbat -llsf"
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  orte_check_lsf_happy="yes"
else
  ess_lsf_CPPFLAGS="$ompi_check_package_ess_lsf_orig_CPPFLAGS"
           ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
           ess_lsf_LIBS="$ompi_check_package_ess_lsf_orig_LIBS"
           orte_check_lsf_happy="no"
fi

    CPPFLAGS="$ompi_check_package_ess_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
    LIBS="$ompi_check_package_ess_lsf_save_LIBS"

fi

    CPPFLAGS="$orte_check_lsf_ess_lsf_save_CPPFLAGS"
    LDFLAGS="$orte_check_lsf_ess_lsf_save_LDFLAGS"
    LIBS="$orte_check_lsf_ess_lsf_save_LIBS"

    # Reset for the next time we're called
    orte_check_lsf_dir=
    orte_check_lsf_libdir=

    if test "$orte_check_lsf_happy" = "yes"; then :
  ess_lsf_good=1
else
  if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF support requested (via --with-lsf) but not found." >&5
$as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;}
                  as_fn_error "Aborting." "$LINENO" 5
fi
           ess_lsf_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ess_lsf_good" = "1"; then :
  ess_lsf_WRAPPER_EXTRA_LDFLAGS="$ess_lsf_LDFLAGS"
           ess_lsf_WRAPPER_EXTRA_LIBS="$ess_lsf_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=lsf

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:lsf can compile" >&5
$as_echo_n "checking if MCA component ess:lsf can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "lsf" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "lsf" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components lsf"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_lsf_DSO=1
else
  BUILD_ess_lsf_DSO=0
fi
     if test "$BUILD_ess_lsf_DSO" = "1"; then
  OMPI_BUILD_ess_lsf_DSO_TRUE=
  OMPI_BUILD_ess_lsf_DSO_FALSE='#'
else
  OMPI_BUILD_ess_lsf_DSO_TRUE='#'
  OMPI_BUILD_ess_lsf_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/singleton/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:singleton (m4 configuration macro)"




    project=orte
    framework=ess
    component=singleton
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=singleton

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=singleton

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:singleton can compile" >&5
$as_echo_n "checking if MCA component ess:singleton can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "singleton" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"singleton\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "singleton" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"singleton\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components singleton"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_singleton_DSO=1
else
  BUILD_ess_singleton_DSO=0
fi
     if test "$BUILD_ess_singleton_DSO" = "1"; then
  OMPI_BUILD_ess_singleton_DSO_TRUE=
  OMPI_BUILD_ess_singleton_DSO_FALSE='#'
else
  OMPI_BUILD_ess_singleton_DSO_TRUE='#'
  OMPI_BUILD_ess_singleton_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/slave/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:slave (m4 configuration macro)"




    project=orte
    framework=ess
    component=slave
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=slave

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=slave

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:slave can compile" >&5
$as_echo_n "checking if MCA component ess:slave can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "slave" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slave\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slave\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "slave" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slave\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slave\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slave"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_slave_DSO=1
else
  BUILD_ess_slave_DSO=0
fi
     if test "$BUILD_ess_slave_DSO" = "1"; then
  OMPI_BUILD_ess_slave_DSO_TRUE=
  OMPI_BUILD_ess_slave_DSO_FALSE='#'
else
  OMPI_BUILD_ess_slave_DSO_TRUE='#'
  OMPI_BUILD_ess_slave_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/slurm/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:slurm (m4 configuration macro)"




    project=orte
    framework=ess
    component=slurm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=slurm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-slurm was given.
if test "${with_slurm+set}" = set; then :
  withval=$with_slurm;
fi


    if test "$with_slurm" = "no" ; then
        orte_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on linux, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                orte_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        ORTE_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$ORTE_CHECK_SLURM_SRUN" = ""; then
                    orte_check_slurm_happy="no"
                else
                    orte_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5
$as_echo "$orte_check_slurm_happy" >&6; }
                ;;
        esac
    else
        orte_check_slurm_happy="yes"
    fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve"
if test "x$ac_cv_func_execve" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ess_slurm_good=1
else
  ess_slurm_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ess_slurm_good" = "1"; then :
  ess_slurm_WRAPPER_EXTRA_LDFLAGS="$ess_slurm_LDFLAGS"
           ess_slurm_WRAPPER_EXTRA_LIBS="$ess_slurm_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=slurm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:slurm can compile" >&5
$as_echo_n "checking if MCA component ess:slurm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "slurm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "slurm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_slurm_DSO=1
else
  BUILD_ess_slurm_DSO=0
fi
     if test "$BUILD_ess_slurm_DSO" = "1"; then
  OMPI_BUILD_ess_slurm_DSO_TRUE=
  OMPI_BUILD_ess_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_ess_slurm_DSO_TRUE='#'
  OMPI_BUILD_ess_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/slurmd/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:slurmd (m4 configuration macro)"




    project=orte
    framework=ess
    component=slurmd
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=slurmd

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-slurm was given.
if test "${with_slurm+set}" = set; then :
  withval=$with_slurm;
fi


    if test "$with_slurm" = "no" ; then
        orte_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on linux, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                orte_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        ORTE_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$ORTE_CHECK_SLURM_SRUN" = ""; then
                    orte_check_slurm_happy="no"
                else
                    orte_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5
$as_echo "$orte_check_slurm_happy" >&6; }
                ;;
        esac
    else
        orte_check_slurm_happy="yes"
    fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve"
if test "x$ac_cv_func_execve" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ess_slurmd_good=1
else
  ess_slurmd_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ess_slurmd_good" = "1"; then :
  ess_slurmd_WRAPPER_EXTRA_LDFLAGS="$ess_slurmd_LDFLAGS"
           ess_slurmd_WRAPPER_EXTRA_LIBS="$ess_slurmd_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=slurmd

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:slurmd can compile" >&5
$as_echo_n "checking if MCA component ess:slurmd can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "slurmd" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurmd\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurmd\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "slurmd" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurmd\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurmd\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurmd"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_slurmd_DSO=1
else
  BUILD_ess_slurmd_DSO=0
fi
     if test "$BUILD_ess_slurmd_DSO" = "1"; then
  OMPI_BUILD_ess_slurmd_DSO_TRUE=
  OMPI_BUILD_ess_slurmd_DSO_FALSE='#'
else
  OMPI_BUILD_ess_slurmd_DSO_TRUE='#'
  OMPI_BUILD_ess_slurmd_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/tm/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:tm (m4 configuration macro)"




    project=orte
    framework=ess
    component=tm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=tm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-tm was given.
if test "${with_tm+set}" = set; then :
  withval=$with_tm;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tm value" >&5
$as_echo_n "checking --with-tm value... " >&6; }
    if test "$with_tm" = "yes" -o "$with_tm" = "no" -o "x$with_tm" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_tm"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_tm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_tm/include/tm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_tm)" >&5
$as_echo "sanity check ok ($with_tm)" >&6; }

fi


fi


fi


    orte_check_tm_found=no
    if test "$with_tm" = "no"; then :
  orte_check_tm_happy="no"
else
  orte_check_tm_happy="yes"
           if test ! -z "$with_tm" -a "$with_tm" != "yes"; then :
  orte_check_tm_dir="$with_tm"
else
  orte_check_tm_dir=""
fi
fi

    if test "$orte_check_tm_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pbs-config" >&5
$as_echo_n "checking for pbs-config... " >&6; }
           orte_check_tm_pbs_config="not found"
           if test "$orte_check_tm_dir" != "" -a -d "$orte_check_tm_dir" -a -x "$orte_check_tm_dir/bin/pbs-config"; then :
  orte_check_tm_pbs_config="$orte_check_tm_dir/bin/pbs-config"
else
  if pbs-config --prefix >/dev/null 2>&1; then :
  orte_check_tm_pbs_config="pbs-config"
fi
fi
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_tm_pbs_config" >&5
$as_echo "$orte_check_tm_pbs_config" >&6; }
fi

    # If we have pbs-config, get the flags we need from there and then
    # do simplistic tests looking for the tm headers and symbols

    if test "$orte_check_tm_happy" = "yes" -a "$orte_check_tm_pbs_config" != "not found"; then :
  ess_tm_CPPFLAGS=`$orte_check_tm_pbs_config --cflags`

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:87776: ess_tm_CPPFLAGS from pbs-config: $ess_tm_CPPFLAGS" >&5
else
    echo ess_tm_CPPFLAGS from pbs-config: $ess_tm_CPPFLAGS >&5
fi


    orte_check_tm_flags=`$orte_check_tm_pbs_config --libs`
    for orte_check_tm_val in $orte_check_tm_flags; do
        if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LDFLAGS" = "LIBS"; then
                ess_tm_LDFLAGS="$ess_tm_LDFLAGS $orte_check_tm_val"
            fi
        else
            if test "LDFLAGS" = "LDFLAGS"; then
                ess_tm_LDFLAGS="$ess_tm_LDFLAGS $orte_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:87799: ess_tm_LDFLAGS from pbs-config: $ess_tm_LDFLAGS" >&5
else
    echo ess_tm_LDFLAGS from pbs-config: $ess_tm_LDFLAGS >&5
fi


    orte_check_tm_flags=`$orte_check_tm_pbs_config --libs`
    for orte_check_tm_val in $orte_check_tm_flags; do
        if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LIBS" = "LIBS"; then
                ess_tm_LIBS="$ess_tm_LIBS $orte_check_tm_val"
            fi
        else
            if test "LIBS" = "LDFLAGS"; then
                ess_tm_LIBS="$ess_tm_LIBS $orte_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:87822: ess_tm_LIBS from pbs-config: $ess_tm_LIBS" >&5
else
    echo ess_tm_LIBS from pbs-config: $ess_tm_LIBS >&5
fi

           # Now that we supposedly have the right flags, try them out.

           CPPFLAGS_save="$CPPFLAGS"
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"

           CPPFLAGS="$CPPFLAGS $ess_tm_CPPFLAGS"
           LIBS="$LIBS $ess_tm_LIBS"
           LDFLAGS="$LDFLAGS $ess_tm_LDFLAGS"

           ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  ac_fn_c_check_func "$LINENO" "tm_finalize" "ac_cv_func_tm_finalize"
if test "x$ac_cv_func_tm_finalize" = x""yes; then :
  orte_check_tm_found="yes"
fi

fi



           CPPFLAGS="$CPPFLAGS_save"
           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
fi

    # If we don't have pbs-config, then we have to look around
    # manually.

    # Note that Torque 2.1.0 changed the name of their back-end
    # library to "libtorque".  So we have to check for both libpbs and
    # libtorque.  First, check for libpbs.

    orte_check_package_ess_tm_save_CPPFLAGS="$CPPFLAGS"
    orte_check_package_ess_tm_save_LDFLAGS="$LDFLAGS"
    orte_check_package_ess_tm_save_LIBS="$LIBS"

    orte_check_package_ess_tm_orig_CPPFLAGS="$ess_tm_CPPFLAGS"
    orte_check_package_ess_tm_orig_LDFLAGS="$ess_tm_LDFLAGS"
    orte_check_package_ess_tm_orig_LIBS="$ess_tm_LIBS"

    if test "$orte_check_tm_found" = "no"; then :
  if test "$orte_check_tm_happy" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$orte_check_tm_dir" = "/usr" -o "$orte_check_tm_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$orte_check_tm_dir" != ""; then :
  ess_tm_CPPFLAGS="$ess_tm_CPPFLAGS -I$orte_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$orte_check_tm_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  orte_check_tm_found="yes"
else
  orte_check_tm_found="no"
fi


else
  orte_check_tm_found="yes"
fi
    unset ompi_check_package_header_happy
fi

           if test "$orte_check_tm_found" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "$orte_check_tm_libdir" != ""; then :
   # libdir was specified - search only there
           ess_tm_LDFLAGS="$ess_tm_LDFLAGS -L$orte_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                  ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                     ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_tm_LDFLAGS="$ess_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                          ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_tm_LDFLAGS="$ess_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                          ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ess_tm_LIBS="-lpbs "
           orte_check_tm_found="yes"
else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_init
    ompi_check_package_lib_happy="no"
    if test "$orte_check_tm_libdir" != ""; then :
   # libdir was specified - search only there
           ess_tm_LDFLAGS="$ess_tm_LDFLAGS -L$orte_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                  ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                     ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_tm_LDFLAGS="$ess_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                          ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ess_tm_LDFLAGS="$ess_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ess_tm_save_LDFLAGS"
                          ess_tm_LDFLAGS="$ompi_check_package_ess_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ess_tm_LIBS="-ltorque "
           orte_check_tm_found="yes"
else
  orte_check_tm_found="no"
fi


fi


fi
fi

    CPPFLAGS="$orte_check_package_ess_tm_save_CPPFLAGS"
    LDFLAGS="$orte_check_package_ess_tm_save_LDFLAGS"
    LIBS="$orte_check_package_ess_tm_save_LIBS"

    # Did we find the right stuff?
    if test "$orte_check_tm_happy" = "yes" -a "$orte_check_tm_found" = "yes"; then :
  ess_tm_good=1
else
  if test ! -z "$with_tm" -a "$with_tm" != "no"; then :
  as_fn_error "TM support requested but not found.  Aborting" "$LINENO" 5
fi
           ess_tm_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ess_tm_good" = "1"; then :
  ess_tm_WRAPPER_EXTRA_LDFLAGS="$ess_tm_LDFLAGS"
           ess_tm_WRAPPER_EXTRA_LIBS="$ess_tm_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=tm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:tm can compile" >&5
$as_echo_n "checking if MCA component ess:tm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "tm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "tm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_tm_DSO=1
else
  BUILD_ess_tm_DSO=0
fi
     if test "$BUILD_ess_tm_DSO" = "1"; then
  OMPI_BUILD_ess_tm_DSO_TRUE=
  OMPI_BUILD_ess_tm_DSO_FALSE='#'
else
  OMPI_BUILD_ess_tm_DSO_TRUE='#'
  OMPI_BUILD_ess_tm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/ess/tool/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component ess:tool (m4 configuration macro)"




    project=orte
    framework=ess
    component=tool
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ess" ; then
            if test "$DIRECT_ess" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ess
    component=tool

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ess
    component=tool

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ess" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ess" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:tool can compile" >&5
$as_echo_n "checking if MCA component ess:tool can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "tool" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "tool" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tool"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ess_tool_DSO=1
else
  BUILD_ess_tool_DSO=0
fi
     if test "$BUILD_ess_tool_DSO" = "1"; then
  OMPI_BUILD_ess_tool_DSO_TRUE=
  OMPI_BUILD_ess_tool_DSO_FALSE='#'
else
  OMPI_BUILD_ess_tool_DSO_TRUE='#'
  OMPI_BUILD_ess_tool_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi

    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_ess_ALL_COMPONENTS="$all_components"
    MCA_ess_STATIC_COMPONENTS="$static_components"
    MCA_ess_DSO_COMPONENTS="$dso_components"
    MCA_ess_STATIC_LTLIBS="$static_ltlibs"







    MCA_ess_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_ess_ALL_SUBDIRS="$MCA_ess_ALL_SUBDIRS mca/ess/$item"
    done



    MCA_ess_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_ess_STATIC_SUBDIRS="$MCA_ess_STATIC_SUBDIRS mca/ess/$item"
    done



    MCA_ess_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_ess_DSO_SUBDIRS="$MCA_ess_DSO_SUBDIRS mca/ess/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "ess" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_ess_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "filem" = "common" ; then
                              MCA_orte_FRAMEWORKS="filem $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/filem $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_filem_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_filem_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_filem_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS filem"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/filem"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_filem_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_filem_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_filem_STATIC_SUBDIRS)"
                          fi
                          if test "filem" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/filem/libmca_filem.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_filem_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework filem"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "filem" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/filem/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework filem" >&5
$as_echo_n "checking for no configure components in framework filem... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: rsh" >&5
$as_echo "rsh" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework filem" >&5
$as_echo_n "checking for m4 configure components in framework filem... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component filem:rsh (no configuration)"




    project=orte
    framework=filem
    component=rsh
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_filem" ; then
            if test "$DIRECT_filem" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=filem
    component=rsh

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_filem" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=filem
    component=rsh

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_filem" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_filem" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component filem:rsh can compile" >&5
$as_echo_n "checking if MCA component filem:rsh can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_filem" = "rsh" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_filem" ; then
        if test "$DIRECT_filem" = "rsh" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components rsh"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_filem_rsh_DSO=1
    else
        BUILD_filem_rsh_DSO=0
    fi
     if test "$BUILD_filem_rsh_DSO" = "1"; then
  OMPI_BUILD_filem_rsh_DSO_TRUE=
  OMPI_BUILD_filem_rsh_DSO_FALSE='#'
else
  OMPI_BUILD_filem_rsh_DSO_TRUE='#'
  OMPI_BUILD_filem_rsh_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/filem/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component filem:$component (need to configure)"




    project=orte
    framework=filem
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_filem" ; then
            if test "$DIRECT_filem" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=filem
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_filem" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/filem/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/filem/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=filem
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_filem" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_filem" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component filem:$component can compile" >&5
$as_echo_n "checking if MCA component filem:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_filem" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_filem" ; then
        if test "$DIRECT_filem" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_filem_ALL_COMPONENTS="$all_components"
    MCA_filem_STATIC_COMPONENTS="$static_components"
    MCA_filem_DSO_COMPONENTS="$dso_components"
    MCA_filem_STATIC_LTLIBS="$static_ltlibs"







    MCA_filem_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_filem_ALL_SUBDIRS="$MCA_filem_ALL_SUBDIRS mca/filem/$item"
    done



    MCA_filem_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_filem_STATIC_SUBDIRS="$MCA_filem_STATIC_SUBDIRS mca/filem/$item"
    done



    MCA_filem_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_filem_DSO_SUBDIRS="$MCA_filem_DSO_SUBDIRS mca/filem/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "filem" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_filem_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "grpcomm" = "common" ; then
                              MCA_orte_FRAMEWORKS="grpcomm $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/grpcomm $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_grpcomm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_grpcomm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_grpcomm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS grpcomm"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/grpcomm"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_grpcomm_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_grpcomm_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_grpcomm_STATIC_SUBDIRS)"
                          fi
                          if test "grpcomm" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/grpcomm/libmca_grpcomm.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_grpcomm_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework grpcomm"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "grpcomm" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/grpcomm/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework grpcomm" >&5
$as_echo_n "checking for no configure components in framework grpcomm... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework grpcomm" >&5
$as_echo_n "checking for m4 configure components in framework grpcomm... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cnos, bad, basic, hier" >&5
$as_echo "cnos, bad, basic, hier" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/cnos/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component grpcomm:cnos (m4 configuration macro)"




    project=orte
    framework=grpcomm
    component=cnos
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=grpcomm
    component=cnos

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    grpcomm_cnos_happy="no"
    # see if we should enable super secret utcp support
    if test "$with_grpcomm_cnos" = "utcp" ; then
        grpcomm_cnos_happy="yes"
        grpcomm_cnos_barrier=0
    else
        # check for cnos functions
        ac_fn_c_check_func "$LINENO" "cnos_barrier" "ac_cv_func_cnos_barrier"
if test "x$ac_cv_func_cnos_barrier" = x""yes; then :
  grpcomm_cnos_happy="yes"
                       grpcomm_cnos_barrier=1
else
  grpcomm_cnos_happy="no"
                       grpcomm_cnos_barrier=0
fi

    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_GRPCOMM_CNOS_HAVE_BARRIER $grpcomm_cnos_barrier
_ACEOF

    if test "$grpcomm_cnos_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=grpcomm
    component=cnos

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_grpcomm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_grpcomm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:cnos can compile" >&5
$as_echo_n "checking if MCA component grpcomm:cnos can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "cnos" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "cnos" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components cnos"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_grpcomm_cnos_DSO=1
else
  BUILD_grpcomm_cnos_DSO=0
fi
     if test "$BUILD_grpcomm_cnos_DSO" = "1"; then
  OMPI_BUILD_grpcomm_cnos_DSO_TRUE=
  OMPI_BUILD_grpcomm_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_cnos_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/bad/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component grpcomm:bad (m4 configuration macro)"




    project=orte
    framework=grpcomm
    component=bad
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=grpcomm
    component=bad

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=grpcomm
    component=bad

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_grpcomm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_grpcomm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:bad can compile" >&5
$as_echo_n "checking if MCA component grpcomm:bad can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "bad" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bad\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "bad" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bad\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bad"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_grpcomm_bad_DSO=1
else
  BUILD_grpcomm_bad_DSO=0
fi
     if test "$BUILD_grpcomm_bad_DSO" = "1"; then
  OMPI_BUILD_grpcomm_bad_DSO_TRUE=
  OMPI_BUILD_grpcomm_bad_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_bad_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_bad_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/basic/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component grpcomm:basic (m4 configuration macro)"




    project=orte
    framework=grpcomm
    component=basic
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=grpcomm
    component=basic

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=grpcomm
    component=basic

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_grpcomm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_grpcomm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:basic can compile" >&5
$as_echo_n "checking if MCA component grpcomm:basic can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "basic" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "basic" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components basic"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_grpcomm_basic_DSO=1
else
  BUILD_grpcomm_basic_DSO=0
fi
     if test "$BUILD_grpcomm_basic_DSO" = "1"; then
  OMPI_BUILD_grpcomm_basic_DSO_TRUE=
  OMPI_BUILD_grpcomm_basic_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_basic_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_basic_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/hier/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then :
  mca_component_priority=0
fi
                          if test $best_mca_component_priority -gt $mca_component_priority; then :
  components_looking_for_succeed=0
fi

    ompi_show_subsubsubtitle "MCA component grpcomm:hier (m4 configuration macro)"




    project=orte
    framework=grpcomm
    component=hier
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=grpcomm
    component=hier

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=grpcomm
    component=hier

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_grpcomm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_grpcomm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:hier can compile" >&5
$as_echo_n "checking if MCA component grpcomm:hier can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "hier" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hier\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hier\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "hier" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hier\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hier\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components hier"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_grpcomm_hier_DSO=1
else
  BUILD_grpcomm_hier_DSO=0
fi
     if test "$BUILD_grpcomm_hier_DSO" = "1"; then
  OMPI_BUILD_grpcomm_hier_DSO_TRUE=
  OMPI_BUILD_grpcomm_hier_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_hier_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_hier_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode


                   if test $components_last_result -eq 1; then :
  best_mca_component_priority=$mca_component_priority
fi

    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)


    MCA_grpcomm_ALL_COMPONENTS="$all_components"
    MCA_grpcomm_STATIC_COMPONENTS="$static_components"
    MCA_grpcomm_DSO_COMPONENTS="$dso_components"
    MCA_grpcomm_STATIC_LTLIBS="$static_ltlibs"







    MCA_grpcomm_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_grpcomm_ALL_SUBDIRS="$MCA_grpcomm_ALL_SUBDIRS mca/grpcomm/$item"
    done



    MCA_grpcomm_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_grpcomm_STATIC_SUBDIRS="$MCA_grpcomm_STATIC_SUBDIRS mca/grpcomm/$item"
    done



    MCA_grpcomm_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_grpcomm_DSO_SUBDIRS="$MCA_grpcomm_DSO_SUBDIRS mca/grpcomm/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "grpcomm" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_grpcomm_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "iof" = "common" ; then
                              MCA_orte_FRAMEWORKS="iof $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/iof $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_iof_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_iof_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_iof_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS iof"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/iof"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_iof_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_iof_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_iof_STATIC_SUBDIRS)"
                          fi
                          if test "iof" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/iof/libmca_iof.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_iof_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework iof"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "iof" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/iof/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework iof" >&5
$as_echo_n "checking for no configure components in framework iof... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: hnp, orted, tool" >&5
$as_echo "hnp, orted, tool" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework iof" >&5
$as_echo_n "checking for m4 configure components in framework iof... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component iof:hnp (no configuration)"




    project=orte
    framework=iof
    component=hnp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=iof
    component=hnp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    component=hnp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:hnp can compile" >&5
$as_echo_n "checking if MCA component iof:hnp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "hnp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "hnp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components hnp"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_iof_hnp_DSO=1
    else
        BUILD_iof_hnp_DSO=0
    fi
     if test "$BUILD_iof_hnp_DSO" = "1"; then
  OMPI_BUILD_iof_hnp_DSO_TRUE=
  OMPI_BUILD_iof_hnp_DSO_FALSE='#'
else
  OMPI_BUILD_iof_hnp_DSO_TRUE='#'
  OMPI_BUILD_iof_hnp_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component iof:orted (no configuration)"




    project=orte
    framework=iof
    component=orted
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=iof
    component=orted

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    component=orted

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:orted can compile" >&5
$as_echo_n "checking if MCA component iof:orted can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "orted" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orted\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "orted" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orted\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components orted"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_iof_orted_DSO=1
    else
        BUILD_iof_orted_DSO=0
    fi
     if test "$BUILD_iof_orted_DSO" = "1"; then
  OMPI_BUILD_iof_orted_DSO_TRUE=
  OMPI_BUILD_iof_orted_DSO_FALSE='#'
else
  OMPI_BUILD_iof_orted_DSO_TRUE='#'
  OMPI_BUILD_iof_orted_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component iof:tool (no configuration)"




    project=orte
    framework=iof
    component=tool
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=iof
    component=tool

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    component=tool

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:tool can compile" >&5
$as_echo_n "checking if MCA component iof:tool can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "tool" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "tool" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components tool"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_iof_tool_DSO=1
    else
        BUILD_iof_tool_DSO=0
    fi
     if test "$BUILD_iof_tool_DSO" = "1"; then
  OMPI_BUILD_iof_tool_DSO_TRUE=
  OMPI_BUILD_iof_tool_DSO_FALSE='#'
else
  OMPI_BUILD_iof_tool_DSO_TRUE='#'
  OMPI_BUILD_iof_tool_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/iof/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component iof:$component (need to configure)"




    project=orte
    framework=iof
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=iof
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/iof/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/iof/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:$component can compile" >&5
$as_echo_n "checking if MCA component iof:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_iof_ALL_COMPONENTS="$all_components"
    MCA_iof_STATIC_COMPONENTS="$static_components"
    MCA_iof_DSO_COMPONENTS="$dso_components"
    MCA_iof_STATIC_LTLIBS="$static_ltlibs"







    MCA_iof_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_iof_ALL_SUBDIRS="$MCA_iof_ALL_SUBDIRS mca/iof/$item"
    done



    MCA_iof_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_iof_STATIC_SUBDIRS="$MCA_iof_STATIC_SUBDIRS mca/iof/$item"
    done



    MCA_iof_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_iof_DSO_SUBDIRS="$MCA_iof_DSO_SUBDIRS mca/iof/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "iof" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_iof_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "notifier" = "common" ; then
                              MCA_orte_FRAMEWORKS="notifier $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/notifier $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_notifier_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_notifier_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_notifier_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS notifier"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/notifier"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_notifier_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_notifier_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_notifier_STATIC_SUBDIRS)"
                          fi
                          if test "notifier" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/notifier/libmca_notifier.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_notifier_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework notifier"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "notifier" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/notifier/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework notifier" >&5
$as_echo_n "checking for no configure components in framework notifier... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework notifier" >&5
$as_echo_n "checking for m4 configure components in framework notifier... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: command, ftb, smtp, syslog" >&5
$as_echo "command, ftb, smtp, syslog" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component notifier:command (m4 configuration macro)"




    project=orte
    framework=notifier
    component=command
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_notifier" ; then
            if test "$DIRECT_notifier" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=notifier
    component=command

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # We need fork() and pipe()
    ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
if test "x$ac_cv_func_pipe" = x""yes; then :
  should_build=1
else
  should_build=0
fi

else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=notifier
    component=command

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_notifier" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_notifier" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component notifier:command can compile" >&5
$as_echo_n "checking if MCA component notifier:command can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "command" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"command\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"command\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "command" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"command\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"command\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components command"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_notifier_command_DSO=1
else
  BUILD_notifier_command_DSO=0
fi
     if test "$BUILD_notifier_command_DSO" = "1"; then
  OMPI_BUILD_notifier_command_DSO_TRUE=
  OMPI_BUILD_notifier_command_DSO_FALSE='#'
else
  OMPI_BUILD_notifier_command_DSO_TRUE='#'
  OMPI_BUILD_notifier_command_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component notifier:ftb (m4 configuration macro)"




    project=orte
    framework=notifier
    component=ftb
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_notifier" ; then
            if test "$DIRECT_notifier" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=notifier
    component=ftb

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-ftb was given.
if test "${with_ftb+set}" = set; then :
  withval=$with_ftb;
fi


# Check whether --with-ftb-libdir was given.
if test "${with_ftb_libdir+set}" = set; then :
  withval=$with_ftb_libdir;
fi


    if test "$with_ftb" != "no"; then :
  if test ! -z "$with_ftb" -a "$with_ftb" != "yes"; then :
  ompi_check_ftb_dir="$with_ftb"
fi
            if test ! -z "$with_ftb_libdir" -a "$with_ftb_libdir" != "yes"; then :
  ompi_check_ftb_libdir="$with_ftb_libdir"
fi


    ompi_check_package_notifier_ftb_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_notifier_ftb_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_notifier_ftb_save_LIBS="$LIBS"

    ompi_check_package_notifier_ftb_orig_CPPFLAGS="$notifier_ftb_CPPFLAGS"
    ompi_check_package_notifier_ftb_orig_LDFLAGS="$notifier_ftb_LDFLAGS"
    ompi_check_package_notifier_ftb_orig_LIBS="$notifier_ftb_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_libftb_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_ftb_dir" = "/usr" -o "$ompi_check_ftb_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "libftb.h" "ac_cv_header_libftb_h" "$ac_includes_default"
if test "x$ac_cv_header_libftb_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_libftb_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_ftb_dir" != ""; then :
  notifier_ftb_CPPFLAGS="$notifier_ftb_CPPFLAGS -I$ompi_check_ftb_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_ftb_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "libftb.h" "ac_cv_header_libftb_h" "$ac_includes_default"
if test "x$ac_cv_header_libftb_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ftb_FTB_Connect
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_ftb_libdir" != ""; then :
   # libdir was specified - search only there
           notifier_ftb_LDFLAGS="$notifier_ftb_LDFLAGS -L$ompi_check_ftb_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_ftb_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                  notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                  unset ac_cv_lib_ftb_FTB_Connect
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_ftb_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                     notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                     unset ac_cv_lib_ftb_FTB_Connect
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_ftb_LDFLAGS="$notifier_ftb_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                          notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                          unset ac_cv_lib_ftb_FTB_Connect
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_ftb_LDFLAGS="$notifier_ftb_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                          notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                          unset ac_cv_lib_ftb_FTB_Connect
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  notifier_ftb_LIBS="-lftb "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ftb_FTB_Connect
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_ftb_libdir" != ""; then :
   # libdir was specified - search only there
           notifier_ftb_LDFLAGS="$notifier_ftb_LDFLAGS -L$ompi_check_ftb_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_ftb_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                  notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                  unset ac_cv_lib_ftb_FTB_Connect
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_ftb_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                     notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                     unset ac_cv_lib_ftb_FTB_Connect
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_ftb_LDFLAGS="$notifier_ftb_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                          notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                          unset ac_cv_lib_ftb_FTB_Connect
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_ftb_LDFLAGS="$notifier_ftb_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5
$as_echo_n "checking for FTB_Connect in -lftb... " >&6; }
if test "${ac_cv_lib_ftb_FTB_Connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lftb  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FTB_Connect ();
int
main ()
{
return FTB_Connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ftb_FTB_Connect=yes
else
  ac_cv_lib_ftb_FTB_Connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5
$as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; }
if test "x$ac_cv_lib_ftb_FTB_Connect" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
                          notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
                          unset ac_cv_lib_ftb_FTB_Connect
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  notifier_ftb_LIBS="-lftb "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_ftb_happy="yes"
else
  notifier_ftb_CPPFLAGS="$ompi_check_package_notifier_ftb_orig_CPPFLAGS"
           notifier_ftb_LDFLAGS="$ompi_check_package_notifier_ftb_orig_LDFLAGS"
           notifier_ftb_LIBS="$ompi_check_package_notifier_ftb_orig_LIBS"
           ompi_check_ftb_happy="no"
fi

    CPPFLAGS="$ompi_check_package_notifier_ftb_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_notifier_ftb_save_LDFLAGS"
    LIBS="$ompi_check_package_notifier_ftb_save_LIBS"


else
  ompi_check_ftb_happy="no"
fi

    if test "$ompi_check_ftb_happy" = "yes"; then :
  notifier_ftb_happy="yes"
else
  if test ! -z "$with_ftb" -a "$with_ftb" != "no"; then :
  as_fn_error "FTB (Fault Tolerance Backplane) support requested but not found.  Aborting" "$LINENO" 5
fi
            notifier_ftb_happy="no"
fi


    if test "$notifier_ftb_happy" = "yes"; then :
  notifier_ftb_WRAPPER_EXTRA_LDFLAGS="$notifier_ftb_LDFLAGS"
           notifier_ftb_WRAPPER_EXTRA_LIBS="$notifier_ftb_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build ftb






fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=notifier
    component=ftb

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_notifier" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_notifier" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component notifier:ftb can compile" >&5
$as_echo_n "checking if MCA component notifier:ftb can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "ftb" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ftb\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ftb\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "ftb" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ftb\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ftb\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components ftb"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_notifier_ftb_DSO=1
else
  BUILD_notifier_ftb_DSO=0
fi
     if test "$BUILD_notifier_ftb_DSO" = "1"; then
  OMPI_BUILD_notifier_ftb_DSO_TRUE=
  OMPI_BUILD_notifier_ftb_DSO_FALSE='#'
else
  OMPI_BUILD_notifier_ftb_DSO_TRUE='#'
  OMPI_BUILD_notifier_ftb_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component notifier:smtp (m4 configuration macro)"




    project=orte
    framework=notifier
    component=smtp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_notifier" ; then
            if test "$DIRECT_notifier" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=notifier
    component=smtp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-esmtp was given.
if test "${with_esmtp+set}" = set; then :
  withval=$with_esmtp;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-esmtp value" >&5
$as_echo_n "checking --with-esmtp value... " >&6; }
    if test "$with_esmtp" = "yes" -o "$with_esmtp" = "no" -o "x$with_esmtp" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_esmtp"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_esmtp not found" >&5
$as_echo "$as_me: WARNING: Directory $with_esmtp not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_esmtp/include/libesmtp.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_esmtp/include/libesmtp.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_esmtp/include/libesmtp.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_esmtp)" >&5
$as_echo "sanity check ok ($with_esmtp)" >&6; }

fi


fi


fi


# Check whether --with-esmtp-libdir was given.
if test "${with_esmtp_libdir+set}" = set; then :
  withval=$with_esmtp_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-esmtp-libdir value" >&5
$as_echo_n "checking --with-esmtp-libdir value... " >&6; }
    if test "$with_esmtp_libdir" = "yes" -o "$with_esmtp_libdir" = "no" -o "x$with_esmtp_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_esmtp_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_esmtp_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_esmtp_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_esmtp_libdir/libesmtp* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_esmtp_libdir/libesmtp* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_esmtp_libdir/libesmtp* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_esmtp_libdir)" >&5
$as_echo "sanity check ok ($with_esmtp_libdir)" >&6; }

fi


fi


fi


    if test ! -z "$with_esmtp" -a "$with_esmtp" != "yes"; then :
  notifier_smtp_dir="$with_esmtp"
fi
    if test ! -z "$with_esmtp_libdir" -a "$with_esmtp_libdir" != "yes"; then :
  notifier_smtp_libdir="$with_esmtp_libdir"
fi

    if test "$with_esmtp" = "no"; then :
  notifier_smtp_happy="no"
else
  notifier_smtp_happy="yes"
fi

    if test "$notifier_smtp_happy" = "yes"; then :

    ompi_check_package_notifier_smtp_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_notifier_smtp_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_notifier_smtp_save_LIBS="$LIBS"

    ompi_check_package_notifier_smtp_orig_CPPFLAGS="$notifier_smtp_CPPFLAGS"
    ompi_check_package_notifier_smtp_orig_LDFLAGS="$notifier_smtp_LDFLAGS"
    ompi_check_package_notifier_smtp_orig_LIBS="$notifier_smtp_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_libesmtp_h

    ompi_check_package_header_happy="no"
    if test "$notifier_smtp_dir" = "/usr" -o "$notifier_smtp_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "libesmtp.h" "ac_cv_header_libesmtp_h" "$ac_includes_default"
if test "x$ac_cv_header_libesmtp_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_libesmtp_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$notifier_smtp_dir" != ""; then :
  notifier_smtp_CPPFLAGS="$notifier_smtp_CPPFLAGS -I$notifier_smtp_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$notifier_smtp_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "libesmtp.h" "ac_cv_header_libesmtp_h" "$ac_includes_default"
if test "x$ac_cv_header_libesmtp_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_esmtp_smtp_create_session
    ompi_check_package_lib_happy="no"
    if test "$notifier_smtp_libdir" != ""; then :
   # libdir was specified - search only there
           notifier_smtp_LDFLAGS="$notifier_smtp_LDFLAGS -L$notifier_smtp_libdir"
           LDFLAGS="$LDFLAGS -L$notifier_smtp_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                  notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                  unset ac_cv_lib_esmtp_smtp_create_session
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$notifier_smtp_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                     notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                     unset ac_cv_lib_esmtp_smtp_create_session
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_smtp_LDFLAGS="$notifier_smtp_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                          notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                          unset ac_cv_lib_esmtp_smtp_create_session
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_smtp_LDFLAGS="$notifier_smtp_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                          notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                          unset ac_cv_lib_esmtp_smtp_create_session
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  notifier_smtp_LIBS="-lesmtp "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_esmtp_smtp_create_session
    ompi_check_package_lib_happy="no"
    if test "$notifier_smtp_libdir" != ""; then :
   # libdir was specified - search only there
           notifier_smtp_LDFLAGS="$notifier_smtp_LDFLAGS -L$notifier_smtp_libdir"
           LDFLAGS="$LDFLAGS -L$notifier_smtp_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                  notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                  unset ac_cv_lib_esmtp_smtp_create_session
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$notifier_smtp_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                     notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                     unset ac_cv_lib_esmtp_smtp_create_session
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_smtp_LDFLAGS="$notifier_smtp_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                          notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                          unset ac_cv_lib_esmtp_smtp_create_session
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  notifier_smtp_LDFLAGS="$notifier_smtp_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lesmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char smtp_create_session ();
int
main ()
{
return smtp_create_session ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_esmtp_smtp_create_session=yes
else
  ac_cv_lib_esmtp_smtp_create_session=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
if test "x$ac_cv_lib_esmtp_smtp_create_session" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
                          notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
                          unset ac_cv_lib_esmtp_smtp_create_session
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  notifier_smtp_LIBS="-lesmtp "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  notifier_smtp_happy="yes"
else
  notifier_smtp_CPPFLAGS="$ompi_check_package_notifier_smtp_orig_CPPFLAGS"
           notifier_smtp_LDFLAGS="$ompi_check_package_notifier_smtp_orig_LDFLAGS"
           notifier_smtp_LIBS="$ompi_check_package_notifier_smtp_orig_LIBS"
           notifier_smtp_happy="no"
fi

    CPPFLAGS="$ompi_check_package_notifier_smtp_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_notifier_smtp_save_LDFLAGS"
    LIBS="$ompi_check_package_notifier_smtp_save_LIBS"

fi

    if test "$notifier_smtp_happy" = "yes"; then :
  notifier_smtp_WRAPPER_EXTRA_LDFLAGS="$notifier_smtp_LDFLAGS"
           notifier_smtp_WRAPPER_EXTRA_LIBS="$notifier_smtp_LIBS"
           should_build=1
else
  should_build=0
fi

    # sanity check
    if test "$notifier_smtp_happy" = "no"; then :
  if test "$with_esmtp" != "no" -a ! -z "$with_esmtp"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: notifier:smtp requested but not found" >&5
$as_echo "$as_me: WARNING: notifier:smtp requested but not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
fi
fi

    # substitute in the things needed to build libnuma







fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=notifier
    component=smtp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_notifier" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_notifier" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component notifier:smtp can compile" >&5
$as_echo_n "checking if MCA component notifier:smtp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "smtp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"smtp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"smtp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "smtp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"smtp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"smtp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components smtp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_notifier_smtp_DSO=1
else
  BUILD_notifier_smtp_DSO=0
fi
     if test "$BUILD_notifier_smtp_DSO" = "1"; then
  OMPI_BUILD_notifier_smtp_DSO_TRUE=
  OMPI_BUILD_notifier_smtp_DSO_FALSE='#'
else
  OMPI_BUILD_notifier_smtp_DSO_TRUE='#'
  OMPI_BUILD_notifier_smtp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component notifier:syslog (m4 configuration macro)"




    project=orte
    framework=notifier
    component=syslog
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_notifier" ; then
            if test "$DIRECT_notifier" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=notifier
    component=syslog

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :
  should_build=1

fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=notifier
    component=syslog

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_notifier" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_notifier" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component notifier:syslog can compile" >&5
$as_echo_n "checking if MCA component notifier:syslog can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "syslog" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"syslog\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "syslog" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"syslog\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components syslog"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_notifier_syslog_DSO=1
else
  BUILD_notifier_syslog_DSO=0
fi
     if test "$BUILD_notifier_syslog_DSO" = "1"; then
  OMPI_BUILD_notifier_syslog_DSO_TRUE=
  OMPI_BUILD_notifier_syslog_DSO_FALSE='#'
else
  OMPI_BUILD_notifier_syslog_DSO_TRUE='#'
  OMPI_BUILD_notifier_syslog_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/notifier/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component notifier:$component (need to configure)"




    project=orte
    framework=notifier
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_notifier" ; then
            if test "$DIRECT_notifier" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=notifier
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/notifier/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/notifier/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=notifier
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_notifier" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_notifier" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component notifier:$component can compile" >&5
$as_echo_n "checking if MCA component notifier:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_notifier_ALL_COMPONENTS="$all_components"
    MCA_notifier_STATIC_COMPONENTS="$static_components"
    MCA_notifier_DSO_COMPONENTS="$dso_components"
    MCA_notifier_STATIC_LTLIBS="$static_ltlibs"







    MCA_notifier_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_notifier_ALL_SUBDIRS="$MCA_notifier_ALL_SUBDIRS mca/notifier/$item"
    done



    MCA_notifier_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_notifier_STATIC_SUBDIRS="$MCA_notifier_STATIC_SUBDIRS mca/notifier/$item"
    done



    MCA_notifier_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_notifier_DSO_SUBDIRS="$MCA_notifier_DSO_SUBDIRS mca/notifier/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "notifier" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_notifier_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "odls" = "common" ; then
                              MCA_orte_FRAMEWORKS="odls $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/odls $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_odls_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_odls_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_odls_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS odls"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/odls"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_odls_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_odls_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_odls_STATIC_SUBDIRS)"
                          fi
                          if test "odls" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/odls/libmca_odls.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_odls_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework odls"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "odls" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/odls/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework odls" >&5
$as_echo_n "checking for no configure components in framework odls... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework odls" >&5
$as_echo_n "checking for m4 configure components in framework odls... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: default, process" >&5
$as_echo "default, process" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component odls:default (m4 configuration macro)"




    project=orte
    framework=odls
    component=default
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_odls" ; then
            if test "$DIRECT_odls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=odls
    component=default

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_odls" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=odls
    component=default

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_odls" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_odls" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:default can compile" >&5
$as_echo_n "checking if MCA component odls:default can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_odls" = "default" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_odls" ; then
        if test "$DIRECT_odls" = "default" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components default"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_odls_default_DSO=1
else
  BUILD_odls_default_DSO=0
fi
     if test "$BUILD_odls_default_DSO" = "1"; then
  OMPI_BUILD_odls_default_DSO_TRUE=
  OMPI_BUILD_odls_default_DSO_FALSE='#'
else
  OMPI_BUILD_odls_default_DSO_TRUE='#'
  OMPI_BUILD_odls_default_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component odls:process (m4 configuration macro)"




    project=orte
    framework=odls
    component=process
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_odls" ; then
            if test "$DIRECT_odls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=odls
    component=process

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_odls" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    ac_fn_c_check_func "$LINENO" "CreateProcess" "ac_cv_func_CreateProcess"
if test "x$ac_cv_func_CreateProcess" = x""yes; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=odls
    component=process

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_odls" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_odls" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:process can compile" >&5
$as_echo_n "checking if MCA component odls:process can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_odls" = "process" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_odls" ; then
        if test "$DIRECT_odls" = "process" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components process"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_odls_process_DSO=1
else
  BUILD_odls_process_DSO=0
fi
     if test "$BUILD_odls_process_DSO" = "1"; then
  OMPI_BUILD_odls_process_DSO_TRUE=
  OMPI_BUILD_odls_process_DSO_FALSE='#'
else
  OMPI_BUILD_odls_process_DSO_TRUE='#'
  OMPI_BUILD_odls_process_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/odls/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component odls:$component (need to configure)"




    project=orte
    framework=odls
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_odls" ; then
            if test "$DIRECT_odls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=odls
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_odls" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/odls/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/odls/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=odls
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_odls" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_odls" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:$component can compile" >&5
$as_echo_n "checking if MCA component odls:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_odls" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_odls" ; then
        if test "$DIRECT_odls" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_odls_ALL_COMPONENTS="$all_components"
    MCA_odls_STATIC_COMPONENTS="$static_components"
    MCA_odls_DSO_COMPONENTS="$dso_components"
    MCA_odls_STATIC_LTLIBS="$static_ltlibs"







    MCA_odls_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_odls_ALL_SUBDIRS="$MCA_odls_ALL_SUBDIRS mca/odls/$item"
    done



    MCA_odls_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_odls_STATIC_SUBDIRS="$MCA_odls_STATIC_SUBDIRS mca/odls/$item"
    done



    MCA_odls_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_odls_DSO_SUBDIRS="$MCA_odls_DSO_SUBDIRS mca/odls/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "odls" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_odls_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "oob" = "common" ; then
                              MCA_orte_FRAMEWORKS="oob $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/oob $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_oob_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_oob_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_oob_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS oob"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/oob"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oob_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oob_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oob_STATIC_SUBDIRS)"
                          fi
                          if test "oob" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/oob/libmca_oob.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_oob_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework oob"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "oob" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/oob/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework oob" >&5
$as_echo_n "checking for no configure components in framework oob... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework oob" >&5
$as_echo_n "checking for m4 configure components in framework oob... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcp" >&5
$as_echo "tcp" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component oob:tcp (m4 configuration macro)"




    project=orte
    framework=oob
    component=tcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_oob" ; then
            if test "$DIRECT_oob" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=oob
    component=tcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_oob" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # check for sockaddr_in (a good sign we have TCP)
    ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF

should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=oob
    component=tcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_oob" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_oob" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:tcp can compile" >&5
$as_echo_n "checking if MCA component oob:tcp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_oob" = "tcp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_oob" ; then
        if test "$DIRECT_oob" = "tcp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tcp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_oob_tcp_DSO=1
else
  BUILD_oob_tcp_DSO=0
fi
     if test "$BUILD_oob_tcp_DSO" = "1"; then
  OMPI_BUILD_oob_tcp_DSO_TRUE=
  OMPI_BUILD_oob_tcp_DSO_FALSE='#'
else
  OMPI_BUILD_oob_tcp_DSO_TRUE='#'
  OMPI_BUILD_oob_tcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/oob/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component oob:$component (need to configure)"




    project=orte
    framework=oob
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_oob" ; then
            if test "$DIRECT_oob" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=oob
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_oob" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/oob/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/oob/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=oob
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_oob" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_oob" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:$component can compile" >&5
$as_echo_n "checking if MCA component oob:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_oob" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_oob" ; then
        if test "$DIRECT_oob" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_oob_ALL_COMPONENTS="$all_components"
    MCA_oob_STATIC_COMPONENTS="$static_components"
    MCA_oob_DSO_COMPONENTS="$dso_components"
    MCA_oob_STATIC_LTLIBS="$static_ltlibs"







    MCA_oob_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_oob_ALL_SUBDIRS="$MCA_oob_ALL_SUBDIRS mca/oob/$item"
    done



    MCA_oob_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_oob_STATIC_SUBDIRS="$MCA_oob_STATIC_SUBDIRS mca/oob/$item"
    done



    MCA_oob_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_oob_DSO_SUBDIRS="$MCA_oob_DSO_SUBDIRS mca/oob/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "oob" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_oob_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "plm" = "common" ; then
                              MCA_orte_FRAMEWORKS="plm $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/plm $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_plm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_plm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_plm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS plm"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/plm"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_plm_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_plm_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_plm_STATIC_SUBDIRS)"
                          fi
                          if test "plm" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/plm/libmca_plm.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_plm_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework plm"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "plm" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/plm/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework plm" >&5
$as_echo_n "checking for no configure components in framework plm... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework plm" >&5
$as_echo_n "checking for m4 configure components in framework plm... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, ccp, lsf, process, rsh, rshd, slurm, tm" >&5
$as_echo "alps, ccp, lsf, process, rsh, rshd, slurm, tm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component plm:alps (m4 configuration macro)"




    project=orte
    framework=plm
    component=alps
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=alps

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-alps was given.
if test "${with_alps+set}" = set; then :
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    orte_check_alps_happy="yes"
	fi
	if test "$orte_check_alps_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=alps

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:alps can compile" >&5
$as_echo_n "checking if MCA component plm:alps can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "alps" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "alps" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components alps"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_alps_DSO=1
else
  BUILD_plm_alps_DSO=0
fi
     if test "$BUILD_plm_alps_DSO" = "1"; then
  OMPI_BUILD_plm_alps_DSO_TRUE=
  OMPI_BUILD_plm_alps_DSO_FALSE='#'
else
  OMPI_BUILD_plm_alps_DSO_TRUE='#'
  OMPI_BUILD_plm_alps_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:ccp (m4 configuration macro)"




    project=orte
    framework=plm
    component=ccp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=ccp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    plm_ccp_good=0
    # CCP does never exist under Unix
    should_build=0


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=ccp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:ccp can compile" >&5
$as_echo_n "checking if MCA component plm:ccp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "ccp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "ccp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components ccp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_ccp_DSO=1
else
  BUILD_plm_ccp_DSO=0
fi
     if test "$BUILD_plm_ccp_DSO" = "1"; then
  OMPI_BUILD_plm_ccp_DSO_TRUE=
  OMPI_BUILD_plm_ccp_DSO_FALSE='#'
else
  OMPI_BUILD_plm_ccp_DSO_TRUE='#'
  OMPI_BUILD_plm_ccp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:lsf (m4 configuration macro)"




    project=orte
    framework=plm
    component=lsf
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=lsf

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-lsf was given.
if test "${with_lsf+set}" = set; then :
  withval=$with_lsf;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf value" >&5
$as_echo_n "checking --with-lsf value... " >&6; }
    if test "$with_lsf" = "yes" -o "$with_lsf" = "no" -o "x$with_lsf" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf)" >&5
$as_echo "sanity check ok ($with_lsf)" >&6; }

fi


fi


fi


# Check whether --with-lsf-libdir was given.
if test "${with_lsf_libdir+set}" = set; then :
  withval=$with_lsf_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf-libdir value" >&5
$as_echo_n "checking --with-lsf-libdir value... " >&6; }
    if test "$with_lsf_libdir" = "yes" -o "$with_lsf_libdir" = "no" -o "x$with_lsf_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf_libdir)" >&5
$as_echo "sanity check ok ($with_lsf_libdir)" >&6; }

fi


fi


fi


    # Defaults
    orte_check_lsf_dir_msg="compiler default"
    orte_check_lsf_libdir_msg="linker default"

    # Save directory names if supplied
    if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then :
  orte_check_lsf_dir="$with_lsf"
           orte_check_lsf_dir_msg="$orte_check_lsf_dir (from --with-lsf)"
fi
    if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then :
  orte_check_lsf_libdir="$with_lsf_libdir"
           orte_check_lsf_libdir_msg="$orte_check_lsf_libdir (from --with-lsf-libdir)"
fi

    # If no directories were specified, look for LSF_LIBDIR,
    # LSF_INCLUDEDIR, and/or LSF_ENVDIR.
    if test -z "$orte_check_lsf_dir" -a -z "$orte_check_lsf_libdir"; then :
  if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then :
  LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi
           if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then :
  LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi
           if test ! -z "$LSF_LIBDIR"; then :
  orte_check_lsf_libdir=$LSF_LIBDIR
                  orte_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"
fi
           if test ! -z "$LSF_INCLUDEDIR"; then :
  orte_check_lsf_dir=`dirname $LSF_INCLUDEDIR`
                  orte_check_lsf_dir_msg="$orte_check_lsf_dir (from \$LSF_INCLUDEDIR)"
fi
fi

    if test "$with_lsf" = "no"; then :
  orte_check_lsf_happy="no"
else
  orte_check_lsf_happy="yes"
fi

    orte_check_lsf_plm_lsf_save_CPPFLAGS="$CPPFLAGS"
    orte_check_lsf_plm_lsf_save_LDFLAGS="$LDFLAGS"
    orte_check_lsf_plm_lsf_save_LIBS="$LIBS"

    if test "$orte_check_lsf_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF dir" >&5
$as_echo_n "checking for LSF dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_dir_msg" >&5
$as_echo "$orte_check_lsf_dir_msg" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF library dir" >&5
$as_echo_n "checking for LSF library dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_libdir_msg" >&5
$as_echo "$orte_check_lsf_libdir_msg" >&6; }

    ompi_check_package_plm_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_plm_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_plm_lsf_save_LIBS="$LIBS"

    ompi_check_package_plm_lsf_orig_CPPFLAGS="$plm_lsf_CPPFLAGS"
    ompi_check_package_plm_lsf_orig_LDFLAGS="$plm_lsf_LDFLAGS"
    ompi_check_package_plm_lsf_orig_LIBS="$plm_lsf_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_lsf_lsbatch_h

    ompi_check_package_header_happy="no"
    if test "$orte_check_lsf_dir" = "/usr" -o "$orte_check_lsf_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default"
if test "x$ac_cv_header_lsf_lsbatch_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_lsf_lsbatch_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$orte_check_lsf_dir" != ""; then :
  plm_lsf_CPPFLAGS="$plm_lsf_CPPFLAGS -I$orte_check_lsf_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$orte_check_lsf_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default"
if test "x$ac_cv_header_lsf_lsbatch_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$orte_check_lsf_libdir" != ""; then :
   # libdir was specified - search only there
           plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$orte_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                  plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                     plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  plm_lsf_LIBS="-lbat -llsf"
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$orte_check_lsf_libdir" != ""; then :
   # libdir was specified - search only there
           plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$orte_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                  plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                     plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  plm_lsf_LIBS="-lbat -llsf"
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  orte_check_lsf_happy="yes"
else
  plm_lsf_CPPFLAGS="$ompi_check_package_plm_lsf_orig_CPPFLAGS"
           plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
           plm_lsf_LIBS="$ompi_check_package_plm_lsf_orig_LIBS"
           orte_check_lsf_happy="no"
fi

    CPPFLAGS="$ompi_check_package_plm_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
    LIBS="$ompi_check_package_plm_lsf_save_LIBS"

fi

    CPPFLAGS="$orte_check_lsf_plm_lsf_save_CPPFLAGS"
    LDFLAGS="$orte_check_lsf_plm_lsf_save_LDFLAGS"
    LIBS="$orte_check_lsf_plm_lsf_save_LIBS"

    # Reset for the next time we're called
    orte_check_lsf_dir=
    orte_check_lsf_libdir=

    if test "$orte_check_lsf_happy" = "yes"; then :
  plm_lsf_good=1
else
  if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF support requested (via --with-lsf) but not found." >&5
$as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;}
                  as_fn_error "Aborting." "$LINENO" 5
fi
           plm_lsf_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$plm_lsf_good" = "1"; then :
  plm_lsf_WRAPPER_EXTRA_LDFLAGS="$plm_lsf_LDFLAGS"
           plm_lsf_WRAPPER_EXTRA_LIBS="$plm_lsf_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=lsf

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:lsf can compile" >&5
$as_echo_n "checking if MCA component plm:lsf can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "lsf" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "lsf" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components lsf"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_lsf_DSO=1
else
  BUILD_plm_lsf_DSO=0
fi
     if test "$BUILD_plm_lsf_DSO" = "1"; then
  OMPI_BUILD_plm_lsf_DSO_TRUE=
  OMPI_BUILD_plm_lsf_DSO_FALSE='#'
else
  OMPI_BUILD_plm_lsf_DSO_TRUE='#'
  OMPI_BUILD_plm_lsf_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:process (m4 configuration macro)"




    project=orte
    framework=plm
    component=process
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=process

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    plm_process_good=0
    # PROCESS does never exist under Unix
    should_build=0


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=process

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:process can compile" >&5
$as_echo_n "checking if MCA component plm:process can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "process" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "process" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components process"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_process_DSO=1
else
  BUILD_plm_process_DSO=0
fi
     if test "$BUILD_plm_process_DSO" = "1"; then
  OMPI_BUILD_plm_process_DSO_TRUE=
  OMPI_BUILD_plm_process_DSO_FALSE='#'
else
  OMPI_BUILD_plm_process_DSO_TRUE='#'
  OMPI_BUILD_plm_process_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:rsh (m4 configuration macro)"




    project=orte
    framework=plm
    component=rsh
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=rsh

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=rsh

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:rsh can compile" >&5
$as_echo_n "checking if MCA component plm:rsh can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "rsh" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "rsh" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components rsh"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_rsh_DSO=1
else
  BUILD_plm_rsh_DSO=0
fi
     if test "$BUILD_plm_rsh_DSO" = "1"; then
  OMPI_BUILD_plm_rsh_DSO_TRUE=
  OMPI_BUILD_plm_rsh_DSO_FALSE='#'
else
  OMPI_BUILD_plm_rsh_DSO_TRUE='#'
  OMPI_BUILD_plm_rsh_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:rshd (m4 configuration macro)"




    project=orte
    framework=plm
    component=rshd
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=rshd

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=rshd

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:rshd can compile" >&5
$as_echo_n "checking if MCA component plm:rshd can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "rshd" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rshd\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rshd\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "rshd" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rshd\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rshd\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components rshd"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_rshd_DSO=1
else
  BUILD_plm_rshd_DSO=0
fi
     if test "$BUILD_plm_rshd_DSO" = "1"; then
  OMPI_BUILD_plm_rshd_DSO_TRUE=
  OMPI_BUILD_plm_rshd_DSO_FALSE='#'
else
  OMPI_BUILD_plm_rshd_DSO_TRUE='#'
  OMPI_BUILD_plm_rshd_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:slurm (m4 configuration macro)"




    project=orte
    framework=plm
    component=slurm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=slurm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-slurm was given.
if test "${with_slurm+set}" = set; then :
  withval=$with_slurm;
fi


    if test "$with_slurm" = "no" ; then
        orte_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on linux, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                orte_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        ORTE_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$ORTE_CHECK_SLURM_SRUN" = ""; then
                    orte_check_slurm_happy="no"
                else
                    orte_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5
$as_echo "$orte_check_slurm_happy" >&6; }
                ;;
        esac
    else
        orte_check_slurm_happy="yes"
    fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve"
if test "x$ac_cv_func_execve" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  plm_slurm_good=1
else
  plm_slurm_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$plm_slurm_good" = "1"; then :
  plm_slurm_WRAPPER_EXTRA_LDFLAGS="$plm_slurm_LDFLAGS"
           plm_slurm_WRAPPER_EXTRA_LIBS="$plm_slurm_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=slurm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:slurm can compile" >&5
$as_echo_n "checking if MCA component plm:slurm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "slurm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "slurm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_slurm_DSO=1
else
  BUILD_plm_slurm_DSO=0
fi
     if test "$BUILD_plm_slurm_DSO" = "1"; then
  OMPI_BUILD_plm_slurm_DSO_TRUE=
  OMPI_BUILD_plm_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_plm_slurm_DSO_TRUE='#'
  OMPI_BUILD_plm_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:tm (m4 configuration macro)"




    project=orte
    framework=plm
    component=tm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=plm
    component=tm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-tm was given.
if test "${with_tm+set}" = set; then :
  withval=$with_tm;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tm value" >&5
$as_echo_n "checking --with-tm value... " >&6; }
    if test "$with_tm" = "yes" -o "$with_tm" = "no" -o "x$with_tm" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_tm"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_tm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_tm/include/tm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_tm)" >&5
$as_echo "sanity check ok ($with_tm)" >&6; }

fi


fi


fi


    orte_check_tm_found=no
    if test "$with_tm" = "no"; then :
  orte_check_tm_happy="no"
else
  orte_check_tm_happy="yes"
           if test ! -z "$with_tm" -a "$with_tm" != "yes"; then :
  orte_check_tm_dir="$with_tm"
else
  orte_check_tm_dir=""
fi
fi

    if test "$orte_check_tm_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pbs-config" >&5
$as_echo_n "checking for pbs-config... " >&6; }
           orte_check_tm_pbs_config="not found"
           if test "$orte_check_tm_dir" != "" -a -d "$orte_check_tm_dir" -a -x "$orte_check_tm_dir/bin/pbs-config"; then :
  orte_check_tm_pbs_config="$orte_check_tm_dir/bin/pbs-config"
else
  if pbs-config --prefix >/dev/null 2>&1; then :
  orte_check_tm_pbs_config="pbs-config"
fi
fi
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_tm_pbs_config" >&5
$as_echo "$orte_check_tm_pbs_config" >&6; }
fi

    # If we have pbs-config, get the flags we need from there and then
    # do simplistic tests looking for the tm headers and symbols

    if test "$orte_check_tm_happy" = "yes" -a "$orte_check_tm_pbs_config" != "not found"; then :
  plm_tm_CPPFLAGS=`$orte_check_tm_pbs_config --cflags`

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:100449: plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS" >&5
else
    echo plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS >&5
fi


    orte_check_tm_flags=`$orte_check_tm_pbs_config --libs`
    for orte_check_tm_val in $orte_check_tm_flags; do
        if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LDFLAGS" = "LIBS"; then
                plm_tm_LDFLAGS="$plm_tm_LDFLAGS $orte_check_tm_val"
            fi
        else
            if test "LDFLAGS" = "LDFLAGS"; then
                plm_tm_LDFLAGS="$plm_tm_LDFLAGS $orte_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:100472: plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS" >&5
else
    echo plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS >&5
fi


    orte_check_tm_flags=`$orte_check_tm_pbs_config --libs`
    for orte_check_tm_val in $orte_check_tm_flags; do
        if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LIBS" = "LIBS"; then
                plm_tm_LIBS="$plm_tm_LIBS $orte_check_tm_val"
            fi
        else
            if test "LIBS" = "LDFLAGS"; then
                plm_tm_LIBS="$plm_tm_LIBS $orte_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:100495: plm_tm_LIBS from pbs-config: $plm_tm_LIBS" >&5
else
    echo plm_tm_LIBS from pbs-config: $plm_tm_LIBS >&5
fi

           # Now that we supposedly have the right flags, try them out.

           CPPFLAGS_save="$CPPFLAGS"
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"

           CPPFLAGS="$CPPFLAGS $plm_tm_CPPFLAGS"
           LIBS="$LIBS $plm_tm_LIBS"
           LDFLAGS="$LDFLAGS $plm_tm_LDFLAGS"

           ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  ac_fn_c_check_func "$LINENO" "tm_finalize" "ac_cv_func_tm_finalize"
if test "x$ac_cv_func_tm_finalize" = x""yes; then :
  orte_check_tm_found="yes"
fi

fi



           CPPFLAGS="$CPPFLAGS_save"
           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
fi

    # If we don't have pbs-config, then we have to look around
    # manually.

    # Note that Torque 2.1.0 changed the name of their back-end
    # library to "libtorque".  So we have to check for both libpbs and
    # libtorque.  First, check for libpbs.

    orte_check_package_plm_tm_save_CPPFLAGS="$CPPFLAGS"
    orte_check_package_plm_tm_save_LDFLAGS="$LDFLAGS"
    orte_check_package_plm_tm_save_LIBS="$LIBS"

    orte_check_package_plm_tm_orig_CPPFLAGS="$plm_tm_CPPFLAGS"
    orte_check_package_plm_tm_orig_LDFLAGS="$plm_tm_LDFLAGS"
    orte_check_package_plm_tm_orig_LIBS="$plm_tm_LIBS"

    if test "$orte_check_tm_found" = "no"; then :
  if test "$orte_check_tm_happy" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$orte_check_tm_dir" = "/usr" -o "$orte_check_tm_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$orte_check_tm_dir" != ""; then :
  plm_tm_CPPFLAGS="$plm_tm_CPPFLAGS -I$orte_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$orte_check_tm_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  orte_check_tm_found="yes"
else
  orte_check_tm_found="no"
fi


else
  orte_check_tm_found="yes"
fi
    unset ompi_check_package_header_happy
fi

           if test "$orte_check_tm_found" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "$orte_check_tm_libdir" != ""; then :
   # libdir was specified - search only there
           plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$orte_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                  plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                     plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  plm_tm_LIBS="-lpbs "
           orte_check_tm_found="yes"
else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_init
    ompi_check_package_lib_happy="no"
    if test "$orte_check_tm_libdir" != ""; then :
   # libdir was specified - search only there
           plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$orte_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                  plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                     plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  plm_tm_LIBS="-ltorque "
           orte_check_tm_found="yes"
else
  orte_check_tm_found="no"
fi


fi


fi
fi

    CPPFLAGS="$orte_check_package_plm_tm_save_CPPFLAGS"
    LDFLAGS="$orte_check_package_plm_tm_save_LDFLAGS"
    LIBS="$orte_check_package_plm_tm_save_LIBS"

    # Did we find the right stuff?
    if test "$orte_check_tm_happy" = "yes" -a "$orte_check_tm_found" = "yes"; then :
  plm_tm_good=1
else
  if test ! -z "$with_tm" -a "$with_tm" != "no"; then :
  as_fn_error "TM support requested but not found.  Aborting" "$LINENO" 5
fi
           plm_tm_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$plm_tm_good" = "1"; then :
  plm_tm_WRAPPER_EXTRA_LDFLAGS="$plm_tm_LDFLAGS"
           plm_tm_WRAPPER_EXTRA_LIBS="$plm_tm_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=plm
    component=tm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:tm can compile" >&5
$as_echo_n "checking if MCA component plm:tm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "tm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "tm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_plm_tm_DSO=1
else
  BUILD_plm_tm_DSO=0
fi
     if test "$BUILD_plm_tm_DSO" = "1"; then
  OMPI_BUILD_plm_tm_DSO_TRUE=
  OMPI_BUILD_plm_tm_DSO_FALSE='#'
else
  OMPI_BUILD_plm_tm_DSO_TRUE='#'
  OMPI_BUILD_plm_tm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/plm/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component plm:$component (need to configure)"




    project=orte
    framework=plm
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_plm" ; then
            if test "$DIRECT_plm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=plm
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/plm/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/plm/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=plm
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_plm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_plm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:$component can compile" >&5
$as_echo_n "checking if MCA component plm:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_plm_ALL_COMPONENTS="$all_components"
    MCA_plm_STATIC_COMPONENTS="$static_components"
    MCA_plm_DSO_COMPONENTS="$dso_components"
    MCA_plm_STATIC_LTLIBS="$static_ltlibs"







    MCA_plm_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_plm_ALL_SUBDIRS="$MCA_plm_ALL_SUBDIRS mca/plm/$item"
    done



    MCA_plm_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_plm_STATIC_SUBDIRS="$MCA_plm_STATIC_SUBDIRS mca/plm/$item"
    done



    MCA_plm_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_plm_DSO_SUBDIRS="$MCA_plm_DSO_SUBDIRS mca/plm/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "plm" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_plm_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "ras" = "common" ; then
                              MCA_orte_FRAMEWORKS="ras $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/ras $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ras_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ras_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ras_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ras"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ras"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ras_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ras_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ras_STATIC_SUBDIRS)"
                          fi
                          if test "ras" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ras/libmca_ras.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ras_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework ras"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "ras" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/ras/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework ras" >&5
$as_echo_n "checking for no configure components in framework ras... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cm" >&5
$as_echo "cm" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework ras" >&5
$as_echo_n "checking for m4 configure components in framework ras... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, ccp, gridengine, loadleveler, lsf, slurm, tm" >&5
$as_echo "alps, ccp, gridengine, loadleveler, lsf, slurm, tm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component ras:cm (no configuration)"




    project=orte
    framework=ras
    component=cm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=ras
    component=cm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=ras
    component=cm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:cm can compile" >&5
$as_echo_n "checking if MCA component ras:cm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "cm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "cm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components cm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_ras_cm_DSO=1
    else
        BUILD_ras_cm_DSO=0
    fi
     if test "$BUILD_ras_cm_DSO" = "1"; then
  OMPI_BUILD_ras_cm_DSO_TRUE=
  OMPI_BUILD_ras_cm_DSO_FALSE='#'
else
  OMPI_BUILD_ras_cm_DSO_TRUE='#'
  OMPI_BUILD_ras_cm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component ras:alps (m4 configuration macro)"




    project=orte
    framework=ras
    component=alps
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=alps

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-alps was given.
if test "${with_alps+set}" = set; then :
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    orte_check_alps_happy="yes"
	fi
	if test "$orte_check_alps_happy" = "yes"; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=alps

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:alps can compile" >&5
$as_echo_n "checking if MCA component ras:alps can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "alps" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "alps" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components alps"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_alps_DSO=1
else
  BUILD_ras_alps_DSO=0
fi
     if test "$BUILD_ras_alps_DSO" = "1"; then
  OMPI_BUILD_ras_alps_DSO_TRUE=
  OMPI_BUILD_ras_alps_DSO_FALSE='#'
else
  OMPI_BUILD_ras_alps_DSO_TRUE='#'
  OMPI_BUILD_ras_alps_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:ccp (m4 configuration macro)"




    project=orte
    framework=ras
    component=ccp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=ccp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    ras_ccp_good=0
    # CCP does never exist under Unix
    should_build=0


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=ccp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:ccp can compile" >&5
$as_echo_n "checking if MCA component ras:ccp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "ccp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "ccp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components ccp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_ccp_DSO=1
else
  BUILD_ras_ccp_DSO=0
fi
     if test "$BUILD_ras_ccp_DSO" = "1"; then
  OMPI_BUILD_ras_ccp_DSO_TRUE=
  OMPI_BUILD_ras_ccp_DSO_FALSE='#'
else
  OMPI_BUILD_ras_ccp_DSO_TRUE='#'
  OMPI_BUILD_ras_ccp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:gridengine (m4 configuration macro)"




    project=orte
    framework=ras
    component=gridengine
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=gridengine

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-sge was given.
if test "${with_sge+set}" = set; then :
  withval=$with_sge;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user requested SGE build" >&5
$as_echo_n "checking if user requested SGE build... " >&6; }
    orte_gridengine_build=
    if test "$with_sge" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
           orte_gridengine_build=yes
else
  if test "$with_sge" = "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified; checking environment" >&5
$as_echo "not specified; checking environment" >&6; }
                  # Extract the first word of "qrsh", so it can be a program name with args.
set dummy qrsh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_QRSH+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$QRSH"; then
  ac_cv_prog_QRSH="$QRSH" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_QRSH="qrsh"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
QRSH=$ac_cv_prog_QRSH
if test -n "$QRSH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QRSH" >&5
$as_echo "$QRSH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


                  if test "$QRSH" != ""; then :
  orte_gridengine_build=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGE_ROOT environment variable" >&5
$as_echo_n "checking for SGE_ROOT environment variable... " >&6; }
                         if test "$SGE_ROOT" != ""; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
                                orte_gridengine_build=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
fi
fi
fi

    if test "$orte_gridengine_build" = "yes"; then :
  should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=gridengine

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:gridengine can compile" >&5
$as_echo_n "checking if MCA component ras:gridengine can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "gridengine" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "gridengine" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components gridengine"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_gridengine_DSO=1
else
  BUILD_ras_gridengine_DSO=0
fi
     if test "$BUILD_ras_gridengine_DSO" = "1"; then
  OMPI_BUILD_ras_gridengine_DSO_TRUE=
  OMPI_BUILD_ras_gridengine_DSO_FALSE='#'
else
  OMPI_BUILD_ras_gridengine_DSO_TRUE='#'
  OMPI_BUILD_ras_gridengine_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:loadleveler (m4 configuration macro)"




    project=orte
    framework=ras
    component=loadleveler
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=loadleveler

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-loadleveler was given.
if test "${with_loadleveler+set}" = set; then :
  withval=$with_loadleveler;
fi


    if test "$with_loadleveler" = "no" ; then
        orte_check_loadleveler_happy="no"
    elif test "$with_loadleveler" = "" ; then
        # unless user asked, only build LoadLeveler component on Linux
        # and AIX (these are the platforms that LoadLeveler supports)
        case $host in
            *-linux*|*-aix*)
                orte_check_loadleveler_happy="yes"
                ;;
            *)
                orte_check_loadleveler_happy="no"
                ;;
        esac
    else
        orte_check_loadleveler_happy="yes"
    fi

    if test "$orte_check_loadleveler_happy" = "yes"; then :
  ras_loadleveler_good=1
else
  ras_loadleveler_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_loadleveler_good" = "1"; then :
  ras_loadleveler_WRAPPER_EXTRA_LDFLAGS="$ras_loadleveler_LDFLAGS"
           ras_loadleveler_WRAPPER_EXTRA_LIBS="$ras_loadleveler_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=loadleveler

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:loadleveler can compile" >&5
$as_echo_n "checking if MCA component ras:loadleveler can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "loadleveler" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "loadleveler" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components loadleveler"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_loadleveler_DSO=1
else
  BUILD_ras_loadleveler_DSO=0
fi
     if test "$BUILD_ras_loadleveler_DSO" = "1"; then
  OMPI_BUILD_ras_loadleveler_DSO_TRUE=
  OMPI_BUILD_ras_loadleveler_DSO_FALSE='#'
else
  OMPI_BUILD_ras_loadleveler_DSO_TRUE='#'
  OMPI_BUILD_ras_loadleveler_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:lsf (m4 configuration macro)"




    project=orte
    framework=ras
    component=lsf
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=lsf

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-lsf was given.
if test "${with_lsf+set}" = set; then :
  withval=$with_lsf;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf value" >&5
$as_echo_n "checking --with-lsf value... " >&6; }
    if test "$with_lsf" = "yes" -o "$with_lsf" = "no" -o "x$with_lsf" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf)" >&5
$as_echo "sanity check ok ($with_lsf)" >&6; }

fi


fi


fi


# Check whether --with-lsf-libdir was given.
if test "${with_lsf_libdir+set}" = set; then :
  withval=$with_lsf_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf-libdir value" >&5
$as_echo_n "checking --with-lsf-libdir value... " >&6; }
    if test "$with_lsf_libdir" = "yes" -o "$with_lsf_libdir" = "no" -o "x$with_lsf_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf_libdir)" >&5
$as_echo "sanity check ok ($with_lsf_libdir)" >&6; }

fi


fi


fi


    # Defaults
    orte_check_lsf_dir_msg="compiler default"
    orte_check_lsf_libdir_msg="linker default"

    # Save directory names if supplied
    if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then :
  orte_check_lsf_dir="$with_lsf"
           orte_check_lsf_dir_msg="$orte_check_lsf_dir (from --with-lsf)"
fi
    if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then :
  orte_check_lsf_libdir="$with_lsf_libdir"
           orte_check_lsf_libdir_msg="$orte_check_lsf_libdir (from --with-lsf-libdir)"
fi

    # If no directories were specified, look for LSF_LIBDIR,
    # LSF_INCLUDEDIR, and/or LSF_ENVDIR.
    if test -z "$orte_check_lsf_dir" -a -z "$orte_check_lsf_libdir"; then :
  if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then :
  LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi
           if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then :
  LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi
           if test ! -z "$LSF_LIBDIR"; then :
  orte_check_lsf_libdir=$LSF_LIBDIR
                  orte_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"
fi
           if test ! -z "$LSF_INCLUDEDIR"; then :
  orte_check_lsf_dir=`dirname $LSF_INCLUDEDIR`
                  orte_check_lsf_dir_msg="$orte_check_lsf_dir (from \$LSF_INCLUDEDIR)"
fi
fi

    if test "$with_lsf" = "no"; then :
  orte_check_lsf_happy="no"
else
  orte_check_lsf_happy="yes"
fi

    orte_check_lsf_ras_lsf_save_CPPFLAGS="$CPPFLAGS"
    orte_check_lsf_ras_lsf_save_LDFLAGS="$LDFLAGS"
    orte_check_lsf_ras_lsf_save_LIBS="$LIBS"

    if test "$orte_check_lsf_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF dir" >&5
$as_echo_n "checking for LSF dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_dir_msg" >&5
$as_echo "$orte_check_lsf_dir_msg" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF library dir" >&5
$as_echo_n "checking for LSF library dir... " >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_libdir_msg" >&5
$as_echo "$orte_check_lsf_libdir_msg" >&6; }

    ompi_check_package_ras_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ras_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ras_lsf_save_LIBS="$LIBS"

    ompi_check_package_ras_lsf_orig_CPPFLAGS="$ras_lsf_CPPFLAGS"
    ompi_check_package_ras_lsf_orig_LDFLAGS="$ras_lsf_LDFLAGS"
    ompi_check_package_ras_lsf_orig_LIBS="$ras_lsf_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_lsf_lsbatch_h

    ompi_check_package_header_happy="no"
    if test "$orte_check_lsf_dir" = "/usr" -o "$orte_check_lsf_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default"
if test "x$ac_cv_header_lsf_lsbatch_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_lsf_lsbatch_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$orte_check_lsf_dir" != ""; then :
  ras_lsf_CPPFLAGS="$ras_lsf_CPPFLAGS -I$orte_check_lsf_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$orte_check_lsf_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default"
if test "x$ac_cv_header_lsf_lsbatch_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$orte_check_lsf_libdir" != ""; then :
   # libdir was specified - search only there
           ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$orte_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                  ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                     ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ras_lsf_LIBS="-lbat -llsf"
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$orte_check_lsf_libdir" != ""; then :
   # libdir was specified - search only there
           ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$orte_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                  ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                     ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bat_lsb_launch=yes
else
  ac_cv_lib_bat_lsb_launch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ras_lsf_LIBS="-lbat -llsf"
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  orte_check_lsf_happy="yes"
else
  ras_lsf_CPPFLAGS="$ompi_check_package_ras_lsf_orig_CPPFLAGS"
           ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
           ras_lsf_LIBS="$ompi_check_package_ras_lsf_orig_LIBS"
           orte_check_lsf_happy="no"
fi

    CPPFLAGS="$ompi_check_package_ras_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
    LIBS="$ompi_check_package_ras_lsf_save_LIBS"

fi

    CPPFLAGS="$orte_check_lsf_ras_lsf_save_CPPFLAGS"
    LDFLAGS="$orte_check_lsf_ras_lsf_save_LDFLAGS"
    LIBS="$orte_check_lsf_ras_lsf_save_LIBS"

    # Reset for the next time we're called
    orte_check_lsf_dir=
    orte_check_lsf_libdir=

    if test "$orte_check_lsf_happy" = "yes"; then :
  ras_lsf_good=1
else
  if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF support requested (via --with-lsf) but not found." >&5
$as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;}
                  as_fn_error "Aborting." "$LINENO" 5
fi
           ras_lsf_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_lsf_good" = "1"; then :
  ras_lsf_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_LDFLAGS"
           ras_lsf_WRAPPER_EXTRA_LIBS="$ras_lsf_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=lsf

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:lsf can compile" >&5
$as_echo_n "checking if MCA component ras:lsf can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "lsf" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "lsf" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components lsf"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_lsf_DSO=1
else
  BUILD_ras_lsf_DSO=0
fi
     if test "$BUILD_ras_lsf_DSO" = "1"; then
  OMPI_BUILD_ras_lsf_DSO_TRUE=
  OMPI_BUILD_ras_lsf_DSO_FALSE='#'
else
  OMPI_BUILD_ras_lsf_DSO_TRUE='#'
  OMPI_BUILD_ras_lsf_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:slurm (m4 configuration macro)"




    project=orte
    framework=ras
    component=slurm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=slurm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-slurm was given.
if test "${with_slurm+set}" = set; then :
  withval=$with_slurm;
fi


    if test "$with_slurm" = "no" ; then
        orte_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on linux, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                orte_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        ORTE_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$ORTE_CHECK_SLURM_SRUN" = ""; then
                    orte_check_slurm_happy="no"
                else
                    orte_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5
$as_echo "$orte_check_slurm_happy" >&6; }
                ;;
        esac
    else
        orte_check_slurm_happy="yes"
    fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
if test "x$ac_cv_func_fork" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve"
if test "x$ac_cv_func_execve" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = x""yes; then :
  orte_check_slurm_happy="yes"
else
  orte_check_slurm_happy="no"
fi

fi

    if test "$orte_check_slurm_happy" = "yes"; then :
  ras_slurm_good=1
else
  ras_slurm_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_slurm_good" = "1"; then :
  ras_slurm_WRAPPER_EXTRA_LDFLAGS="$ras_slurm_LDFLAGS"
           ras_slurm_WRAPPER_EXTRA_LIBS="$ras_slurm_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=slurm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:slurm can compile" >&5
$as_echo_n "checking if MCA component ras:slurm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "slurm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "slurm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_slurm_DSO=1
else
  BUILD_ras_slurm_DSO=0
fi
     if test "$BUILD_ras_slurm_DSO" = "1"; then
  OMPI_BUILD_ras_slurm_DSO_TRUE=
  OMPI_BUILD_ras_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_ras_slurm_DSO_TRUE='#'
  OMPI_BUILD_ras_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:tm (m4 configuration macro)"




    project=orte
    framework=ras
    component=tm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=tm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-tm was given.
if test "${with_tm+set}" = set; then :
  withval=$with_tm;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tm value" >&5
$as_echo_n "checking --with-tm value... " >&6; }
    if test "$with_tm" = "yes" -o "$with_tm" = "no" -o "x$with_tm" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_tm"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_tm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_tm/include/tm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_tm)" >&5
$as_echo "sanity check ok ($with_tm)" >&6; }

fi


fi


fi


    orte_check_tm_found=no
    if test "$with_tm" = "no"; then :
  orte_check_tm_happy="no"
else
  orte_check_tm_happy="yes"
           if test ! -z "$with_tm" -a "$with_tm" != "yes"; then :
  orte_check_tm_dir="$with_tm"
else
  orte_check_tm_dir=""
fi
fi

    if test "$orte_check_tm_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pbs-config" >&5
$as_echo_n "checking for pbs-config... " >&6; }
           orte_check_tm_pbs_config="not found"
           if test "$orte_check_tm_dir" != "" -a -d "$orte_check_tm_dir" -a -x "$orte_check_tm_dir/bin/pbs-config"; then :
  orte_check_tm_pbs_config="$orte_check_tm_dir/bin/pbs-config"
else
  if pbs-config --prefix >/dev/null 2>&1; then :
  orte_check_tm_pbs_config="pbs-config"
fi
fi
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_tm_pbs_config" >&5
$as_echo "$orte_check_tm_pbs_config" >&6; }
fi

    # If we have pbs-config, get the flags we need from there and then
    # do simplistic tests looking for the tm headers and symbols

    if test "$orte_check_tm_happy" = "yes" -a "$orte_check_tm_pbs_config" != "not found"; then :
  ras_tm_CPPFLAGS=`$orte_check_tm_pbs_config --cflags`

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:104967: ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS" >&5
else
    echo ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS >&5
fi


    orte_check_tm_flags=`$orte_check_tm_pbs_config --libs`
    for orte_check_tm_val in $orte_check_tm_flags; do
        if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LDFLAGS" = "LIBS"; then
                ras_tm_LDFLAGS="$ras_tm_LDFLAGS $orte_check_tm_val"
            fi
        else
            if test "LDFLAGS" = "LDFLAGS"; then
                ras_tm_LDFLAGS="$ras_tm_LDFLAGS $orte_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:104990: ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS" >&5
else
    echo ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS >&5
fi


    orte_check_tm_flags=`$orte_check_tm_pbs_config --libs`
    for orte_check_tm_val in $orte_check_tm_flags; do
        if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LIBS" = "LIBS"; then
                ras_tm_LIBS="$ras_tm_LIBS $orte_check_tm_val"
            fi
        else
            if test "LIBS" = "LDFLAGS"; then
                ras_tm_LIBS="$ras_tm_LIBS $orte_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:105013: ras_tm_LIBS from pbs-config: $ras_tm_LIBS" >&5
else
    echo ras_tm_LIBS from pbs-config: $ras_tm_LIBS >&5
fi

           # Now that we supposedly have the right flags, try them out.

           CPPFLAGS_save="$CPPFLAGS"
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"

           CPPFLAGS="$CPPFLAGS $ras_tm_CPPFLAGS"
           LIBS="$LIBS $ras_tm_LIBS"
           LDFLAGS="$LDFLAGS $ras_tm_LDFLAGS"

           ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  ac_fn_c_check_func "$LINENO" "tm_finalize" "ac_cv_func_tm_finalize"
if test "x$ac_cv_func_tm_finalize" = x""yes; then :
  orte_check_tm_found="yes"
fi

fi



           CPPFLAGS="$CPPFLAGS_save"
           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
fi

    # If we don't have pbs-config, then we have to look around
    # manually.

    # Note that Torque 2.1.0 changed the name of their back-end
    # library to "libtorque".  So we have to check for both libpbs and
    # libtorque.  First, check for libpbs.

    orte_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS"
    orte_check_package_ras_tm_save_LDFLAGS="$LDFLAGS"
    orte_check_package_ras_tm_save_LIBS="$LIBS"

    orte_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS"
    orte_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS"
    orte_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS"

    if test "$orte_check_tm_found" = "no"; then :
  if test "$orte_check_tm_happy" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$orte_check_tm_dir" = "/usr" -o "$orte_check_tm_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$orte_check_tm_dir" != ""; then :
  ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$orte_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$orte_check_tm_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default"
if test "x$ac_cv_header_tm_h" = x""yes; then :
  orte_check_tm_found="yes"
else
  orte_check_tm_found="no"
fi


else
  orte_check_tm_found="yes"
fi
    unset ompi_check_package_header_happy
fi

           if test "$orte_check_tm_found" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "$orte_check_tm_libdir" != ""; then :
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$orte_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                  ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                     ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pbs_tm_init=yes
else
  ac_cv_lib_pbs_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ras_tm_LIBS="-lpbs "
           orte_check_tm_found="yes"
else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_init
    ompi_check_package_lib_happy="no"
    if test "$orte_check_tm_libdir" != ""; then :
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$orte_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                  ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$orte_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                     ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_torque_tm_init=yes
else
  ac_cv_lib_torque_tm_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  ras_tm_LIBS="-ltorque "
           orte_check_tm_found="yes"
else
  orte_check_tm_found="no"
fi


fi


fi
fi

    CPPFLAGS="$orte_check_package_ras_tm_save_CPPFLAGS"
    LDFLAGS="$orte_check_package_ras_tm_save_LDFLAGS"
    LIBS="$orte_check_package_ras_tm_save_LIBS"

    # Did we find the right stuff?
    if test "$orte_check_tm_happy" = "yes" -a "$orte_check_tm_found" = "yes"; then :
  ras_tm_good=1
else
  if test ! -z "$with_tm" -a "$with_tm" != "no"; then :
  as_fn_error "TM support requested but not found.  Aborting" "$LINENO" 5
fi
           ras_tm_good=0
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_tm_good" = "1"; then :
  ras_tm_WRAPPER_EXTRA_LDFLAGS="$ras_tm_LDFLAGS"
           ras_tm_WRAPPER_EXTRA_LIBS="$ras_tm_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile





fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=ras
    component=tm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:tm can compile" >&5
$as_echo_n "checking if MCA component ras:tm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "tm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "tm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_ras_tm_DSO=1
else
  BUILD_ras_tm_DSO=0
fi
     if test "$BUILD_ras_tm_DSO" = "1"; then
  OMPI_BUILD_ras_tm_DSO_TRUE=
  OMPI_BUILD_ras_tm_DSO_FALSE='#'
else
  OMPI_BUILD_ras_tm_DSO_TRUE='#'
  OMPI_BUILD_ras_tm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/ras/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component ras:$component (need to configure)"




    project=orte
    framework=ras
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=ras
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/ras/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/ras/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=ras
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:$component can compile" >&5
$as_echo_n "checking if MCA component ras:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_ras_ALL_COMPONENTS="$all_components"
    MCA_ras_STATIC_COMPONENTS="$static_components"
    MCA_ras_DSO_COMPONENTS="$dso_components"
    MCA_ras_STATIC_LTLIBS="$static_ltlibs"







    MCA_ras_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_ras_ALL_SUBDIRS="$MCA_ras_ALL_SUBDIRS mca/ras/$item"
    done



    MCA_ras_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_ras_STATIC_SUBDIRS="$MCA_ras_STATIC_SUBDIRS mca/ras/$item"
    done



    MCA_ras_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_ras_DSO_SUBDIRS="$MCA_ras_DSO_SUBDIRS mca/ras/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "ras" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_ras_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rmaps" = "common" ; then
                              MCA_orte_FRAMEWORKS="rmaps $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmaps $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmaps_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmaps_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmaps_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmaps"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmaps"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmaps_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmaps_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmaps_STATIC_SUBDIRS)"
                          fi
                          if test "rmaps" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmaps/libmca_rmaps.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmaps_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rmaps"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rmaps" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rmaps/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rmaps" >&5
$as_echo_n "checking for no configure components in framework rmaps... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: load_balance, rank_file, resilient, round_robin, seq, topo" >&5
$as_echo "load_balance, rank_file, resilient, round_robin, seq, topo" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rmaps" >&5
$as_echo_n "checking for m4 configure components in framework rmaps... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component rmaps:load_balance (no configuration)"




    project=orte
    framework=rmaps
    component=load_balance
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=load_balance

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=load_balance

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:load_balance can compile" >&5
$as_echo_n "checking if MCA component rmaps:load_balance can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "load_balance" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"load_balance\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"load_balance\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "load_balance" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"load_balance\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"load_balance\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components load_balance"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_load_balance_DSO=1
    else
        BUILD_rmaps_load_balance_DSO=0
    fi
     if test "$BUILD_rmaps_load_balance_DSO" = "1"; then
  OMPI_BUILD_rmaps_load_balance_DSO_TRUE=
  OMPI_BUILD_rmaps_load_balance_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_load_balance_DSO_TRUE='#'
  OMPI_BUILD_rmaps_load_balance_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmaps:rank_file (no configuration)"




    project=orte
    framework=rmaps
    component=rank_file
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=rank_file

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=rank_file

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:rank_file can compile" >&5
$as_echo_n "checking if MCA component rmaps:rank_file can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "rank_file" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rank_file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "rank_file" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rank_file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components rank_file"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_rank_file_DSO=1
    else
        BUILD_rmaps_rank_file_DSO=0
    fi
     if test "$BUILD_rmaps_rank_file_DSO" = "1"; then
  OMPI_BUILD_rmaps_rank_file_DSO_TRUE=
  OMPI_BUILD_rmaps_rank_file_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_rank_file_DSO_TRUE='#'
  OMPI_BUILD_rmaps_rank_file_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmaps:resilient (no configuration)"




    project=orte
    framework=rmaps
    component=resilient
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=resilient

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=resilient

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:resilient can compile" >&5
$as_echo_n "checking if MCA component rmaps:resilient can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "resilient" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"resilient\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"resilient\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "resilient" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"resilient\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"resilient\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components resilient"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_resilient_DSO=1
    else
        BUILD_rmaps_resilient_DSO=0
    fi
     if test "$BUILD_rmaps_resilient_DSO" = "1"; then
  OMPI_BUILD_rmaps_resilient_DSO_TRUE=
  OMPI_BUILD_rmaps_resilient_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_resilient_DSO_TRUE='#'
  OMPI_BUILD_rmaps_resilient_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmaps:round_robin (no configuration)"




    project=orte
    framework=rmaps
    component=round_robin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=round_robin

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=round_robin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:round_robin can compile" >&5
$as_echo_n "checking if MCA component rmaps:round_robin can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "round_robin" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "round_robin" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components round_robin"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_round_robin_DSO=1
    else
        BUILD_rmaps_round_robin_DSO=0
    fi
     if test "$BUILD_rmaps_round_robin_DSO" = "1"; then
  OMPI_BUILD_rmaps_round_robin_DSO_TRUE=
  OMPI_BUILD_rmaps_round_robin_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_round_robin_DSO_TRUE='#'
  OMPI_BUILD_rmaps_round_robin_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmaps:seq (no configuration)"




    project=orte
    framework=rmaps
    component=seq
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=seq

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=seq

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:seq can compile" >&5
$as_echo_n "checking if MCA component rmaps:seq can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "seq" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"seq\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "seq" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"seq\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components seq"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_seq_DSO=1
    else
        BUILD_rmaps_seq_DSO=0
    fi
     if test "$BUILD_rmaps_seq_DSO" = "1"; then
  OMPI_BUILD_rmaps_seq_DSO_TRUE=
  OMPI_BUILD_rmaps_seq_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_seq_DSO_TRUE='#'
  OMPI_BUILD_rmaps_seq_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmaps:topo (no configuration)"




    project=orte
    framework=rmaps
    component=topo
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=topo

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=topo

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:topo can compile" >&5
$as_echo_n "checking if MCA component rmaps:topo can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "topo" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"topo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"topo\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "topo" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"topo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"topo\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components topo"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_topo_DSO=1
    else
        BUILD_rmaps_topo_DSO=0
    fi
     if test "$BUILD_rmaps_topo_DSO" = "1"; then
  OMPI_BUILD_rmaps_topo_DSO_TRUE=
  OMPI_BUILD_rmaps_topo_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_topo_DSO_TRUE='#'
  OMPI_BUILD_rmaps_topo_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/rmaps/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rmaps:$component (need to configure)"




    project=orte
    framework=rmaps
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmaps
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rmaps/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rmaps/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:$component can compile" >&5
$as_echo_n "checking if MCA component rmaps:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_rmaps_ALL_COMPONENTS="$all_components"
    MCA_rmaps_STATIC_COMPONENTS="$static_components"
    MCA_rmaps_DSO_COMPONENTS="$dso_components"
    MCA_rmaps_STATIC_LTLIBS="$static_ltlibs"







    MCA_rmaps_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rmaps_ALL_SUBDIRS="$MCA_rmaps_ALL_SUBDIRS mca/rmaps/$item"
    done



    MCA_rmaps_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rmaps_STATIC_SUBDIRS="$MCA_rmaps_STATIC_SUBDIRS mca/rmaps/$item"
    done



    MCA_rmaps_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rmaps_DSO_SUBDIRS="$MCA_rmaps_DSO_SUBDIRS mca/rmaps/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rmaps" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rmaps_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rmcast" = "common" ; then
                              MCA_orte_FRAMEWORKS="rmcast $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmcast $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmcast_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmcast_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmcast_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmcast"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmcast"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmcast_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmcast_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmcast_STATIC_SUBDIRS)"
                          fi
                          if test "rmcast" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmcast/libmca_rmcast.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmcast_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rmcast"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rmcast" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rmcast/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rmcast" >&5
$as_echo_n "checking for no configure components in framework rmcast... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcp, udp" >&5
$as_echo "tcp, udp" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rmcast" >&5
$as_echo_n "checking for m4 configure components in framework rmcast... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component rmcast:tcp (no configuration)"




    project=orte
    framework=rmcast
    component=tcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmcast" ; then
            if test "$DIRECT_rmcast" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmcast
    component=tcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmcast" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmcast
    component=tcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmcast" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmcast" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmcast:tcp can compile" >&5
$as_echo_n "checking if MCA component rmcast:tcp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmcast" = "tcp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmcast" ; then
        if test "$DIRECT_rmcast" = "tcp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components tcp"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmcast_tcp_DSO=1
    else
        BUILD_rmcast_tcp_DSO=0
    fi
     if test "$BUILD_rmcast_tcp_DSO" = "1"; then
  OMPI_BUILD_rmcast_tcp_DSO_TRUE=
  OMPI_BUILD_rmcast_tcp_DSO_FALSE='#'
else
  OMPI_BUILD_rmcast_tcp_DSO_TRUE='#'
  OMPI_BUILD_rmcast_tcp_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmcast:udp (no configuration)"




    project=orte
    framework=rmcast
    component=udp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmcast" ; then
            if test "$DIRECT_rmcast" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmcast
    component=udp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmcast" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmcast
    component=udp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmcast" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmcast" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmcast:udp can compile" >&5
$as_echo_n "checking if MCA component rmcast:udp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmcast" = "udp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"udp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"udp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmcast" ; then
        if test "$DIRECT_rmcast" = "udp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"udp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"udp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components udp"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmcast_udp_DSO=1
    else
        BUILD_rmcast_udp_DSO=0
    fi
     if test "$BUILD_rmcast_udp_DSO" = "1"; then
  OMPI_BUILD_rmcast_udp_DSO_TRUE=
  OMPI_BUILD_rmcast_udp_DSO_FALSE='#'
else
  OMPI_BUILD_rmcast_udp_DSO_TRUE='#'
  OMPI_BUILD_rmcast_udp_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/rmcast/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rmcast:$component (need to configure)"




    project=orte
    framework=rmcast
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmcast" ; then
            if test "$DIRECT_rmcast" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rmcast
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmcast" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rmcast/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rmcast/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=rmcast
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmcast" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmcast" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmcast:$component can compile" >&5
$as_echo_n "checking if MCA component rmcast:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmcast" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rmcast" ; then
        if test "$DIRECT_rmcast" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_rmcast_ALL_COMPONENTS="$all_components"
    MCA_rmcast_STATIC_COMPONENTS="$static_components"
    MCA_rmcast_DSO_COMPONENTS="$dso_components"
    MCA_rmcast_STATIC_LTLIBS="$static_ltlibs"







    MCA_rmcast_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rmcast_ALL_SUBDIRS="$MCA_rmcast_ALL_SUBDIRS mca/rmcast/$item"
    done



    MCA_rmcast_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rmcast_STATIC_SUBDIRS="$MCA_rmcast_STATIC_SUBDIRS mca/rmcast/$item"
    done



    MCA_rmcast_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rmcast_DSO_SUBDIRS="$MCA_rmcast_DSO_SUBDIRS mca/rmcast/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rmcast" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rmcast_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rml" = "common" ; then
                              MCA_orte_FRAMEWORKS="rml $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rml $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rml_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rml_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rml_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rml"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rml"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rml_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rml_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rml_STATIC_SUBDIRS)"
                          fi
                          if test "rml" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rml/libmca_rml.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rml_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rml"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rml" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rml/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rml" >&5
$as_echo_n "checking for no configure components in framework rml... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: oob" >&5
$as_echo "oob" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rml" >&5
$as_echo_n "checking for m4 configure components in framework rml... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ftrm" >&5
$as_echo "ftrm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component rml:oob (no configuration)"




    project=orte
    framework=rml
    component=oob
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rml" ; then
            if test "$DIRECT_rml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rml
    component=oob

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rml
    component=oob

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:oob can compile" >&5
$as_echo_n "checking if MCA component rml:oob can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "oob" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"oob\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "oob" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"oob\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components oob"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rml_oob_DSO=1
    else
        BUILD_rml_oob_DSO=0
    fi
     if test "$BUILD_rml_oob_DSO" = "1"; then
  OMPI_BUILD_rml_oob_DSO_TRUE=
  OMPI_BUILD_rml_oob_DSO_FALSE='#'
else
  OMPI_BUILD_rml_oob_DSO_TRUE='#'
  OMPI_BUILD_rml_oob_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component rml:ftrm (m4 configuration macro)"




    project=orte
    framework=rml
    component=ftrm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rml" ; then
            if test "$DIRECT_rml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=rml
    component=ftrm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft_cr" = "1"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=rml
    component=ftrm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:ftrm can compile" >&5
$as_echo_n "checking if MCA component rml:ftrm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "ftrm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ftrm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "ftrm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ftrm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components ftrm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_rml_ftrm_DSO=1
else
  BUILD_rml_ftrm_DSO=0
fi
     if test "$BUILD_rml_ftrm_DSO" = "1"; then
  OMPI_BUILD_rml_ftrm_DSO_TRUE=
  OMPI_BUILD_rml_ftrm_DSO_FALSE='#'
else
  OMPI_BUILD_rml_ftrm_DSO_TRUE='#'
  OMPI_BUILD_rml_ftrm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/rml/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rml:$component (need to configure)"




    project=orte
    framework=rml
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rml" ; then
            if test "$DIRECT_rml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=rml
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rml/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rml/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=rml
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:$component can compile" >&5
$as_echo_n "checking if MCA component rml:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_rml_ALL_COMPONENTS="$all_components"
    MCA_rml_STATIC_COMPONENTS="$static_components"
    MCA_rml_DSO_COMPONENTS="$dso_components"
    MCA_rml_STATIC_LTLIBS="$static_ltlibs"







    MCA_rml_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rml_ALL_SUBDIRS="$MCA_rml_ALL_SUBDIRS mca/rml/$item"
    done



    MCA_rml_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rml_STATIC_SUBDIRS="$MCA_rml_STATIC_SUBDIRS mca/rml/$item"
    done



    MCA_rml_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rml_DSO_SUBDIRS="$MCA_rml_DSO_SUBDIRS mca/rml/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rml" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "routed" = "common" ; then
                              MCA_orte_FRAMEWORKS="routed $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/routed $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_routed_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_routed_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_routed_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS routed"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/routed"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_routed_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_routed_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_routed_STATIC_SUBDIRS)"
                          fi
                          if test "routed" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/routed/libmca_routed.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_routed_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework routed"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "routed" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/routed/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework routed" >&5
$as_echo_n "checking for no configure components in framework routed... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: binomial, cm, direct, linear, radix, slave" >&5
$as_echo "binomial, cm, direct, linear, radix, slave" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework routed" >&5
$as_echo_n "checking for m4 configure components in framework routed... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component routed:binomial (no configuration)"




    project=orte
    framework=routed
    component=binomial
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=binomial

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=binomial

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:binomial can compile" >&5
$as_echo_n "checking if MCA component routed:binomial can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "binomial" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"binomial\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "binomial" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"binomial\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components binomial"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_binomial_DSO=1
    else
        BUILD_routed_binomial_DSO=0
    fi
     if test "$BUILD_routed_binomial_DSO" = "1"; then
  OMPI_BUILD_routed_binomial_DSO_TRUE=
  OMPI_BUILD_routed_binomial_DSO_FALSE='#'
else
  OMPI_BUILD_routed_binomial_DSO_TRUE='#'
  OMPI_BUILD_routed_binomial_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:cm (no configuration)"




    project=orte
    framework=routed
    component=cm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=cm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=cm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:cm can compile" >&5
$as_echo_n "checking if MCA component routed:cm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "cm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "cm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components cm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_cm_DSO=1
    else
        BUILD_routed_cm_DSO=0
    fi
     if test "$BUILD_routed_cm_DSO" = "1"; then
  OMPI_BUILD_routed_cm_DSO_TRUE=
  OMPI_BUILD_routed_cm_DSO_FALSE='#'
else
  OMPI_BUILD_routed_cm_DSO_TRUE='#'
  OMPI_BUILD_routed_cm_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:direct (no configuration)"




    project=orte
    framework=routed
    component=direct
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=direct

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=direct

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:direct can compile" >&5
$as_echo_n "checking if MCA component routed:direct can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "direct" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"direct\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "direct" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"direct\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components direct"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_direct_DSO=1
    else
        BUILD_routed_direct_DSO=0
    fi
     if test "$BUILD_routed_direct_DSO" = "1"; then
  OMPI_BUILD_routed_direct_DSO_TRUE=
  OMPI_BUILD_routed_direct_DSO_FALSE='#'
else
  OMPI_BUILD_routed_direct_DSO_TRUE='#'
  OMPI_BUILD_routed_direct_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:linear (no configuration)"




    project=orte
    framework=routed
    component=linear
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=linear

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=linear

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:linear can compile" >&5
$as_echo_n "checking if MCA component routed:linear can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "linear" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linear\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "linear" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linear\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components linear"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_linear_DSO=1
    else
        BUILD_routed_linear_DSO=0
    fi
     if test "$BUILD_routed_linear_DSO" = "1"; then
  OMPI_BUILD_routed_linear_DSO_TRUE=
  OMPI_BUILD_routed_linear_DSO_FALSE='#'
else
  OMPI_BUILD_routed_linear_DSO_TRUE='#'
  OMPI_BUILD_routed_linear_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:radix (no configuration)"




    project=orte
    framework=routed
    component=radix
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=radix

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=radix

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:radix can compile" >&5
$as_echo_n "checking if MCA component routed:radix can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "radix" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"radix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"radix\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "radix" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"radix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"radix\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components radix"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_radix_DSO=1
    else
        BUILD_routed_radix_DSO=0
    fi
     if test "$BUILD_routed_radix_DSO" = "1"; then
  OMPI_BUILD_routed_radix_DSO_TRUE=
  OMPI_BUILD_routed_radix_DSO_FALSE='#'
else
  OMPI_BUILD_routed_radix_DSO_TRUE='#'
  OMPI_BUILD_routed_radix_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:slave (no configuration)"




    project=orte
    framework=routed
    component=slave
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=slave

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=slave

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:slave can compile" >&5
$as_echo_n "checking if MCA component routed:slave can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "slave" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slave\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slave\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "slave" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slave\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slave\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components slave"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_slave_DSO=1
    else
        BUILD_routed_slave_DSO=0
    fi
     if test "$BUILD_routed_slave_DSO" = "1"; then
  OMPI_BUILD_routed_slave_DSO_TRUE=
  OMPI_BUILD_routed_slave_DSO_FALSE='#'
else
  OMPI_BUILD_routed_slave_DSO_TRUE='#'
  OMPI_BUILD_routed_slave_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/routed/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component routed:$component (need to configure)"




    project=orte
    framework=routed
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_routed" ; then
            if test "$DIRECT_routed" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=routed
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/routed/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/routed/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_routed" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_routed" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:$component can compile" >&5
$as_echo_n "checking if MCA component routed:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_routed_ALL_COMPONENTS="$all_components"
    MCA_routed_STATIC_COMPONENTS="$static_components"
    MCA_routed_DSO_COMPONENTS="$dso_components"
    MCA_routed_STATIC_LTLIBS="$static_ltlibs"







    MCA_routed_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_routed_ALL_SUBDIRS="$MCA_routed_ALL_SUBDIRS mca/routed/$item"
    done



    MCA_routed_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_routed_STATIC_SUBDIRS="$MCA_routed_STATIC_SUBDIRS mca/routed/$item"
    done



    MCA_routed_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_routed_DSO_SUBDIRS="$MCA_routed_DSO_SUBDIRS mca/routed/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "routed" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_routed_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "snapc" = "common" ; then
                              MCA_orte_FRAMEWORKS="snapc $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/snapc $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_snapc_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_snapc_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_snapc_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS snapc"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/snapc"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_snapc_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_snapc_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_snapc_STATIC_SUBDIRS)"
                          fi
                          if test "snapc" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/snapc/libmca_snapc.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_snapc_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework snapc"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "snapc" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/snapc/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework snapc" >&5
$as_echo_n "checking for no configure components in framework snapc... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework snapc" >&5
$as_echo_n "checking for m4 configure components in framework snapc... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: full" >&5
$as_echo "full" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component snapc:full (m4 configuration macro)"




    project=orte
    framework=snapc
    component=full
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_snapc" ; then
            if test "$DIRECT_snapc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=snapc
    component=full

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_snapc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft_cr" = "1"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=orte
    framework=snapc
    component=full

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_snapc" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_snapc" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component snapc:full can compile" >&5
$as_echo_n "checking if MCA component snapc:full can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_snapc" = "full" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"full\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_snapc" ; then
        if test "$DIRECT_snapc" = "full" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"full\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components full"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_snapc_full_DSO=1
else
  BUILD_snapc_full_DSO=0
fi
     if test "$BUILD_snapc_full_DSO" = "1"; then
  OMPI_BUILD_snapc_full_DSO_TRUE=
  OMPI_BUILD_snapc_full_DSO_FALSE='#'
else
  OMPI_BUILD_snapc_full_DSO_TRUE='#'
  OMPI_BUILD_snapc_full_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/orte/mca/snapc/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component snapc:$component (need to configure)"




    project=orte
    framework=snapc
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_snapc" ; then
            if test "$DIRECT_snapc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=orte
    framework=snapc
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_snapc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/snapc/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/snapc/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=orte
    framework=snapc
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_snapc" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_snapc" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component snapc:$component can compile" >&5
$as_echo_n "checking if MCA component snapc:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_snapc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_snapc" ; then
        if test "$DIRECT_snapc" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_snapc_ALL_COMPONENTS="$all_components"
    MCA_snapc_STATIC_COMPONENTS="$static_components"
    MCA_snapc_DSO_COMPONENTS="$dso_components"
    MCA_snapc_STATIC_LTLIBS="$static_ltlibs"







    MCA_snapc_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_snapc_ALL_SUBDIRS="$MCA_snapc_ALL_SUBDIRS mca/snapc/$item"
    done



    MCA_snapc_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_snapc_STATIC_SUBDIRS="$MCA_snapc_STATIC_SUBDIRS mca/snapc/$item"
    done



    MCA_snapc_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_snapc_DSO_SUBDIRS="$MCA_snapc_DSO_SUBDIRS mca/snapc/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "snapc" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_snapc_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real








MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS ompi"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring MCA for ompi"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for ompi" >&5
$as_echo_n "checking for frameworks for ompi... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, op, osc, pml, pubsub, rcache, topo" >&5
$as_echo "allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, op, osc, pml, pubsub, rcache, topo" >&6; }

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library


    MCA_ompi_FRAMEWORKS=
    MCA_ompi_FRAMEWORKS_SUBDIRS=
    MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
    MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
    MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
    MCA_ompi_FRAMEWORK_LIBS=

    # common has to go up front
                          if test "allocator" = "common" ; then
                              MCA_ompi_FRAMEWORKS="allocator $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/allocator $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_allocator_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_allocator_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_allocator_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS allocator"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/allocator"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_allocator_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_allocator_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_allocator_STATIC_SUBDIRS)"
                          fi
                          if test "allocator" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/allocator/libmca_allocator.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_allocator_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework allocator"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "allocator" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/allocator/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework allocator" >&5
$as_echo_n "checking for no configure components in framework allocator... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: basic, bucket" >&5
$as_echo "basic, bucket" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework allocator" >&5
$as_echo_n "checking for m4 configure components in framework allocator... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component allocator:basic (no configuration)"




    project=ompi
    framework=allocator
    component=basic
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_allocator" ; then
            if test "$DIRECT_allocator" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=allocator
    component=basic

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_allocator" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=allocator
    component=basic

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_allocator" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_allocator" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:basic can compile" >&5
$as_echo_n "checking if MCA component allocator:basic can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "basic" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_allocator" ; then
        if test "$DIRECT_allocator" = "basic" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components basic"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_allocator_basic_DSO=1
    else
        BUILD_allocator_basic_DSO=0
    fi
     if test "$BUILD_allocator_basic_DSO" = "1"; then
  OMPI_BUILD_allocator_basic_DSO_TRUE=
  OMPI_BUILD_allocator_basic_DSO_FALSE='#'
else
  OMPI_BUILD_allocator_basic_DSO_TRUE='#'
  OMPI_BUILD_allocator_basic_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component allocator:bucket (no configuration)"




    project=ompi
    framework=allocator
    component=bucket
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_allocator" ; then
            if test "$DIRECT_allocator" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=allocator
    component=bucket

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_allocator" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=allocator
    component=bucket

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_allocator" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_allocator" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:bucket can compile" >&5
$as_echo_n "checking if MCA component allocator:bucket can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "bucket" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bucket\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_allocator" ; then
        if test "$DIRECT_allocator" = "bucket" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bucket\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components bucket"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_allocator_bucket_DSO=1
    else
        BUILD_allocator_bucket_DSO=0
    fi
     if test "$BUILD_allocator_bucket_DSO" = "1"; then
  OMPI_BUILD_allocator_bucket_DSO_TRUE=
  OMPI_BUILD_allocator_bucket_DSO_FALSE='#'
else
  OMPI_BUILD_allocator_bucket_DSO_TRUE='#'
  OMPI_BUILD_allocator_bucket_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/allocator/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component allocator:$component (need to configure)"




    project=ompi
    framework=allocator
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_allocator" ; then
            if test "$DIRECT_allocator" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=allocator
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_allocator" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/allocator/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/allocator/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=allocator
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_allocator" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_allocator" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:$component can compile" >&5
$as_echo_n "checking if MCA component allocator:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_allocator" ; then
        if test "$DIRECT_allocator" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_allocator_ALL_COMPONENTS="$all_components"
    MCA_allocator_STATIC_COMPONENTS="$static_components"
    MCA_allocator_DSO_COMPONENTS="$dso_components"
    MCA_allocator_STATIC_LTLIBS="$static_ltlibs"







    MCA_allocator_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_allocator_ALL_SUBDIRS="$MCA_allocator_ALL_SUBDIRS mca/allocator/$item"
    done



    MCA_allocator_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_allocator_STATIC_SUBDIRS="$MCA_allocator_STATIC_SUBDIRS mca/allocator/$item"
    done



    MCA_allocator_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_allocator_DSO_SUBDIRS="$MCA_allocator_DSO_SUBDIRS mca/allocator/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "allocator" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_allocator_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "bml" = "common" ; then
                              MCA_ompi_FRAMEWORKS="bml $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/bml $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_bml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_bml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_bml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS bml"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/bml"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_bml_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_bml_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_bml_STATIC_SUBDIRS)"
                          fi
                          if test "bml" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/bml/libmca_bml.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_bml_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework bml"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "bml" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/bml/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework bml" >&5
$as_echo_n "checking for no configure components in framework bml... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: r2" >&5
$as_echo "r2" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework bml" >&5
$as_echo_n "checking for m4 configure components in framework bml... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component bml:r2 (no configuration)"




    project=ompi
    framework=bml
    component=r2
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_bml" ; then
            if test "$DIRECT_bml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=bml
    component=r2

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_bml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=bml
    component=r2

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_bml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_bml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bml:r2 can compile" >&5
$as_echo_n "checking if MCA component bml:r2 can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_bml" = "r2" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"r2\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_bml" ; then
        if test "$DIRECT_bml" = "r2" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"r2\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components r2"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_bml_r2_DSO=1
    else
        BUILD_bml_r2_DSO=0
    fi
     if test "$BUILD_bml_r2_DSO" = "1"; then
  OMPI_BUILD_bml_r2_DSO_TRUE=
  OMPI_BUILD_bml_r2_DSO_FALSE='#'
else
  OMPI_BUILD_bml_r2_DSO_TRUE='#'
  OMPI_BUILD_bml_r2_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/bml/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component bml:$component (need to configure)"




    project=ompi
    framework=bml
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_bml" ; then
            if test "$DIRECT_bml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=bml
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_bml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/bml/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/bml/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=bml
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_bml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_bml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bml:$component can compile" >&5
$as_echo_n "checking if MCA component bml:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_bml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_bml" ; then
        if test "$DIRECT_bml" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_bml_ALL_COMPONENTS="$all_components"
    MCA_bml_STATIC_COMPONENTS="$static_components"
    MCA_bml_DSO_COMPONENTS="$dso_components"
    MCA_bml_STATIC_LTLIBS="$static_ltlibs"







    MCA_bml_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_bml_ALL_SUBDIRS="$MCA_bml_ALL_SUBDIRS mca/bml/$item"
    done



    MCA_bml_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_bml_STATIC_SUBDIRS="$MCA_bml_STATIC_SUBDIRS mca/bml/$item"
    done



    MCA_bml_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_bml_DSO_SUBDIRS="$MCA_bml_DSO_SUBDIRS mca/bml/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "bml" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_bml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "btl" = "common" ; then
                              MCA_ompi_FRAMEWORKS="btl $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/btl $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_btl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_btl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_btl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS btl"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/btl"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_btl_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_btl_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_btl_STATIC_SUBDIRS)"
                          fi
                          if test "btl" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/btl/libmca_btl.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_btl_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework btl"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "btl" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/btl/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework btl" >&5
$as_echo_n "checking for no configure components in framework btl... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: self" >&5
$as_echo "self" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework btl" >&5
$as_echo_n "checking for m4 configure components in framework btl... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: elan, mx, ofud, openib, portals, sctp, sm, tcp, udapl" >&5
$as_echo "elan, mx, ofud, openib, portals, sctp, sm, tcp, udapl" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component btl:self (no configuration)"




    project=ompi
    framework=btl
    component=self
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=btl
    component=self

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=btl
    component=self

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:self can compile" >&5
$as_echo_n "checking if MCA component btl:self can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "self" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "self" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components self"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_btl_self_DSO=1
    else
        BUILD_btl_self_DSO=0
    fi
     if test "$BUILD_btl_self_DSO" = "1"; then
  OMPI_BUILD_btl_self_DSO_TRUE=
  OMPI_BUILD_btl_self_DSO_FALSE='#'
else
  OMPI_BUILD_btl_self_DSO_TRUE='#'
  OMPI_BUILD_btl_self_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component btl:elan (m4 configuration macro)"




    project=ompi
    framework=btl
    component=elan
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=elan

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-elan was given.
if test "${with_elan+set}" = set; then :
  withval=$with_elan;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-elan value" >&5
$as_echo_n "checking --with-elan value... " >&6; }
    if test "$with_elan" = "yes" -o "$with_elan" = "no" -o "x$with_elan" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_elan"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_elan not found" >&5
$as_echo "$as_me: WARNING: Directory $with_elan not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_elan/include/elan/elan.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_elan/include/elan/elan.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_elan/include/elan/elan.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_elan)" >&5
$as_echo "sanity check ok ($with_elan)" >&6; }

fi


fi


fi


# Check whether --with-elan-libdir was given.
if test "${with_elan_libdir+set}" = set; then :
  withval=$with_elan_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-elan-libdir value" >&5
$as_echo_n "checking --with-elan-libdir value... " >&6; }
    if test "$with_elan_libdir" = "yes" -o "$with_elan_libdir" = "no" -o "x$with_elan_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_elan_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_elan_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_elan_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_elan_libdir/libelan.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_elan_libdir/libelan.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_elan_libdir/libelan.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_elan_libdir)" >&5
$as_echo "sanity check ok ($with_elan_libdir)" >&6; }

fi


fi


fi


    if test "$with_elan" != "no"; then :
  if test ! -z "$with_elan" -a "$with_elan" != "yes"; then :
  ompi_check_elan_dir="$with_elan"
fi
	    if test ! -z "$with_elan_libdir" -a "$with_elan_libdir" != "yes"; then :
  ompi_check_elan_libdir="$with_elan_libdir"
fi


    ompi_check_package_btl_elan_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_elan_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_elan_save_LIBS="$LIBS"

    ompi_check_package_btl_elan_orig_CPPFLAGS="$btl_elan_CPPFLAGS"
    ompi_check_package_btl_elan_orig_LDFLAGS="$btl_elan_LDFLAGS"
    ompi_check_package_btl_elan_orig_LIBS="$btl_elan_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_elan_elan_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_elan_dir" = "/usr" -o "$ompi_check_elan_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "elan/elan.h" "ac_cv_header_elan_elan_h" "$ac_includes_default"
if test "x$ac_cv_header_elan_elan_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_elan_elan_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_elan_dir" != ""; then :
  btl_elan_CPPFLAGS="$btl_elan_CPPFLAGS -I$ompi_check_elan_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_elan_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "elan/elan.h" "ac_cv_header_elan_elan_h" "$ac_includes_default"
if test "x$ac_cv_header_elan_elan_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_elan_elan_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_elan_libdir" != ""; then :
   # libdir was specified - search only there
           btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                  btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                  unset ac_cv_lib_elan_elan_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_elan_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                     btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                     unset ac_cv_lib_elan_elan_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_elan_LIBS="-lelan "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_elan_elan_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_elan_libdir" != ""; then :
   # libdir was specified - search only there
           btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                  btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                  unset ac_cv_lib_elan_elan_init
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_elan_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                     btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                     unset ac_cv_lib_elan_elan_init
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char elan_init ();
int
main ()
{
return elan_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elan_elan_init=yes
else
  ac_cv_lib_elan_elan_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_elan_LIBS="-lelan "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_elan_happy="yes"
else
  btl_elan_CPPFLAGS="$ompi_check_package_btl_elan_orig_CPPFLAGS"
           btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
           btl_elan_LIBS="$ompi_check_package_btl_elan_orig_LIBS"
           ompi_check_elan_happy="no"
fi

    CPPFLAGS="$ompi_check_package_btl_elan_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_elan_save_LIBS"


else
  ompi_check_elan_happy="no"
fi

    if test "$ompi_check_elan_happy" = "yes"; then :
  btl_elan_happy="yes"
else
  if test ! -z "$with_elan" -a "$with_elan" != "no"; then :
  as_fn_error "Elan (QsNet2) support requested but not found.  Aborting" "$LINENO" 5
fi
	    btl_elan_happy="no"
fi


    if test "$btl_elan_happy" = "yes"; then :
  btl_elan_WRAPPER_EXTRA_LDFLAGS="$btl_elan_LDFLAGS"
           btl_elan_WRAPPER_EXTRA_LIBS="$btl_elan_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build elan






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=elan

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:elan can compile" >&5
$as_echo_n "checking if MCA component btl:elan can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "elan" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"elan\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "elan" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"elan\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components elan"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_elan_DSO=1
else
  BUILD_btl_elan_DSO=0
fi
     if test "$BUILD_btl_elan_DSO" = "1"; then
  OMPI_BUILD_btl_elan_DSO_TRUE=
  OMPI_BUILD_btl_elan_DSO_FALSE='#'
else
  OMPI_BUILD_btl_elan_DSO_TRUE='#'
  OMPI_BUILD_btl_elan_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:mx (m4 configuration macro)"




    project=ompi
    framework=btl
    component=mx
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=mx

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-mx was given.
if test "${with_mx+set}" = set; then :
  withval=$with_mx;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mx value" >&5
$as_echo_n "checking --with-mx value... " >&6; }
    if test "$with_mx" = "yes" -o "$with_mx" = "no" -o "x$with_mx" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mx not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mx/include/myriexpress.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mx)" >&5
$as_echo "sanity check ok ($with_mx)" >&6; }

fi


fi


fi


# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then :
  withval=$with_mx_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mx-libdir value" >&5
$as_echo_n "checking --with-mx-libdir value... " >&6; }
    if test "$with_mx_libdir" = "yes" -o "$with_mx_libdir" = "no" -o "x$with_mx_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mx_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mx_libdir/libmyriexpress.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mx_libdir)" >&5
$as_echo "sanity check ok ($with_mx_libdir)" >&6; }

fi


fi


fi


    ompi_check_mx_btl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mx_btl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_mx_btl_mx_save_LIBS="$LIBS"

    if test "$with_mx" != "no"; then :
  if test ! -z "$with_mx" -a "$with_mx" != "yes"; then :
  ompi_check_mx_dir="$with_mx"
fi
           if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then :
  ompi_check_mx_libdir="$with_mx_libdir"
fi


    ompi_check_package_btl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_mx_save_LIBS="$LIBS"

    ompi_check_package_btl_mx_orig_CPPFLAGS="$btl_mx_CPPFLAGS"
    ompi_check_package_btl_mx_orig_LDFLAGS="$btl_mx_LDFLAGS"
    ompi_check_package_btl_mx_orig_LIBS="$btl_mx_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_myriexpress_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
if test "x$ac_cv_header_myriexpress_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_myriexpress_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_mx_dir" != ""; then :
  btl_mx_CPPFLAGS="$btl_mx_CPPFLAGS -I$ompi_check_mx_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
if test "x$ac_cv_header_myriexpress_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then :
   # libdir was specified - search only there
           btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                  btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                     btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_mx_LIBS="-lmyriexpress "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then :
   # libdir was specified - search only there
           btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                  btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                     btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_mx_LIBS="-lmyriexpress "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_mx_happy="yes"
else
  btl_mx_CPPFLAGS="$ompi_check_package_btl_mx_orig_CPPFLAGS"
           btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
           btl_mx_LIBS="$ompi_check_package_btl_mx_orig_LIBS"
           ompi_check_mx_happy="no"
fi

    CPPFLAGS="$ompi_check_package_btl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_mx_save_LIBS"

else
  ompi_check_mx_happy="no"
fi

    CPPFLAGS="$CPPFLAGS $btl_mx_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_mx_LDFLAGS"
    LIBS="$LIBS $btl_mx_LIBS"

    # need at least version 1.0
    if test "ompi_check_mx_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX version 1.0 or later" >&5
$as_echo_n "checking for MX version 1.0 or later... " >&6; }
if test "${ompi_cv_mx_version_ok+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <myriexpress.h>

int
main ()
{

#if MX_API < 0x300
#error "Version less than 0x300"
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ompi_cv_mx_version_ok="yes"
else
  ompi_cv_mx_version_ok="no"
fi
rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_mx_version_ok" >&5
$as_echo "$ompi_cv_mx_version_ok" >&6; }
fi
    if test "$ompi_cv_mx_version_ok" = "no"; then :
  ompi_check_mx_happy="no"
fi

    if test "$ompi_check_mx_happy" = "yes"; then :
  for ac_header in mx_extensions.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mx_extensions.h" "ac_cv_header_mx_extensions_h" "$ac_includes_default"
if test "x$ac_cv_header_mx_extensions_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MX_EXTENSIONS_H 1
_ACEOF
 for ac_func in mx_forget mx_register_unexp_handler
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_open_board" >&5
$as_echo_n "checking for mx_open_board... " >&6; }
if test "${ompi_cv_func_mx_open_board+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__fops.h>

int
main ()
{

mx_open_board(0, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_mx_open_board="yes"
else
  ompi_cv_func_mx_open_board="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_mx_open_board" >&5
$as_echo "$ompi_cv_func_mx_open_board" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx__get_mapper_state" >&5
$as_echo_n "checking for mx__get_mapper_state... " >&6; }
if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__driver_interface.h>

int
main ()
{

mx__get_mapper_state(NULL, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_mx__get_mapper_state="yes"
else
  ompi_cv_func_mx__get_mapper_state="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_mx__get_mapper_state" >&5
$as_echo "$ompi_cv_func_mx__get_mapper_state" >&6; }

    if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then :
  mx_provide_mapper_state=1

else
  mx_provide_mapper_state=0

fi

cat >>confdefs.h <<_ACEOF
#define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state
_ACEOF


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&5
$as_echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&2;}
fi

done

fi

    CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS"
    LIBS="$ompi_check_mx_btl_mx_save_LIBS"

    if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
$as_echo "$as_me: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_mx_happy="no"
fi

    if test "$ompi_check_mx_happy" = "yes"; then :
  btl_mx_happy="yes"
else
  if test ! -z "$with_mx" -a "$with_mx" != "no"; then :
  as_fn_error "MX support requested but not found.  Aborting" "$LINENO" 5
fi
           btl_mx_happy="no"
fi


    if test "$btl_mx_happy" = "yes"; then :
  btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS"
           btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build mx






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=mx

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:mx can compile" >&5
$as_echo_n "checking if MCA component btl:mx can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "mx" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "mx" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mx"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_mx_DSO=1
else
  BUILD_btl_mx_DSO=0
fi
     if test "$BUILD_btl_mx_DSO" = "1"; then
  OMPI_BUILD_btl_mx_DSO_TRUE=
  OMPI_BUILD_btl_mx_DSO_FALSE='#'
else
  OMPI_BUILD_btl_mx_DSO_TRUE='#'
  OMPI_BUILD_btl_mx_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:ofud (m4 configuration macro)"




    project=ompi
    framework=btl
    component=ofud
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=ofud

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in btl_ofud_msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"btl_ofud_msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    #
    # Openfabrics support
    #

# Check whether --with-openib was given.
if test "${with_openib+set}" = set; then :
  withval=$with_openib;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-openib value" >&5
$as_echo_n "checking --with-openib value... " >&6; }
    if test "$with_openib" = "yes" -o "$with_openib" = "no" -o "x$with_openib" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_openib not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_openib/include/infiniband/verbs.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_openib)" >&5
$as_echo "sanity check ok ($with_openib)" >&6; }

fi


fi


fi


# Check whether --with-openib-libdir was given.
if test "${with_openib_libdir+set}" = set; then :
  withval=$with_openib_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-openib-libdir value" >&5
$as_echo_n "checking --with-openib-libdir value... " >&6; }
    if test "$with_openib_libdir" = "yes" -o "$with_openib_libdir" = "no" -o "x$with_openib_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_openib_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_openib_libdir/libibverbs.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_openib_libdir)" >&5
$as_echo "sanity check ok ($with_openib_libdir)" >&6; }

fi


fi


fi


    #
    # Add padding to OpenIB header
    #
    # Check whether --enable-openib-control-hdr-padding was given.
if test "${enable_openib_control_hdr_padding+set}" = set; then :
  enableval=$enable_openib_control_hdr_padding;
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to add padding to the openib control header" >&5
$as_echo_n "checking if want to add padding to the openib control header... " >&6; }
    if test "$enable_openib_control_hdr_padding" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        ompi_openib_pad_hdr=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        ompi_openib_pad_hdr=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_OPENIB_PAD_HDR $ompi_openib_pad_hdr
_ACEOF


    #
    # ConnectX XRC support
    #
    # Check whether --enable-openib-connectx-xrc was given.
if test "${enable_openib_connectx_xrc+set}" = set; then :
  enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval"
else
  enable_connectx_xrc="yes"
fi

    #
    # Openfabrics RDMACM
    #
    # Check whether --enable-openib-rdmacm was given.
if test "${enable_openib_rdmacm+set}" = set; then :
  enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval"
else
  enable_openib_rdmacm="yes"
fi


    if test ! -z "$with_openib" -a "$with_openib" != "yes"; then :
  ompi_check_openib_dir="$with_openib"
fi
    if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then :
  ompi_check_openib_libdir="$with_openib_libdir"
fi
    if test "$with_openib" = "no"; then :
  ompi_check_openib_happy="no"
else
  ompi_check_openib_happy="yes"
fi

    ompi_check_openib_btl_ofud_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_openib_btl_ofud_save_LDFLAGS="$LDFLAGS"
    ompi_check_openib_btl_ofud_save_LIBS="$LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then :
  if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then :
  if test "$enable_ptmalloc2_internal" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX threads are disabled, but" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&5
$as_echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cause memory corruption with OpenFabrics." >&5
$as_echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                         ompi_check_openib_happy="no"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: manager is being built.  Compiling MPI applications with" >&5
$as_echo "$as_me: WARNING: manager is being built.  Compiling MPI applications with" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5
$as_echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI will disable the openib BTL at run-time if such a" >&5
$as_echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: combination is detected." >&5
$as_echo "$as_me: WARNING: combination is detected." >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have been warned." >&5
$as_echo "$as_me: WARNING: You have been warned." >&2;}
fi
fi
fi

    if test "$ompi_check_openib_happy" = "yes"; then :
  for ac_header in fcntl.h sys/poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&5
$as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&2;}
                    ompi_check_openib_happy="no"
fi

done

fi

    if test "$ompi_check_openib_happy" = "yes"; then :

    ompi_check_package_btl_ofud_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_ofud_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_ofud_save_LIBS="$LIBS"

    ompi_check_package_btl_ofud_orig_CPPFLAGS="$btl_ofud_CPPFLAGS"
    ompi_check_package_btl_ofud_orig_LDFLAGS="$btl_ofud_LDFLAGS"
    ompi_check_package_btl_ofud_orig_LIBS="$btl_ofud_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_infiniband_verbs_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
if test "x$ac_cv_header_infiniband_verbs_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_infiniband_verbs_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_openib_dir" != ""; then :
  btl_ofud_CPPFLAGS="$btl_ofud_CPPFLAGS -I$ompi_check_openib_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
if test "x$ac_cv_header_infiniband_verbs_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then :
   # libdir was specified - search only there
           btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                  btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                     btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_ofud_LIBS="-libverbs "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then :
   # libdir was specified - search only there
           btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                  btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                     btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_ofud_LIBS="-libverbs "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_openib_happy="yes"
else
  btl_ofud_CPPFLAGS="$ompi_check_package_btl_ofud_orig_CPPFLAGS"
           btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
           btl_ofud_LIBS="$ompi_check_package_btl_ofud_orig_LIBS"
           ompi_check_openib_happy="no"
fi

    CPPFLAGS="$ompi_check_package_btl_ofud_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_ofud_save_LIBS"

fi

    CPPFLAGS="$CPPFLAGS $btl_ofud_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_ofud_LDFLAGS"
    LIBS="$LIBS $btl_ofud_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ibv_create_cq" >&5
$as_echo_n "checking number of arguments to ibv_create_cq... " >&6; }
if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL, NULL, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_ibv_create_cq_args=5
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_ibv_create_cq_args=3
else
  ompi_cv_func_ibv_create_cq_args="unknown"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_ibv_create_cq_args" >&5
$as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; }
           if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not determine number of args to ibv_create_cq." >&5
$as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                  ompi_check_openib_happy="no"
else

cat >>confdefs.h <<_ACEOF
#define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
_ACEOF

fi
fi

    #
    # OpenIB dynamic SL
    #
    # Check whether --enable-openib-dynamic-sl was given.
if test "${enable_openib_dynamic_sl+set}" = set; then :
  enableval=$enable_openib_dynamic_sl;
fi


    # Set these up so that we can do an AC_DEFINE below
    # (unconditionally)
    btl_ofud_have_xrc=0
    btl_ofud_have_rdmacm=0
    btl_ofud_have_ibcm=0
    btl_ofud_have_opensm_devel=0

    # If we have the openib stuff available, find out what we've got
    if test "$ompi_check_openib_happy" = "yes"; then :
  ac_fn_c_check_decl "$LINENO" "IBV_EVENT_CLIENT_REREGISTER" "ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SO" "ac_cv_have_decl_IBV_ACCESS_SO" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_have_decl_IBV_ACCESS_SO" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IBV_ACCESS_SO $ac_have_decl
_ACEOF

           for ac_func in ibv_get_device_list ibv_resize_cq
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


           # struct ibv_device.transport_type was added in OFED v1.2
           ac_fn_c_check_member "$LINENO" "struct ibv_device" "transport_type" "ac_cv_member_struct_ibv_device_transport_type" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_member_struct_ibv_device_transport_type" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1
_ACEOF


fi


           # ibv_create_xrc_rcv_qp was added in OFED 1.3
           if test "$enable_connectx_xrc" = "yes"; then
               for ac_func in ibv_create_xrc_rcv_qp
do :
  ac_fn_c_check_func "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_func_ibv_create_xrc_rcv_qp"
if test "x$ac_cv_func_ibv_create_xrc_rcv_qp" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IBV_CREATE_XRC_RCV_QP 1
_ACEOF
 btl_ofud_have_xrc=1
fi
done

           fi

           if test "no" != "$enable_openib_dynamic_sl"; then
               # We need ib_types.h file, which is installed with opensm-devel
               # package. However, ib_types.h has a bad include directive,
               # which will cause AC_CHECK_HEADER to fail.
               # So instead, we will look for another file that is also
               # installed as part of opensm-devel package and included in
               # ib_types.h, but it doesn't include any other IB-related files.
               ac_fn_c_check_header_mongrel "$LINENO" "infiniband/complib/cl_types_osd.h" "ac_cv_header_infiniband_complib_cl_types_osd_h" "$ac_includes_default"
if test "x$ac_cv_header_infiniband_complib_cl_types_osd_h" = x""yes; then :
  btl_ofud_have_opensm_devel=1
fi



               # Abort if dynamic SL support was explicitly requested but opensm-devel
               # package wasn't found. Otherwise, OMPI will be built w/o dynamic SL.
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can use dynamic SL support" >&5
$as_echo_n "checking if can use dynamic SL support... " >&6; }
               if test "$btl_ofud_have_opensm_devel" = "1"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                      if test "$enable_openib_dynamic_sl" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-dynamic-sl was specified but the" >&5
$as_echo "$as_me: WARNING: --enable-openib-dynamic-sl was specified but the" >&2;}
                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate header files could not be found" >&5
$as_echo "$as_me: WARNING: appropriate header files could not be found" >&2;}
                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install opensm-devel if you need dynamic SL support" >&5
$as_echo "$as_me: WARNING: Please install opensm-devel if you need dynamic SL support" >&2;}
                             as_fn_error "Cannot continue" "$LINENO" 5
fi
fi
           fi

           # Do we have a recent enough RDMA CM?  Need to have the
           # rdma_get_peer_addr (inline) function (originally appeared
           # in OFED v1.3).
           if test "$enable_openib_rdmacm" = "yes"; then
                 for ac_header in rdma/rdma_cma.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default"
if test "x$ac_cv_header_rdma_rdma_cma_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RDMA_RDMA_CMA_H 1
_ACEOF
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_id in -lrdmacm" >&5
$as_echo_n "checking for rdma_create_id in -lrdmacm... " >&6; }
if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrdmacm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char rdma_create_id ();
int
main ()
{
return rdma_create_id ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rdmacm_rdma_create_id=yes
else
  ac_cv_lib_rdmacm_rdma_create_id=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5
$as_echo "$ac_cv_lib_rdmacm_rdma_create_id" >&6; }
if test "x$ac_cv_lib_rdmacm_rdma_create_id" = x""yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_get_peer_addr" >&5
$as_echo_n "checking for rdma_get_peer_addr... " >&6; }
                         btl_ofud_msg=no
                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "rdma/rdma_cma.h"

int
main ()
{
void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  btl_ofud_have_rdmacm=1
                             btl_ofud_msg=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $btl_ofud_msg" >&5
$as_echo "$btl_ofud_msg" >&6; }
fi

fi

done


                 if test "1" = "$btl_ofud_have_rdmacm"; then
                 btl_ofud_LIBS="-lrdmacm $btl_ofud_LIBS"
                 fi
           fi


           # Check support for RDMAoE devices
           btl_ofud_have_rdmaoe=0
           ac_fn_c_check_decl "$LINENO" "IBV_LINK_LAYER_ETHERNET" "ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IBV_LINK_LAYER_ETHERNET $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :
  btl_ofud_have_rdmaoe=1
fi


           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RDMAoE support is enabled" >&5
$as_echo_n "checking if RDMAoE support is enabled... " >&6; }
           if test "1" = "$btl_ofud_have_rdmaoe"; then

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_RDMAOE $btl_ofud_have_rdmaoe
_ACEOF

                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
           else
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
           fi


fi

    # Check to see if <infiniband/driver.h> works.  It is known to
    # create problems on some platforms with some compilers (e.g.,
    # RHEL4U3 with the PGI 32 bit compiler).  Use undocumented (in AC
    # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in
    # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test
    # will fail if the header is present but not compilable, *but it
    # will not print the big scary warning*.  See
    # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html.
    if test "$ompi_check_openib_happy" = "yes"; then :
  for ac_header in infiniband/driver.h
do :
  ac_fn_c_check_header_compile "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default
"
if test "x$ac_cv_header_infiniband_driver_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_INFINIBAND_DRIVER_H 1
_ACEOF

fi

done

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectX XRC support is enabled" >&5
$as_echo_n "checking if ConnectX XRC support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CONNECTX_XRC $btl_ofud_have_xrc
_ACEOF

    if test "1" = "$btl_ofud_have_xrc"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic SL is enabled" >&5
$as_echo_n "checking if dynamic SL is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_DYNAMIC_SL $btl_ofud_have_opensm_devel
_ACEOF

    if test "1" = "$btl_ofud_have_opensm_devel"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenFabrics RDMACM support is enabled" >&5
$as_echo_n "checking if OpenFabrics RDMACM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_RDMACM $btl_ofud_have_rdmacm
_ACEOF

    if test "1" = "$btl_ofud_have_rdmacm"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    # Note that IBCM support is hard-coded disabled (see above).  The
    # CPC is currently broken, so there's no point in even offering
    # the opprotunity to enable it (i.e., don't even offer an --enable
    # switch; it'll just confuse users).
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenFabrics IBCM support is enabled" >&5
$as_echo_n "checking if OpenFabrics IBCM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_IBCM $btl_ofud_have_ibcm
_ACEOF

    if test "1" = "$btl_ofud_have_ibcm"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    if test -z "$ompi_check_openib_dir"; then :
  openib_include_dir="/usr/include"
else
  openib_include_dir="$ompi_check_openib_dir/include"
fi

    CPPFLAGS="$ompi_check_openib_btl_ofud_save_CPPFLAGS -I$openib_include_dir/infiniband"
    LDFLAGS="$ompi_check_openib_btl_ofud_save_LDFLAGS"
    LIBS="$ompi_check_openib_btl_ofud_save_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then :
  btl_ofud_happy="yes"
else
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5
$as_echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed.  Later versions of libibverbs do not require libsysfs." >&5
$as_echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed.  Later versions of libibverbs do not require libsysfs." >&2;}
                  as_fn_error "Aborting." "$LINENO" 5
fi
           btl_ofud_happy="no"
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    if test "$btl_ofud_happy" = "yes"; then :
  btl_ofud_WRAPPER_EXTRA_LDFLAGS="$btl_ofud_LDFLAGS"
           btl_ofud_WRAPPER_EXTRA_LIBS="$btl_ofud_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build OFUD






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=ofud

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:ofud can compile" >&5
$as_echo_n "checking if MCA component btl:ofud can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "ofud" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofud\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "ofud" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofud\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components ofud"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_ofud_DSO=1
else
  BUILD_btl_ofud_DSO=0
fi
     if test "$BUILD_btl_ofud_DSO" = "1"; then
  OMPI_BUILD_btl_ofud_DSO_TRUE=
  OMPI_BUILD_btl_ofud_DSO_FALSE='#'
else
  OMPI_BUILD_btl_ofud_DSO_TRUE='#'
  OMPI_BUILD_btl_ofud_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:openib (m4 configuration macro)"




    project=ompi
    framework=btl
    component=openib
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=openib

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in cpcs have_threads; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"cpcs have_threads\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    cpcs="oob"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in btl_openib_msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"btl_openib_msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    #
    # Openfabrics support
    #

# Check whether --with-openib was given.
if test "${with_openib+set}" = set; then :
  withval=$with_openib;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-openib value" >&5
$as_echo_n "checking --with-openib value... " >&6; }
    if test "$with_openib" = "yes" -o "$with_openib" = "no" -o "x$with_openib" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_openib not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_openib/include/infiniband/verbs.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_openib)" >&5
$as_echo "sanity check ok ($with_openib)" >&6; }

fi


fi


fi


# Check whether --with-openib-libdir was given.
if test "${with_openib_libdir+set}" = set; then :
  withval=$with_openib_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-openib-libdir value" >&5
$as_echo_n "checking --with-openib-libdir value... " >&6; }
    if test "$with_openib_libdir" = "yes" -o "$with_openib_libdir" = "no" -o "x$with_openib_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_openib_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_openib_libdir/libibverbs.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_openib_libdir)" >&5
$as_echo "sanity check ok ($with_openib_libdir)" >&6; }

fi


fi


fi


    #
    # Add padding to OpenIB header
    #
    # Check whether --enable-openib-control-hdr-padding was given.
if test "${enable_openib_control_hdr_padding+set}" = set; then :
  enableval=$enable_openib_control_hdr_padding;
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to add padding to the openib control header" >&5
$as_echo_n "checking if want to add padding to the openib control header... " >&6; }
    if test "$enable_openib_control_hdr_padding" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        ompi_openib_pad_hdr=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        ompi_openib_pad_hdr=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_OPENIB_PAD_HDR $ompi_openib_pad_hdr
_ACEOF


    #
    # ConnectX XRC support
    #
    # Check whether --enable-openib-connectx-xrc was given.
if test "${enable_openib_connectx_xrc+set}" = set; then :
  enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval"
else
  enable_connectx_xrc="yes"
fi

    #
    # Openfabrics RDMACM
    #
    # Check whether --enable-openib-rdmacm was given.
if test "${enable_openib_rdmacm+set}" = set; then :
  enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval"
else
  enable_openib_rdmacm="yes"
fi


    if test ! -z "$with_openib" -a "$with_openib" != "yes"; then :
  ompi_check_openib_dir="$with_openib"
fi
    if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then :
  ompi_check_openib_libdir="$with_openib_libdir"
fi
    if test "$with_openib" = "no"; then :
  ompi_check_openib_happy="no"
else
  ompi_check_openib_happy="yes"
fi

    ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS"
    ompi_check_openib_btl_openib_save_LIBS="$LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then :
  if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then :
  if test "$enable_ptmalloc2_internal" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX threads are disabled, but" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&5
$as_echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cause memory corruption with OpenFabrics." >&5
$as_echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                         ompi_check_openib_happy="no"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: manager is being built.  Compiling MPI applications with" >&5
$as_echo "$as_me: WARNING: manager is being built.  Compiling MPI applications with" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5
$as_echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI will disable the openib BTL at run-time if such a" >&5
$as_echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: combination is detected." >&5
$as_echo "$as_me: WARNING: combination is detected." >&2;}
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have been warned." >&5
$as_echo "$as_me: WARNING: You have been warned." >&2;}
fi
fi
fi

    if test "$ompi_check_openib_happy" = "yes"; then :
  for ac_header in fcntl.h sys/poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&5
$as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&2;}
                    ompi_check_openib_happy="no"
fi

done

fi

    if test "$ompi_check_openib_happy" = "yes"; then :

    ompi_check_package_btl_openib_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_openib_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_openib_save_LIBS="$LIBS"

    ompi_check_package_btl_openib_orig_CPPFLAGS="$btl_openib_CPPFLAGS"
    ompi_check_package_btl_openib_orig_LDFLAGS="$btl_openib_LDFLAGS"
    ompi_check_package_btl_openib_orig_LIBS="$btl_openib_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_infiniband_verbs_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
if test "x$ac_cv_header_infiniband_verbs_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_infiniband_verbs_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_openib_dir" != ""; then :
  btl_openib_CPPFLAGS="$btl_openib_CPPFLAGS -I$ompi_check_openib_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
if test "x$ac_cv_header_infiniband_verbs_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then :
   # libdir was specified - search only there
           btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                  btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                     btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_openib_LIBS="-libverbs "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then :
   # libdir was specified - search only there
           btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                  btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                     btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_openib_LIBS="-libverbs "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_openib_happy="yes"
else
  btl_openib_CPPFLAGS="$ompi_check_package_btl_openib_orig_CPPFLAGS"
           btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
           btl_openib_LIBS="$ompi_check_package_btl_openib_orig_LIBS"
           ompi_check_openib_happy="no"
fi

    CPPFLAGS="$ompi_check_package_btl_openib_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_openib_save_LIBS"

fi

    CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS"
    LIBS="$LIBS $btl_openib_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ibv_create_cq" >&5
$as_echo_n "checking number of arguments to ibv_create_cq... " >&6; }
if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL, NULL, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_ibv_create_cq_args=5
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_ibv_create_cq_args=3
else
  ompi_cv_func_ibv_create_cq_args="unknown"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_ibv_create_cq_args" >&5
$as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; }
           if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not determine number of args to ibv_create_cq." >&5
$as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                  ompi_check_openib_happy="no"
else

cat >>confdefs.h <<_ACEOF
#define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
_ACEOF

fi
fi

    #
    # OpenIB dynamic SL
    #
    # Check whether --enable-openib-dynamic-sl was given.
if test "${enable_openib_dynamic_sl+set}" = set; then :
  enableval=$enable_openib_dynamic_sl;
fi


    # Set these up so that we can do an AC_DEFINE below
    # (unconditionally)
    btl_openib_have_xrc=0
    btl_openib_have_rdmacm=0
    btl_openib_have_ibcm=0
    btl_openib_have_opensm_devel=0

    # If we have the openib stuff available, find out what we've got
    if test "$ompi_check_openib_happy" = "yes"; then :
  ac_fn_c_check_decl "$LINENO" "IBV_EVENT_CLIENT_REREGISTER" "ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SO" "ac_cv_have_decl_IBV_ACCESS_SO" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_have_decl_IBV_ACCESS_SO" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IBV_ACCESS_SO $ac_have_decl
_ACEOF

           for ac_func in ibv_get_device_list ibv_resize_cq
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


           # struct ibv_device.transport_type was added in OFED v1.2
           ac_fn_c_check_member "$LINENO" "struct ibv_device" "transport_type" "ac_cv_member_struct_ibv_device_transport_type" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_member_struct_ibv_device_transport_type" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1
_ACEOF


fi


           # ibv_create_xrc_rcv_qp was added in OFED 1.3
           if test "$enable_connectx_xrc" = "yes"; then
               for ac_func in ibv_create_xrc_rcv_qp
do :
  ac_fn_c_check_func "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_func_ibv_create_xrc_rcv_qp"
if test "x$ac_cv_func_ibv_create_xrc_rcv_qp" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IBV_CREATE_XRC_RCV_QP 1
_ACEOF
 btl_openib_have_xrc=1
fi
done

           fi

           if test "no" != "$enable_openib_dynamic_sl"; then
               # We need ib_types.h file, which is installed with opensm-devel
               # package. However, ib_types.h has a bad include directive,
               # which will cause AC_CHECK_HEADER to fail.
               # So instead, we will look for another file that is also
               # installed as part of opensm-devel package and included in
               # ib_types.h, but it doesn't include any other IB-related files.
               ac_fn_c_check_header_mongrel "$LINENO" "infiniband/complib/cl_types_osd.h" "ac_cv_header_infiniband_complib_cl_types_osd_h" "$ac_includes_default"
if test "x$ac_cv_header_infiniband_complib_cl_types_osd_h" = x""yes; then :
  btl_openib_have_opensm_devel=1
fi



               # Abort if dynamic SL support was explicitly requested but opensm-devel
               # package wasn't found. Otherwise, OMPI will be built w/o dynamic SL.
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can use dynamic SL support" >&5
$as_echo_n "checking if can use dynamic SL support... " >&6; }
               if test "$btl_openib_have_opensm_devel" = "1"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                      if test "$enable_openib_dynamic_sl" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-dynamic-sl was specified but the" >&5
$as_echo "$as_me: WARNING: --enable-openib-dynamic-sl was specified but the" >&2;}
                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate header files could not be found" >&5
$as_echo "$as_me: WARNING: appropriate header files could not be found" >&2;}
                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install opensm-devel if you need dynamic SL support" >&5
$as_echo "$as_me: WARNING: Please install opensm-devel if you need dynamic SL support" >&2;}
                             as_fn_error "Cannot continue" "$LINENO" 5
fi
fi
           fi

           # Do we have a recent enough RDMA CM?  Need to have the
           # rdma_get_peer_addr (inline) function (originally appeared
           # in OFED v1.3).
           if test "$enable_openib_rdmacm" = "yes"; then
                 for ac_header in rdma/rdma_cma.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default"
if test "x$ac_cv_header_rdma_rdma_cma_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RDMA_RDMA_CMA_H 1
_ACEOF
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_id in -lrdmacm" >&5
$as_echo_n "checking for rdma_create_id in -lrdmacm... " >&6; }
if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrdmacm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char rdma_create_id ();
int
main ()
{
return rdma_create_id ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rdmacm_rdma_create_id=yes
else
  ac_cv_lib_rdmacm_rdma_create_id=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5
$as_echo "$ac_cv_lib_rdmacm_rdma_create_id" >&6; }
if test "x$ac_cv_lib_rdmacm_rdma_create_id" = x""yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_get_peer_addr" >&5
$as_echo_n "checking for rdma_get_peer_addr... " >&6; }
                         btl_openib_msg=no
                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "rdma/rdma_cma.h"

int
main ()
{
void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  btl_openib_have_rdmacm=1
                             btl_openib_msg=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $btl_openib_msg" >&5
$as_echo "$btl_openib_msg" >&6; }
fi

fi

done


                 if test "1" = "$btl_openib_have_rdmacm"; then
                 btl_openib_LIBS="-lrdmacm $btl_openib_LIBS"
                 fi
           fi


           # Check support for RDMAoE devices
           btl_openib_have_rdmaoe=0
           ac_fn_c_check_decl "$LINENO" "IBV_LINK_LAYER_ETHERNET" "ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" "#include <infiniband/verbs.h>
"
if test "x$ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_IBV_LINK_LAYER_ETHERNET $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :
  btl_openib_have_rdmaoe=1
fi


           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RDMAoE support is enabled" >&5
$as_echo_n "checking if RDMAoE support is enabled... " >&6; }
           if test "1" = "$btl_openib_have_rdmaoe"; then

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_RDMAOE $btl_openib_have_rdmaoe
_ACEOF

                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
           else
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
           fi


fi

    # Check to see if <infiniband/driver.h> works.  It is known to
    # create problems on some platforms with some compilers (e.g.,
    # RHEL4U3 with the PGI 32 bit compiler).  Use undocumented (in AC
    # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in
    # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test
    # will fail if the header is present but not compilable, *but it
    # will not print the big scary warning*.  See
    # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html.
    if test "$ompi_check_openib_happy" = "yes"; then :
  for ac_header in infiniband/driver.h
do :
  ac_fn_c_check_header_compile "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default
"
if test "x$ac_cv_header_infiniband_driver_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_INFINIBAND_DRIVER_H 1
_ACEOF

fi

done

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectX XRC support is enabled" >&5
$as_echo_n "checking if ConnectX XRC support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CONNECTX_XRC $btl_openib_have_xrc
_ACEOF

    if test "1" = "$btl_openib_have_xrc"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic SL is enabled" >&5
$as_echo_n "checking if dynamic SL is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_DYNAMIC_SL $btl_openib_have_opensm_devel
_ACEOF

    if test "1" = "$btl_openib_have_opensm_devel"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenFabrics RDMACM support is enabled" >&5
$as_echo_n "checking if OpenFabrics RDMACM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_RDMACM $btl_openib_have_rdmacm
_ACEOF

    if test "1" = "$btl_openib_have_rdmacm"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    # Note that IBCM support is hard-coded disabled (see above).  The
    # CPC is currently broken, so there's no point in even offering
    # the opprotunity to enable it (i.e., don't even offer an --enable
    # switch; it'll just confuse users).
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenFabrics IBCM support is enabled" >&5
$as_echo_n "checking if OpenFabrics IBCM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_IBCM $btl_openib_have_ibcm
_ACEOF

    if test "1" = "$btl_openib_have_ibcm"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    if test -z "$ompi_check_openib_dir"; then :
  openib_include_dir="/usr/include"
else
  openib_include_dir="$ompi_check_openib_dir/include"
fi

    CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS -I$openib_include_dir/infiniband"
    LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS"
    LIBS="$ompi_check_openib_btl_openib_save_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then :
  btl_openib_happy="yes"
else
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5
$as_echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed.  Later versions of libibverbs do not require libsysfs." >&5
$as_echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed.  Later versions of libibverbs do not require libsysfs." >&2;}
                  as_fn_error "Aborting." "$LINENO" 5
fi
           btl_openib_happy="no"
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    if test "$btl_openib_happy" = "yes"; then :
  btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS"
           btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS"

           # With the new openib flags, look for ibv_fork_init
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"
           LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS"
           LIBS="$LIBS $btl_openib_LIBS"
           for ac_func in ibv_fork_init
do :
  ac_fn_c_check_func "$LINENO" "ibv_fork_init" "ac_cv_func_ibv_fork_init"
if test "x$ac_cv_func_ibv_fork_init" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IBV_FORK_INIT 1
_ACEOF

fi
done

           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
           should_build=1
else
  should_build=0
fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support (needed for ibcm/rdmacm)" >&5
$as_echo_n "checking for thread support (needed for ibcm/rdmacm)... " >&6; }
    have_threads=`echo $THREAD_TYPE | awk '{ print $1 }'`
    if test "x$have_threads" = "x"; then
        have_threads=none
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
$as_echo "$have_threads" >&6; }

    if test "$btl_openib_happy" = "yes"; then :
  if test "x$btl_openib_have_xrc" = "x1"; then
              cpcs="$cpcs xoob"
          fi
          if test "x$btl_openib_have_rdmacm" = "x1" -a \
                  "$have_threads" != "none"; then
              cpcs="$cpcs rdmacm"
          fi
          if test "x$btl_openib_have_ibcm" = "x1" -a \
                  "$have_threads" != "none"; then
              cpcs="$cpcs ibcm"
          fi
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking which openib btl cpcs will be built" >&5
$as_echo_n "checking which openib btl cpcs will be built... " >&6; }
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpcs" >&5
$as_echo "$cpcs" >&6; }
fi

    # Enable openib device failover.  It is disabled by default.
    # Check whether --enable-btl-openib-failover was given.
if test "${enable_btl_openib_failover+set}" = set; then :
  enableval=$enable_btl_openib_failover;
fi

    if test "$enable_btl_openib_failover" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        btl_openib_failover_enabled=1
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        btl_openib_failover_enabled=0
    fi

cat >>confdefs.h <<_ACEOF
#define BTL_OPENIB_FAILOVER_ENABLED $btl_openib_failover_enabled
_ACEOF

     if test "x$btl_openib_failover_enabled" = "x1"; then
  MCA_btl_openib_enable_failover_TRUE=
  MCA_btl_openib_enable_failover_FALSE='#'
else
  MCA_btl_openib_enable_failover_TRUE='#'
  MCA_btl_openib_enable_failover_FALSE=
fi


    # substitute in the things needed to build openib






    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=openib

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:openib can compile" >&5
$as_echo_n "checking if MCA component btl:openib can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "openib" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"openib\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "openib" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"openib\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components openib"
fi


     if test $should_build -eq 1 -a "x$btl_openib_have_xrc" = "x1"; then
  MCA_btl_openib_have_xrc_TRUE=
  MCA_btl_openib_have_xrc_FALSE='#'
else
  MCA_btl_openib_have_xrc_TRUE='#'
  MCA_btl_openib_have_xrc_FALSE=
fi

     if test $should_build -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"; then
  MCA_btl_openib_have_rdmacm_TRUE=
  MCA_btl_openib_have_rdmacm_FALSE='#'
else
  MCA_btl_openib_have_rdmacm_TRUE='#'
  MCA_btl_openib_have_rdmacm_FALSE=
fi

     if test $should_build -eq 1 -a "x$btl_openib_have_ibcm" = "x1"; then
  MCA_btl_openib_have_ibcm_TRUE=
  MCA_btl_openib_have_ibcm_FALSE='#'
else
  MCA_btl_openib_have_ibcm_TRUE='#'
  MCA_btl_openib_have_ibcm_FALSE=
fi

     if test $should_build -eq 1 -a "x$btl_openib_have_opensm_devel" = "x1"; then
  MCA_btl_openib_have_dynamic_sl_TRUE=
  MCA_btl_openib_have_dynamic_sl_FALSE='#'
else
  MCA_btl_openib_have_dynamic_sl_TRUE='#'
  MCA_btl_openib_have_dynamic_sl_FALSE=
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_openib_DSO=1
else
  BUILD_btl_openib_DSO=0
fi
     if test "$BUILD_btl_openib_DSO" = "1"; then
  OMPI_BUILD_btl_openib_DSO_TRUE=
  OMPI_BUILD_btl_openib_DSO_FALSE='#'
else
  OMPI_BUILD_btl_openib_DSO_TRUE='#'
  OMPI_BUILD_btl_openib_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:portals (m4 configuration macro)"




    project=ompi
    framework=btl
    component=portals
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=portals

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


    # save compiler flags so that we don't alter them for later
    # components.
    check_portals_save_CPPFLAGS="$CPPFLAGS"
    check_portals_save_LDFLAGS="$LDFLAGS"
    check_portals_save_LIBS="$LIBS"

    check_portals_CPPFLAGS=
    check_portals_LDFLAGS=
    check_portals_LIBS=

    check_portals_configuration="none"
    ompi_check_portals_happy="yes"

    # Get some configuration information

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then :
  withval=$with_portals;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi


fi


fi


# Check whether --with-portals-config was given.
if test "${with_portals_config+set}" = set; then :
  withval=$with_portals_config;
fi


# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then :
  withval=$with_portals_libs;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Portals configuration" >&5
$as_echo_n "checking for Portals configuration... " >&6; }
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    elif test "$with_portals_config" = "cnl_modex" ; then
	with_portals_config="xt3-modex"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    OMPI_PORTALS_CRAYXT3_MODEX=0
    case "$with_portals_config" in
        "utcp")
            OMPI_PORTALS_UTCP=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=1
            check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            check_portals_header_prefix=
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: utcp" >&5
$as_echo "utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cray XT3" >&5
$as_echo "Cray XT3" >&6; }
            ;;
        "xt3-modex")
            OMPI_PORTALS_CRAYXT3_MODEX=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cray XT3 - Modex" >&5
$as_echo "Cray XT3 - Modex" >&6; }
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            as_fn_error "unknown Portals configuration.  Can not continue" "$LINENO" 5
            ;;
    esac


cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX
_ACEOF


    # Add correct -I and -L flags
    if test -n "$with_portals"; then :
  if test -d "$with_portals/include"; then :
  check_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"
fi
           if test -d "$with_portals/lib"; then :
  check_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"
fi
fi

    # Try to find all the portals libraries (this is not fun!)
    if test -n "$with_portals_libs" ; then
        check_portals_LIBS=""
        for lib in $with_portals_libs ; do
            check_portals_LIBS="$check_portals_LIBS -l$lib"
        done
    fi

    # check for portals
    LIBS="$LIBS $check_portals_LIBS"
    for ac_header in ${check_portals_header_prefix}portals3.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if possible to link Portals application" >&5
$as_echo_n "checking if possible to link Portals application... " >&6; }
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <${check_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
               ompi_check_portals_happy="yes"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
               ompi_check_portals_happy="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  ompi_check_portals_happy="no"
fi

done


    # Deal with static-only Portals UTCP libs.  See note in
    # ompi/mca/common/portals/configure.m4.  Then possibly cry.
    if test "$with_portals_config" = "utcp" ; then
        if test "btl_portals" != "common_portals" ; then
            check_portals_LIBS=
        fi
    fi

    # reset the flags for the next test
    CPPFLAGS="$check_portals_save_CPPFLAGS"
    LDFLAGS="$check_portals_save_LDFLAGS"
    LIBS="$check_portals_save_LIBS"

    btl_portals_CPPFLAGS="$check_portals_CPPFLAGS"
    btl_portals_LDFLAGS="$check_portals_LDFLAGS"
    btl_portals_LIBS="$check_portals_LIBS"

    if test "$ompi_check_portals_happy" = "yes"; then :
  btl_portals_happy="yes"
else
  if test ! -z "$with_portals" -a "$with_portals" != "no"; then :
  as_fn_error "Portals support requested but not found.  Aborting" "$LINENO" 5
fi
           btl_portals_happy="no"
fi


    if test "$btl_portals_happy" = "yes"; then :
  btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS"
           btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS"
           should_build=1
else
  should_build=0
fi

    for ac_header in catamount/cnos_mpi_os.h
do :
  ac_fn_c_check_header_compile "$LINENO" "catamount/cnos_mpi_os.h" "ac_cv_header_catamount_cnos_mpi_os_h" "$ac_includes_default
"
if test "x$ac_cv_header_catamount_cnos_mpi_os_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CATAMOUNT_CNOS_MPI_OS_H 1
_ACEOF

else
  for ac_header in cnos_mpi_os.h
do :
  ac_fn_c_check_header_compile "$LINENO" "cnos_mpi_os.h" "ac_cv_header_cnos_mpi_os_h" "$ac_includes_default
"
if test "x$ac_cv_header_cnos_mpi_os_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CNOS_MPI_OS_H 1
_ACEOF

else
  should_build=0
fi

done

fi

done



    # substitute in the things needed to build portals





fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=portals

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:portals can compile" >&5
$as_echo_n "checking if MCA component btl:portals can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "portals" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "portals" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components portals"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_portals_DSO=1
else
  BUILD_btl_portals_DSO=0
fi
     if test "$BUILD_btl_portals_DSO" = "1"; then
  OMPI_BUILD_btl_portals_DSO_TRUE=
  OMPI_BUILD_btl_portals_DSO_FALSE='#'
else
  OMPI_BUILD_btl_portals_DSO_TRUE='#'
  OMPI_BUILD_btl_portals_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:sctp (m4 configuration macro)"




    project=ompi
    framework=btl
    component=sctp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=sctp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-sctp was given.
if test "${with_sctp+set}" = set; then :
  withval=$with_sctp;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-sctp value" >&5
$as_echo_n "checking --with-sctp value... " >&6; }
    if test "$with_sctp" = "yes" -o "$with_sctp" = "no" -o "x$with_sctp" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_sctp"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_sctp not found" >&5
$as_echo "$as_me: WARNING: Directory $with_sctp not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_sctp/include/netinet/sctp.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_sctp/include/netinet/sctp.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_sctp/include/netinet/sctp.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_sctp)" >&5
$as_echo "sanity check ok ($with_sctp)" >&6; }

fi


fi


fi


# Check whether --with-sctp-libdir was given.
if test "${with_sctp_libdir+set}" = set; then :
  withval=$with_sctp_libdir;
fi


    btl_sctp_CFLAGS="`echo $CFLAGS`"
#only try to build this on Solaris, Linux, Mac OS X, or some BSD variant
    ompi_sctp_try_to_build="no"
    ompi_sctp_api_libname="sctp"
    case "$host" in
    *linux*)
	ompi_sctp_try_to_build="yes"

$as_echo "#define OMPI_MCA_BTL_SCTP_USE_ONE_TO_ONE_SOCKET 0" >>confdefs.h


$as_echo "#define OMPI_MCA_BTL_SCTP_CONCATENATES_IOVS 0" >>confdefs.h

	;;
    *bsd*)
	case "$host" in
	*freebsd7*)
	    # FreeBSD 7 has SCTP in an unpatched default kernel with
	    #  the SCTP API contained within libc.
	    ompi_sctp_api_libname="c"
	    ;;
	*)
	    # keep the default lib (sctp not c)
	    ;;
	esac

        # only add -DFREEBSD once to get extra sin_len field
        btl_sctp_CFLAGS="`echo $btl_sctp_CFLAGS | sed 's/-DFREEBSD//g'`"
        btl_sctp_CFLAGS="$btl_sctp_CFLAGS -DFREEBSD"
	ompi_sctp_try_to_build="yes"

$as_echo "#define OMPI_MCA_BTL_SCTP_USE_ONE_TO_ONE_SOCKET 0" >>confdefs.h


$as_echo "#define OMPI_MCA_BTL_SCTP_CONCATENATES_IOVS 0" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adding -DFREEBSD to set extra sin_len field in sockaddr." >&5
$as_echo "$as_me: WARNING: Adding -DFREEBSD to set extra sin_len field in sockaddr." >&2;}
	;;
# Mac OS X support for SCTP NKE. Adjustments should look like *bsd*...
    *darwin*)
        # only add -DFREEBSD once to get extra sin_len field
        btl_sctp_CFLAGS="`echo $btl_sctp_CFLAGS | sed 's/-DFREEBSD//g'`"
        btl_sctp_CFLAGS="$btl_sctp_CFLAGS -DFREEBSD"
	ompi_sctp_try_to_build="yes"

$as_echo "#define OMPI_MCA_BTL_SCTP_USE_ONE_TO_ONE_SOCKET 0" >>confdefs.h


$as_echo "#define OMPI_MCA_BTL_SCTP_CONCATENATES_IOVS 0" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adding -DFREEBSD to set extra sin_len field in sockaddr." >&5
$as_echo "$as_me: WARNING: Adding -DFREEBSD to set extra sin_len field in sockaddr." >&2;}
	;;
    *solaris*)
        # Solaris SCTP stack makes different assumptions about one-to-many
        #   sockets so change the default to use one-to-one sockets
	ompi_sctp_try_to_build="yes"

$as_echo "#define OMPI_MCA_BTL_SCTP_USE_ONE_TO_ONE_SOCKET 1" >>confdefs.h


$as_echo "#define OMPI_MCA_BTL_SCTP_CONCATENATES_IOVS 1" >>confdefs.h

	;;
    *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only build sctp BTL on Solaris, Linux, Mac OS X, and BSD variants" >&5
$as_echo "$as_me: WARNING: Only build sctp BTL on Solaris, Linux, Mac OS X, and BSD variants" >&2;}
	;;
    esac


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-sctp-libdir value" >&5
$as_echo_n "checking --with-sctp-libdir value... " >&6; }
    if test "$with_sctp_libdir" = "yes" -o "$with_sctp_libdir" = "no" -o "x$with_sctp_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_sctp_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_sctp_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_sctp_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_sctp_libdir/lib${ompi_sctp_api_libname}.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_sctp_libdir/lib${ompi_sctp_api_libname}.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_sctp_libdir/lib${ompi_sctp_api_libname}.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_sctp_libdir)" >&5
$as_echo "sanity check ok ($with_sctp_libdir)" >&6; }

fi


fi


fi


    if test "$with_sctp" != "no" -a "$ompi_sctp_try_to_build" = "yes"; then :
  if test ! -z "$with_sctp" -a "$with_sctp" != "yes"; then :
  ompi_check_sctp_dir="$with_sctp"
fi
	    if test ! -z "$with_sctp_libdir" -a "$with_sctp_libdir" != "yes"; then :
  ompi_check_sctp_libdir="$with_sctp_libdir"
fi


    ompi_check_package_btl_sctp_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_sctp_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_sctp_save_LIBS="$LIBS"

    ompi_check_package_btl_sctp_orig_CPPFLAGS="$btl_sctp_CPPFLAGS"
    ompi_check_package_btl_sctp_orig_LDFLAGS="$btl_sctp_LDFLAGS"
    ompi_check_package_btl_sctp_orig_LIBS="$btl_sctp_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_netinet_sctp_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_sctp_dir" = "/usr" -o "$ompi_check_sctp_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_sctp_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_netinet_sctp_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_sctp_dir" != ""; then :
  btl_sctp_CPPFLAGS="$btl_sctp_CPPFLAGS -I$ompi_check_sctp_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_sctp_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_sctp_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering
    as_ompi_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`

    # see comment above
    unset $as_ompi_Lib
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_sctp_libdir" != ""; then :
   # libdir was specified - search only there
           btl_sctp_LDFLAGS="$btl_sctp_LDFLAGS -L$ompi_check_sctp_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_sctp_libdir"
           as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                  btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                  unset $as_ompi_Lib
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_sctp_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                     btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                     unset $as_ompi_Lib
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_sctp_LDFLAGS="$btl_sctp_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                          btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_sctp_LDFLAGS="$btl_sctp_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                          btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_sctp_LIBS="-l$ompi_sctp_api_libname "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering
    as_ompi_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`

    # see comment above
    unset $as_ompi_Lib
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_sctp_libdir" != ""; then :
   # libdir was specified - search only there
           btl_sctp_LDFLAGS="$btl_sctp_LDFLAGS -L$ompi_check_sctp_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_sctp_libdir"
           as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                  btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                  unset $as_ompi_Lib
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_sctp_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                     btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                     unset $as_ompi_Lib
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_sctp_LDFLAGS="$btl_sctp_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                          btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_sctp_LDFLAGS="$btl_sctp_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_sctp_api_libname''_sctp_recvmsg" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_recvmsg in -l$ompi_sctp_api_libname" >&5
$as_echo_n "checking for sctp_recvmsg in -l$ompi_sctp_api_libname... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_sctp_api_libname  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sctp_recvmsg ();
int
main ()
{
return sctp_recvmsg ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
                          btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_sctp_LIBS="-l$ompi_sctp_api_libname "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_sctp_happy="yes"
else
  btl_sctp_CPPFLAGS="$ompi_check_package_btl_sctp_orig_CPPFLAGS"
           btl_sctp_LDFLAGS="$ompi_check_package_btl_sctp_orig_LDFLAGS"
           btl_sctp_LIBS="$ompi_check_package_btl_sctp_orig_LIBS"
           ompi_check_sctp_happy="no"
fi

    CPPFLAGS="$ompi_check_package_btl_sctp_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_sctp_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_sctp_save_LIBS"


else
  ompi_check_sctp_happy="no"
fi

    if test "$ompi_check_sctp_happy" = "yes"; then :
  btl_sctp_happy="yes"
else
  if test ! -z "$with_sctp" -a "$with_sctp" != "no"; then :
  as_fn_error "SCTP support requested but not found.  Aborting" "$LINENO" 5
fi
	    btl_sctp_happy="no"
fi


    if test "$btl_sctp_happy" = "yes"; then :
  btl_sctp_WRAPPER_EXTRA_LDFLAGS="$btl_sctp_LDFLAGS"
           btl_sctp_WRAPPER_EXTRA_LIBS="$btl_sctp_LIBS"
           btl_sctp_WRAPPER_EXTRA_CPPFLAGS="$btl_sctp_CPPFLAGS"
           btl_sctp_WRAPPER_EXTRA_CFLAGS="$btl_sctp_CFLAGS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build sctp






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=sctp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:sctp can compile" >&5
$as_echo_n "checking if MCA component btl:sctp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "sctp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sctp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sctp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "sctp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sctp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sctp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components sctp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_sctp_DSO=1
else
  BUILD_btl_sctp_DSO=0
fi
     if test "$BUILD_btl_sctp_DSO" = "1"; then
  OMPI_BUILD_btl_sctp_DSO_TRUE=
  OMPI_BUILD_btl_sctp_DSO_FALSE='#'
else
  OMPI_BUILD_btl_sctp_DSO_TRUE='#'
  OMPI_BUILD_btl_sctp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:sm (m4 configuration macro)"




    project=ompi
    framework=btl
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in btl_sm_knem_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"btl_sm_knem_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_check_knem_happy ompi_check_knem_btl_sm_save_CPPFLAGS ompi_check_knem_dir; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_check_knem_happy ompi_check_knem_btl_sm_save_CPPFLAGS ompi_check_knem_dir\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


# Check whether --with-knem was given.
if test "${with_knem+set}" = set; then :
  withval=$with_knem;
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-knem value" >&5
$as_echo_n "checking --with-knem value... " >&6; }
    if test "$with_knem" = "yes" -o "$with_knem" = "no" -o "x$with_knem" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_knem"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_knem not found" >&5
$as_echo "$as_me: WARNING: Directory $with_knem not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_knem/include/knem_io.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_knem/include/knem_io.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_knem/include/knem_io.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_knem)" >&5
$as_echo "sanity check ok ($with_knem)" >&6; }

fi


fi


fi

    ompi_check_knem_btl_sm_save_CPPFLAGS="$CPPFLAGS"

    if test "$with_knem" != "no"; then :
  if test ! -z "$with_knem" -a "$with_knem" != "yes"; then :
  ompi_check_knem_dir="$with_knem"
fi


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_knem_io_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_knem_dir" = "/usr" -o "$ompi_check_knem_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "knem_io.h" "ac_cv_header_knem_io_h" "$ac_includes_default"
if test "x$ac_cv_header_knem_io_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_knem_io_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_knem_dir" != ""; then :
  btl_sm_CPPFLAGS="$btl_sm_CPPFLAGS -I$ompi_check_knem_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_knem_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "knem_io.h" "ac_cv_header_knem_io_h" "$ac_includes_default"
if test "x$ac_cv_header_knem_io_h" = x""yes; then :
  ompi_check_knem_happy="yes"
else
  ompi_check_knem_happy="no"
fi


else
  ompi_check_knem_happy="yes"
fi
    unset ompi_check_package_header_happy
else
  ompi_check_knem_happy="no"
fi

    CPPFLAGS="$CPPFLAGS $btl_sm_CPPFLAGS"

    # need at least version 0x0000000b
    if test "$ompi_check_knem_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for knem ABI version 0xb or later" >&5
$as_echo_n "checking for knem ABI version 0xb or later... " >&6; }
if test "${ompi_cv_knem_version_ok+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <knem_io.h>

int
main ()
{

#if KNEM_ABI_VERSION < 0xc
#error "Version less than 0xc"
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ompi_cv_knem_version_ok=yes
else
  ompi_cv_knem_version_ok=no
fi
rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_knem_version_ok" >&5
$as_echo "$ompi_cv_knem_version_ok" >&6; }
fi

    CPPFLAGS="$ompi_check_knem_btl_sm_save_CPPFLAGS"

    if test "$ompi_check_knem_happy" = "yes" -a "$ompi_cv_knem_version_ok" = "yes"; then :
  btl_sm_knem_happy=1
else
  if test ! -z "$with_knem" -a "$with_knem" != "no"; then :
  as_fn_error "KNEM support requested but not found.  Aborting" "$LINENO" 5
fi
           btl_sm_knem_happy=0
fi

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




cat >>confdefs.h <<_ACEOF
#define OMPI_BTL_SM_HAVE_KNEM $btl_sm_knem_happy
_ACEOF

    should_build=1
    # substitute in the things needed to build KNEM


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:sm can compile" >&5
$as_echo_n "checking if MCA component btl:sm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "sm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "sm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components sm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_sm_DSO=1
else
  BUILD_btl_sm_DSO=0
fi
     if test "$BUILD_btl_sm_DSO" = "1"; then
  OMPI_BUILD_btl_sm_DSO_TRUE=
  OMPI_BUILD_btl_sm_DSO_FALSE='#'
else
  OMPI_BUILD_btl_sm_DSO_TRUE='#'
  OMPI_BUILD_btl_sm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:tcp (m4 configuration macro)"




    project=ompi
    framework=btl
    component=tcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=tcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # check for sockaddr_in (a good sign we have TCP)
    ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF

should_build=1
else
  should_build=0
fi



fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=tcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:tcp can compile" >&5
$as_echo_n "checking if MCA component btl:tcp can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "tcp" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "tcp" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tcp"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_tcp_DSO=1
else
  BUILD_btl_tcp_DSO=0
fi
     if test "$BUILD_btl_tcp_DSO" = "1"; then
  OMPI_BUILD_btl_tcp_DSO_TRUE=
  OMPI_BUILD_btl_tcp_DSO_FALSE='#'
else
  OMPI_BUILD_btl_tcp_DSO_TRUE='#'
  OMPI_BUILD_btl_tcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:udapl (m4 configuration macro)"




    project=ompi
    framework=btl
    component=udapl
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=udapl

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-udapl was given.
if test "${with_udapl+set}" = set; then :
  withval=$with_udapl;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-udapl value" >&5
$as_echo_n "checking --with-udapl value... " >&6; }
    if test "$with_udapl" = "yes" -o "$with_udapl" = "no" -o "x$with_udapl" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_udapl"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_udapl not found" >&5
$as_echo "$as_me: WARNING: Directory $with_udapl not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_udapl/include/dat/udat.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_udapl/include/dat/udat.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_udapl/include/dat/udat.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_udapl)" >&5
$as_echo "sanity check ok ($with_udapl)" >&6; }

fi


fi


fi


# Check whether --with-udapl-libdir was given.
if test "${with_udapl_libdir+set}" = set; then :
  withval=$with_udapl_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-udapl-libdir value" >&5
$as_echo_n "checking --with-udapl-libdir value... " >&6; }
    if test "$with_udapl_libdir" = "yes" -o "$with_udapl_libdir" = "no" -o "x$with_udapl_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_udapl_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_udapl_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_udapl_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_udapl_libdir/libdat.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_udapl_libdir/libdat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_udapl_libdir/libdat.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_udapl_libdir)" >&5
$as_echo "sanity check ok ($with_udapl_libdir)" >&6; }

fi


fi


fi


    # Special case for OFED/Linux: the default /etc/dat.conf that
    # ships with OFED is broken in that it includes DAT providers that
    # are not guarnateed to work (e.g., it includes providers for ib0,
    # ib1, ib2, ib3, and bond0).  Usually, a sysadmin will need to
    # edit this file to configure it for the specific environment in
    # which it will be used.  Hence, if you run the udapl BTL on
    # Linux/OFED, you'll get a bunch of warning messages about the
    # providers that don't work.  However, on Linux/OFED, you don't
    # really want to use udapl anyway; you likely really want to use
    # the openib BTL (i.e., native verbs, not udapl).

    # So after exploring many different scenarios, the least evil
    # solution seemed to be to disable building the udapl BTL on
    # Linux/OFED *unless the user specifically asks for it.* To be
    # specific: on Linux/OFED, if you do not specify
    # --with-udapl(=DIR), the udapl BTL will not be built.
    if test -z "$with_udapl"; then :
  case $host in
              *linux*)
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Linux and --with-udapl was not specified" >&5
$as_echo "$as_me: WARNING: On Linux and --with-udapl was not specified" >&2;}
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building the udapl BTL" >&5
$as_echo "$as_me: WARNING: Not building the udapl BTL" >&2;}
                  with_udapl=no
                  ;;
           esac
fi

    if test ! -z "$with_udapl" -a "$with_udapl" != "yes"; then :
  ompi_check_udapl_dir="$with_udapl"
fi
    if test ! -z "$with_udapl_libdir" -a "$with_udapl_libdir" != "yes"; then :
  ompi_check_udapl_libdir="$with_udapl_libdir"
fi
    if test "$with_udapl" = "no"; then :
  ompi_check_udapl_happy="no"
else
  ompi_check_udapl_happy="yes"
fi


    ompi_check_package_btl_udapl_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_udapl_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_udapl_save_LIBS="$LIBS"

    ompi_check_package_btl_udapl_orig_CPPFLAGS="$btl_udapl_CPPFLAGS"
    ompi_check_package_btl_udapl_orig_LDFLAGS="$btl_udapl_LDFLAGS"
    ompi_check_package_btl_udapl_orig_LIBS="$btl_udapl_LIBS"

    if test "$ompi_check_udapl_happy" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_dat_udat_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_udapl_dir" = "/usr" -o "$ompi_check_udapl_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "dat/udat.h" "ac_cv_header_dat_udat_h" "$ac_includes_default"
if test "x$ac_cv_header_dat_udat_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_dat_udat_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_udapl_dir" != ""; then :
  btl_udapl_CPPFLAGS="$btl_udapl_CPPFLAGS -I$ompi_check_udapl_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_udapl_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "dat/udat.h" "ac_cv_header_dat_udat_h" "$ac_includes_default"
if test "x$ac_cv_header_dat_udat_h" = x""yes; then :
  ompi_check_udapl_happy="yes"
else
  ompi_check_udapl_happy="no"
fi


else
  ompi_check_udapl_happy="yes"
fi
    unset ompi_check_package_header_happy
fi

    if test "$ompi_check_udapl_happy" = "yes"; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_dat_dat_registry_list_providers
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_udapl_libdir" != ""; then :
   # libdir was specified - search only there
           btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                  btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                  unset ac_cv_lib_dat_dat_registry_list_providers
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_udapl_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                     btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                     unset ac_cv_lib_dat_dat_registry_list_providers
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_udapl_LIBS="-ldat "
           ompi_check_udapl_happy="yes"
else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_dat_dat_registry_list_providers
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_udapl_libdir" != ""; then :
   # libdir was specified - search only there
           btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                  btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                  unset ac_cv_lib_dat_dat_registry_list_providers
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_udapl_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                     btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                     unset ac_cv_lib_dat_dat_registry_list_providers
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  ac_cv_lib_dat_dat_registry_list_providers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  btl_udapl_LIBS="-ldat -ldapl"
           ompi_check_udapl_happy="yes"
else
  ompi_check_udapl_happy="no"
fi


fi


fi

    CPPFLAGS="$ompi_check_package_btl_udapl_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_udapl_save_LIBS"

    if test "$ompi_check_udapl_happy" = "yes"; then :
  btl_udapl_happy="yes"
else
  if test ! -z "$with_udapl" -a "$with_udapl" != "no"; then :
  as_fn_error "uDAPL support requested but not found.  Aborting" "$LINENO" 5
fi
           btl_udapl_happy="no"
fi


    if test "$btl_udapl_happy" = "yes"; then :
  btl_udapl_WRAPPER_EXTRA_LDFLAGS="$btl_udapl_LDFLAGS"
           btl_udapl_WRAPPER_EXTRA_LIBS="$btl_udapl_LIBS"
           should_build=1
else
  should_build=0
fi

    # Borrowed from MVAPI BTL - a data structure in the uDAPL headers
    # is not fully ISO C.  Remove -pedantic to silence a warning.
    btl_udapl_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"
    if test "$btl_udapl_CFLAGS" != "$CFLAGS" -a "$btl_udapl_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Removed -pedantic from CFLAGS for
uDAPL component because the uDAPL headers are not fully ISO C" >&5
$as_echo "$as_me: WARNING: Removed -pedantic from CFLAGS for
uDAPL component because the uDAPL headers are not fully ISO C" >&2;}
fi

    # Test for uDAPL relaxed ordered specific symbols
    if test "$btl_udapl_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uDAPL DAT_MEM_TYPE_SO_VIRTUAL" >&5
$as_echo_n "checking for uDAPL DAT_MEM_TYPE_SO_VIRTUAL... " >&6; }
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <dat/udat.h>
int
main ()
{
DAT_MEM_TYPE dmt = DAT_MEM_TYPE_SO_VIRTUAL;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                    btl_udapl_ro_aware=1
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                    btl_udapl_ro_aware=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define HAVE_DAT_MEM_TYPE_SO_VIRTUAL $btl_udapl_ro_aware
_ACEOF

fi

    # substitute in the things needed to build udapl






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=btl
    component=udapl

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:udapl can compile" >&5
$as_echo_n "checking if MCA component btl:udapl can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "udapl" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"udapl\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "udapl" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"udapl\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components udapl"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_btl_udapl_DSO=1
else
  BUILD_btl_udapl_DSO=0
fi
     if test "$BUILD_btl_udapl_DSO" = "1"; then
  OMPI_BUILD_btl_udapl_DSO_TRUE=
  OMPI_BUILD_btl_udapl_DSO_FALSE='#'
else
  OMPI_BUILD_btl_udapl_DSO_TRUE='#'
  OMPI_BUILD_btl_udapl_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/btl/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component btl:$component (need to configure)"




    project=ompi
    framework=btl
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=btl
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/btl/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/btl/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=btl
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:$component can compile" >&5
$as_echo_n "checking if MCA component btl:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_btl_ALL_COMPONENTS="$all_components"
    MCA_btl_STATIC_COMPONENTS="$static_components"
    MCA_btl_DSO_COMPONENTS="$dso_components"
    MCA_btl_STATIC_LTLIBS="$static_ltlibs"







    MCA_btl_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_btl_ALL_SUBDIRS="$MCA_btl_ALL_SUBDIRS mca/btl/$item"
    done



    MCA_btl_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_btl_STATIC_SUBDIRS="$MCA_btl_STATIC_SUBDIRS mca/btl/$item"
    done



    MCA_btl_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_btl_DSO_SUBDIRS="$MCA_btl_DSO_SUBDIRS mca/btl/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "btl" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_btl_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "coll" = "common" ; then
                              MCA_ompi_FRAMEWORKS="coll $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/coll $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_coll_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_coll_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_coll_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS coll"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/coll"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_coll_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_coll_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_coll_STATIC_SUBDIRS)"
                          fi
                          if test "coll" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/coll/libmca_coll.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_coll_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework coll"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "coll" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/coll/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework coll" >&5
$as_echo_n "checking for no configure components in framework coll... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: basic, hierarch, inter, self, sm, sync, tuned" >&5
$as_echo "basic, hierarch, inter, self, sm, sync, tuned" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework coll" >&5
$as_echo_n "checking for m4 configure components in framework coll... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: fca" >&5
$as_echo "fca" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component coll:basic (no configuration)"




    project=ompi
    framework=coll
    component=basic
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=basic

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=basic

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:basic can compile" >&5
$as_echo_n "checking if MCA component coll:basic can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "basic" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "basic" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components basic"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_basic_DSO=1
    else
        BUILD_coll_basic_DSO=0
    fi
     if test "$BUILD_coll_basic_DSO" = "1"; then
  OMPI_BUILD_coll_basic_DSO_TRUE=
  OMPI_BUILD_coll_basic_DSO_FALSE='#'
else
  OMPI_BUILD_coll_basic_DSO_TRUE='#'
  OMPI_BUILD_coll_basic_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:hierarch (no configuration)"




    project=ompi
    framework=coll
    component=hierarch
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=hierarch

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=hierarch

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:hierarch can compile" >&5
$as_echo_n "checking if MCA component coll:hierarch can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "hierarch" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "hierarch" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components hierarch"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_hierarch_DSO=1
    else
        BUILD_coll_hierarch_DSO=0
    fi
     if test "$BUILD_coll_hierarch_DSO" = "1"; then
  OMPI_BUILD_coll_hierarch_DSO_TRUE=
  OMPI_BUILD_coll_hierarch_DSO_FALSE='#'
else
  OMPI_BUILD_coll_hierarch_DSO_TRUE='#'
  OMPI_BUILD_coll_hierarch_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:inter (no configuration)"




    project=ompi
    framework=coll
    component=inter
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=inter

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=inter

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:inter can compile" >&5
$as_echo_n "checking if MCA component coll:inter can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "inter" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"inter\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "inter" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"inter\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components inter"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_inter_DSO=1
    else
        BUILD_coll_inter_DSO=0
    fi
     if test "$BUILD_coll_inter_DSO" = "1"; then
  OMPI_BUILD_coll_inter_DSO_TRUE=
  OMPI_BUILD_coll_inter_DSO_FALSE='#'
else
  OMPI_BUILD_coll_inter_DSO_TRUE='#'
  OMPI_BUILD_coll_inter_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:self (no configuration)"




    project=ompi
    framework=coll
    component=self
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=self

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=self

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:self can compile" >&5
$as_echo_n "checking if MCA component coll:self can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "self" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "self" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components self"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_self_DSO=1
    else
        BUILD_coll_self_DSO=0
    fi
     if test "$BUILD_coll_self_DSO" = "1"; then
  OMPI_BUILD_coll_self_DSO_TRUE=
  OMPI_BUILD_coll_self_DSO_FALSE='#'
else
  OMPI_BUILD_coll_self_DSO_TRUE='#'
  OMPI_BUILD_coll_self_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:sm (no configuration)"




    project=ompi
    framework=coll
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:sm can compile" >&5
$as_echo_n "checking if MCA component coll:sm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "sm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "sm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_sm_DSO=1
    else
        BUILD_coll_sm_DSO=0
    fi
     if test "$BUILD_coll_sm_DSO" = "1"; then
  OMPI_BUILD_coll_sm_DSO_TRUE=
  OMPI_BUILD_coll_sm_DSO_FALSE='#'
else
  OMPI_BUILD_coll_sm_DSO_TRUE='#'
  OMPI_BUILD_coll_sm_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:sync (no configuration)"




    project=ompi
    framework=coll
    component=sync
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=sync

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=sync

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:sync can compile" >&5
$as_echo_n "checking if MCA component coll:sync can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "sync" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sync\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sync\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "sync" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sync\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sync\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sync"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_sync_DSO=1
    else
        BUILD_coll_sync_DSO=0
    fi
     if test "$BUILD_coll_sync_DSO" = "1"; then
  OMPI_BUILD_coll_sync_DSO_TRUE=
  OMPI_BUILD_coll_sync_DSO_FALSE='#'
else
  OMPI_BUILD_coll_sync_DSO_TRUE='#'
  OMPI_BUILD_coll_sync_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:tuned (no configuration)"




    project=ompi
    framework=coll
    component=tuned
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=tuned

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=tuned

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:tuned can compile" >&5
$as_echo_n "checking if MCA component coll:tuned can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "tuned" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tuned\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "tuned" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tuned\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components tuned"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_tuned_DSO=1
    else
        BUILD_coll_tuned_DSO=0
    fi
     if test "$BUILD_coll_tuned_DSO" = "1"; then
  OMPI_BUILD_coll_tuned_DSO_TRUE=
  OMPI_BUILD_coll_tuned_DSO_FALSE='#'
else
  OMPI_BUILD_coll_tuned_DSO_TRUE='#'
  OMPI_BUILD_coll_tuned_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component coll:fca (m4 configuration macro)"




    project=ompi
    framework=coll
    component=fca
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=coll
    component=fca

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-fca was given.
if test "${with_fca+set}" = set; then :
  withval=$with_fca;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-fca value" >&5
$as_echo_n "checking --with-fca value... " >&6; }
    if test "$with_fca" = "yes" -o "$with_fca" = "no" -o "x$with_fca" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_fca"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_fca not found" >&5
$as_echo "$as_me: WARNING: Directory $with_fca not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_fca/lib/libfca.so 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_fca/lib/libfca.so not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_fca/lib/libfca.so not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_fca)" >&5
$as_echo "sanity check ok ($with_fca)" >&6; }

fi


fi


fi


    if test "$with_fca" != "no"; then :
  if test ! -z "$with_fca" -a "$with_fca" != "yes"; then :
  ompi_check_fca_dir="$with_fca"
			   ompi_check_fca_libdir="$ompi_check_fca_dir/lib"
			   ompi_check_fca_incdir="$ompi_check_fca_dir/include"
			   ompi_check_fca_libs="fca"

			   CPPFLAGS_save="$CPPFLAGS"
			   LDFLAGS_save="$LDFLAGS"
			   LIBS_save="$LIBS"
			   CPPFLAGS="$CPPFLAGS -I$ompi_check_fca_dir/include/fca -I$ompi_check_fca_dir/include/fca_core"


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:126863: coll_fca_CPPFLAGS : $coll_fca_CPPFLAGS" >&5
else
    echo coll_fca_CPPFLAGS : $coll_fca_CPPFLAGS >&5
fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:126871: coll_fca_LDFLAGS  : $coll_fca_LDFLAGS" >&5
else
    echo coll_fca_LDFLAGS  : $coll_fca_LDFLAGS >&5
fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:126879: coll_fca_LIBS     : $coll_fca_LIBS" >&5
else
    echo coll_fca_LIBS     : $coll_fca_LIBS >&5
fi


    ompi_check_package_coll_fca_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_coll_fca_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_coll_fca_save_LIBS="$LIBS"

    ompi_check_package_coll_fca_orig_CPPFLAGS="$coll_fca_CPPFLAGS"
    ompi_check_package_coll_fca_orig_LDFLAGS="$coll_fca_LDFLAGS"
    ompi_check_package_coll_fca_orig_LIBS="$coll_fca_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_fca_api_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_fca_dir" = "/usr" -o "$ompi_check_fca_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "fca_api.h" "ac_cv_header_fca_api_h" "$ac_includes_default"
if test "x$ac_cv_header_fca_api_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_fca_api_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_fca_dir" != ""; then :
  coll_fca_CPPFLAGS="$coll_fca_CPPFLAGS -I$ompi_check_fca_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_fca_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "fca_api.h" "ac_cv_header_fca_api_h" "$ac_includes_default"
if test "x$ac_cv_header_fca_api_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering
    as_ompi_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`

    # see comment above
    unset $as_ompi_Lib
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_fca_libdir" != ""; then :
   # libdir was specified - search only there
           coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L$ompi_check_fca_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_fca_libdir"
           as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                  coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                  unset $as_ompi_Lib
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_fca_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                     coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                     unset $as_ompi_Lib
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                          coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                          coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  coll_fca_LIBS="-l$ompi_check_fca_libs "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering
    as_ompi_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`

    # see comment above
    unset $as_ompi_Lib
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_fca_libdir" != ""; then :
   # libdir was specified - search only there
           coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L$ompi_check_fca_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_fca_libdir"
           as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                  coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                  unset $as_ompi_Lib
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_fca_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                     coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                     unset $as_ompi_Lib
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                          coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     as_ac_Lib=`$as_echo "ac_cv_lib_$ompi_check_fca_libs''_fca_get_version" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fca_get_version in -l$ompi_check_fca_libs" >&5
$as_echo_n "checking for fca_get_version in -l$ompi_check_fca_libs... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ompi_check_fca_libs  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fca_get_version ();
int
main ()
{
return fca_get_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
                          coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
                          unset $as_ompi_Lib
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  coll_fca_LIBS="-l$ompi_check_fca_libs "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_fca_happy="yes"
else
  coll_fca_CPPFLAGS="$ompi_check_package_coll_fca_orig_CPPFLAGS"
           coll_fca_LDFLAGS="$ompi_check_package_coll_fca_orig_LDFLAGS"
           coll_fca_LIBS="$ompi_check_package_coll_fca_orig_LIBS"
           ompi_check_fca_happy="no"
fi

    CPPFLAGS="$ompi_check_package_coll_fca_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_coll_fca_save_LDFLAGS"
    LIBS="$ompi_check_package_coll_fca_save_LIBS"


			   CPPFLAGS="$CPPFLAGS_save"
			   LDFLAGS="$LDFLAGS_save"
			   LIBS="$LIBS_save"
else
  ompi_check_fca_happy="no"
fi
fi

    if test "$ompi_check_fca_happy" = "yes" -a "$enable_progress_threads" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fca driver does not currently support progress threads.  Disabling FCA." >&5
$as_echo "$as_me: WARNING: fca driver does not currently support progress threads.  Disabling FCA." >&2;}
           ompi_check_fca_happy="no"
fi

    if test "$ompi_check_fca_happy" = "yes"; then :
  coll_fca_happy="yes"
else
  if test ! -z "$with_fca" -a "$with_fca" != "no"; then :
  as_fn_error "FCA support requested but not found.  Aborting" "$LINENO" 5
fi
           coll_fca_happy="no"
fi


    if test "$coll_fca_happy" = "yes"; then :
  coll_fca_WRAPPER_EXTRA_LDFLAGS="$coll_fca_LDFLAGS"
           coll_fca_CPPFLAGS="$coll_fca_CPPFLAGS"
           coll_fca_WRAPPER_EXTRA_CPPFLAGS="$coll_fca_CPPFLAGS"
           coll_fca_WRAPPER_EXTRA_LIBS="$coll_fca_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build fca




	coll_fca_HOME="$ompi_check_fca_dir"



fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=coll
    component=fca

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:fca can compile" >&5
$as_echo_n "checking if MCA component coll:fca can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "fca" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fca\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"fca\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "fca" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fca\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"fca\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components fca"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_coll_fca_DSO=1
else
  BUILD_coll_fca_DSO=0
fi
     if test "$BUILD_coll_fca_DSO" = "1"; then
  OMPI_BUILD_coll_fca_DSO_TRUE=
  OMPI_BUILD_coll_fca_DSO_FALSE='#'
else
  OMPI_BUILD_coll_fca_DSO_TRUE='#'
  OMPI_BUILD_coll_fca_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/coll/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component coll:$component (need to configure)"




    project=ompi
    framework=coll
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=coll
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/coll/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/coll/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:$component can compile" >&5
$as_echo_n "checking if MCA component coll:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_coll_ALL_COMPONENTS="$all_components"
    MCA_coll_STATIC_COMPONENTS="$static_components"
    MCA_coll_DSO_COMPONENTS="$dso_components"
    MCA_coll_STATIC_LTLIBS="$static_ltlibs"







    MCA_coll_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_coll_ALL_SUBDIRS="$MCA_coll_ALL_SUBDIRS mca/coll/$item"
    done



    MCA_coll_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_coll_STATIC_SUBDIRS="$MCA_coll_STATIC_SUBDIRS mca/coll/$item"
    done



    MCA_coll_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_coll_DSO_SUBDIRS="$MCA_coll_DSO_SUBDIRS mca/coll/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "coll" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_coll_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "common" = "common" ; then
                              MCA_ompi_FRAMEWORKS="common $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/common $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_common_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_common_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_common_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS common"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/common"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_common_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_common_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_common_STATIC_SUBDIRS)"
                          fi
                          if test "common" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/common/libmca_common.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_common_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework common"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "common" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/common/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework common" >&5
$as_echo_n "checking for no configure components in framework common... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: sm" >&5
$as_echo "sm" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework common" >&5
$as_echo_n "checking for m4 configure components in framework common... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: mx, portals" >&5
$as_echo "mx, portals" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component common:sm (no configuration)"




    project=ompi
    framework=common
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_common" ; then
            if test "$DIRECT_common" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=common
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=common
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_common" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_common" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:sm can compile" >&5
$as_echo_n "checking if MCA component common:sm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "sm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_common" ; then
        if test "$DIRECT_common" = "sm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_common_sm_DSO=1
    else
        BUILD_common_sm_DSO=0
    fi
     if test "$BUILD_common_sm_DSO" = "1"; then
  OMPI_BUILD_common_sm_DSO_TRUE=
  OMPI_BUILD_common_sm_DSO_FALSE='#'
else
  OMPI_BUILD_common_sm_DSO_TRUE='#'
  OMPI_BUILD_common_sm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component common:mx (m4 configuration macro)"




    project=ompi
    framework=common
    component=mx
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_common" ; then
            if test "$DIRECT_common" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=common
    component=mx

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-mx was given.
if test "${with_mx+set}" = set; then :
  withval=$with_mx;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mx value" >&5
$as_echo_n "checking --with-mx value... " >&6; }
    if test "$with_mx" = "yes" -o "$with_mx" = "no" -o "x$with_mx" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mx not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mx/include/myriexpress.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mx)" >&5
$as_echo "sanity check ok ($with_mx)" >&6; }

fi


fi


fi


# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then :
  withval=$with_mx_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mx-libdir value" >&5
$as_echo_n "checking --with-mx-libdir value... " >&6; }
    if test "$with_mx_libdir" = "yes" -o "$with_mx_libdir" = "no" -o "x$with_mx_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mx_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mx_libdir/libmyriexpress.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mx_libdir)" >&5
$as_echo "sanity check ok ($with_mx_libdir)" >&6; }

fi


fi


fi


    ompi_check_mx_common_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mx_common_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_mx_common_mx_save_LIBS="$LIBS"

    if test "$with_mx" != "no"; then :
  if test ! -z "$with_mx" -a "$with_mx" != "yes"; then :
  ompi_check_mx_dir="$with_mx"
fi
           if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then :
  ompi_check_mx_libdir="$with_mx_libdir"
fi


    ompi_check_package_common_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_common_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_common_mx_save_LIBS="$LIBS"

    ompi_check_package_common_mx_orig_CPPFLAGS="$common_mx_CPPFLAGS"
    ompi_check_package_common_mx_orig_LDFLAGS="$common_mx_LDFLAGS"
    ompi_check_package_common_mx_orig_LIBS="$common_mx_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_myriexpress_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
if test "x$ac_cv_header_myriexpress_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_myriexpress_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_mx_dir" != ""; then :
  common_mx_CPPFLAGS="$common_mx_CPPFLAGS -I$ompi_check_mx_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
if test "x$ac_cv_header_myriexpress_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then :
   # libdir was specified - search only there
           common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                  common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                     common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  common_mx_LIBS="-lmyriexpress "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then :
   # libdir was specified - search only there
           common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                  common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                     common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  common_mx_LIBS="-lmyriexpress "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_mx_happy="yes"
else
  common_mx_CPPFLAGS="$ompi_check_package_common_mx_orig_CPPFLAGS"
           common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
           common_mx_LIBS="$ompi_check_package_common_mx_orig_LIBS"
           ompi_check_mx_happy="no"
fi

    CPPFLAGS="$ompi_check_package_common_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
    LIBS="$ompi_check_package_common_mx_save_LIBS"

else
  ompi_check_mx_happy="no"
fi

    CPPFLAGS="$CPPFLAGS $common_mx_CPPFLAGS"
    LDFLAGS="$LDFLAGS $common_mx_LDFLAGS"
    LIBS="$LIBS $common_mx_LIBS"

    # need at least version 1.0
    if test "ompi_check_mx_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX version 1.0 or later" >&5
$as_echo_n "checking for MX version 1.0 or later... " >&6; }
if test "${ompi_cv_mx_version_ok+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <myriexpress.h>

int
main ()
{

#if MX_API < 0x300
#error "Version less than 0x300"
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ompi_cv_mx_version_ok="yes"
else
  ompi_cv_mx_version_ok="no"
fi
rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_mx_version_ok" >&5
$as_echo "$ompi_cv_mx_version_ok" >&6; }
fi
    if test "$ompi_cv_mx_version_ok" = "no"; then :
  ompi_check_mx_happy="no"
fi

    if test "$ompi_check_mx_happy" = "yes"; then :
  for ac_header in mx_extensions.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mx_extensions.h" "ac_cv_header_mx_extensions_h" "$ac_includes_default"
if test "x$ac_cv_header_mx_extensions_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MX_EXTENSIONS_H 1
_ACEOF
 for ac_func in mx_forget mx_register_unexp_handler
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_open_board" >&5
$as_echo_n "checking for mx_open_board... " >&6; }
if test "${ompi_cv_func_mx_open_board+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__fops.h>

int
main ()
{

mx_open_board(0, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_mx_open_board="yes"
else
  ompi_cv_func_mx_open_board="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_mx_open_board" >&5
$as_echo "$ompi_cv_func_mx_open_board" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx__get_mapper_state" >&5
$as_echo_n "checking for mx__get_mapper_state... " >&6; }
if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__driver_interface.h>

int
main ()
{

mx__get_mapper_state(NULL, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_mx__get_mapper_state="yes"
else
  ompi_cv_func_mx__get_mapper_state="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_mx__get_mapper_state" >&5
$as_echo "$ompi_cv_func_mx__get_mapper_state" >&6; }

    if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then :
  mx_provide_mapper_state=1

else
  mx_provide_mapper_state=0

fi

cat >>confdefs.h <<_ACEOF
#define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state
_ACEOF


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&5
$as_echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&2;}
fi

done

fi

    CPPFLAGS="$ompi_check_mx_common_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_common_mx_save_LDFLAGS"
    LIBS="$ompi_check_mx_common_mx_save_LIBS"

    if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
$as_echo "$as_me: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_mx_happy="no"
fi

    if test "$ompi_check_mx_happy" = "yes"; then :
  common_mx_happy="yes"
else
  if test ! -z "$with_mx" -a "$with_mx" != "no"; then :
  as_fn_error "MX support requested but not found.  Aborting" "$LINENO" 5
fi
           common_mx_happy="no"
fi


    if test "$common_mx_happy" = "yes"; then :
  common_mx_WRAPPER_EXTRA_LDFLAGS="$common_mx_LDFLAGS"
           common_mx_WRAPPER_EXTRA_LIBS="$common_mx_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build mx






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=common
    component=mx

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_common" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_common" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:mx can compile" >&5
$as_echo_n "checking if MCA component common:mx can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "mx" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_common" ; then
        if test "$DIRECT_common" = "mx" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mx"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_common_mx_DSO=1
else
  BUILD_common_mx_DSO=0
fi
     if test "$BUILD_common_mx_DSO" = "1"; then
  OMPI_BUILD_common_mx_DSO_TRUE=
  OMPI_BUILD_common_mx_DSO_FALSE='#'
else
  OMPI_BUILD_common_mx_DSO_TRUE='#'
  OMPI_BUILD_common_mx_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component common:portals (m4 configuration macro)"




    project=ompi
    framework=common
    component=portals
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_common" ; then
            if test "$DIRECT_common" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=common
    component=portals

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


    # save compiler flags so that we don't alter them for later
    # components.
    check_portals_save_CPPFLAGS="$CPPFLAGS"
    check_portals_save_LDFLAGS="$LDFLAGS"
    check_portals_save_LIBS="$LIBS"

    check_portals_CPPFLAGS=
    check_portals_LDFLAGS=
    check_portals_LIBS=

    check_portals_configuration="none"
    ompi_check_portals_happy="yes"

    # Get some configuration information

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then :
  withval=$with_portals;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi


fi


fi


# Check whether --with-portals-config was given.
if test "${with_portals_config+set}" = set; then :
  withval=$with_portals_config;
fi


# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then :
  withval=$with_portals_libs;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Portals configuration" >&5
$as_echo_n "checking for Portals configuration... " >&6; }
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    elif test "$with_portals_config" = "cnl_modex" ; then
	with_portals_config="xt3-modex"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    OMPI_PORTALS_CRAYXT3_MODEX=0
    case "$with_portals_config" in
        "utcp")
            OMPI_PORTALS_UTCP=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=1
            check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            check_portals_header_prefix=
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: utcp" >&5
$as_echo "utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cray XT3" >&5
$as_echo "Cray XT3" >&6; }
            ;;
        "xt3-modex")
            OMPI_PORTALS_CRAYXT3_MODEX=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cray XT3 - Modex" >&5
$as_echo "Cray XT3 - Modex" >&6; }
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            as_fn_error "unknown Portals configuration.  Can not continue" "$LINENO" 5
            ;;
    esac


cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX
_ACEOF


    # Add correct -I and -L flags
    if test -n "$with_portals"; then :
  if test -d "$with_portals/include"; then :
  check_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"
fi
           if test -d "$with_portals/lib"; then :
  check_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"
fi
fi

    # Try to find all the portals libraries (this is not fun!)
    if test -n "$with_portals_libs" ; then
        check_portals_LIBS=""
        for lib in $with_portals_libs ; do
            check_portals_LIBS="$check_portals_LIBS -l$lib"
        done
    fi

    # check for portals
    LIBS="$LIBS $check_portals_LIBS"
    for ac_header in ${check_portals_header_prefix}portals3.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if possible to link Portals application" >&5
$as_echo_n "checking if possible to link Portals application... " >&6; }
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <${check_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
               ompi_check_portals_happy="yes"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
               ompi_check_portals_happy="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  ompi_check_portals_happy="no"
fi

done


    # Deal with static-only Portals UTCP libs.  See note in
    # ompi/mca/common/portals/configure.m4.  Then possibly cry.
    if test "$with_portals_config" = "utcp" ; then
        if test "common_portals" != "common_portals" ; then
            check_portals_LIBS=
        fi
    fi

    # reset the flags for the next test
    CPPFLAGS="$check_portals_save_CPPFLAGS"
    LDFLAGS="$check_portals_save_LDFLAGS"
    LIBS="$check_portals_save_LIBS"

    common_portals_CPPFLAGS="$check_portals_CPPFLAGS"
    common_portals_LDFLAGS="$check_portals_LDFLAGS"
    common_portals_LIBS="$check_portals_LIBS"

    if test "$ompi_check_portals_happy" = "yes"; then :
  common_portals_happy="yes"
else
  if test ! -z "$with_portals" -a "$with_portals" != "no"; then :
  as_fn_error "Portals support requested but not found.  Aborting" "$LINENO" 5
fi
           common_portals_happy="no"
fi


    if test "$common_portals_happy" = "yes" -a "$with_portals_config" = "utcp" ; then
        # Portals interface
        symbols="PtlInit PtlFini PtlNIInit"
        symbols="$symbols PtlNIFini PtlNIStatus PtlNIDist PtlNIHandle"
        symbols="$symbols PtlGetUid PtlGetId PtlGetJid "
        symbols="$symbols PtlMEAttach PtlMEAttachAny PtlMEInsert PtlMEUnlink"
        symbols="$symbols PtlMDAttach PtlMDBind PtlMDUnlink PtlMDUpdate"
        symbols="$symbols PtlEQAlloc PtlEQFree PtlEQGet PtlEQWait"
        symbols="$symbols PtlEQPoll PtlACEntry"
        symbols="$symbols PtlPut PtlPutRegion PtlGet PtlGetRegon PtlGetPut"

        # Portals reference implementation debugging stuff
        symbols="$symbols PtlMEDump PtlNIEqDump PtlTblDump PtlNIDebug"
        symbols="$symbols PtlErrorStr PtlEventKindStr PtlNIFailStr"

        # Portals reference implementation RTE interface
        symbols="$symbols PtlGetNIDMap PtlGetPIDMap PtlGetRank PtlGetRankId"
        symbols="$symbols PtlSetJID PtlSetNIDMap PtlSetPIDMap PtlSetRank"

        flags=
        for symbol in $symbols ; do
            case $host in
                *-darwin*)
                    flags="$flags -Wl,-u,=_$symbol"
                    ;;
                *-linux*)
                    flags="$flags -Wl,-undefined=$symbol"
                    ;;
            esac
        done

        OMPI_LIBMPI_EXTRA_LDFLAGS="$common_portals_LDFLAGS $flags"
        OMPI_LIBMPI_EXTRA_LIBS="$common_portals_LIBS"

        commmon_portals_LIBS=
    fi

    if test "$common_portals_happy" = "yes"; then :
  common_portals_WRAPPER_EXTRA_LDFLAGS="$common_portals_LDFLAGS"
           common_portals_WRAPPER_EXTRA_LIBS="$common_portals_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build portals





fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=common
    component=portals

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_common" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_common" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:portals can compile" >&5
$as_echo_n "checking if MCA component common:portals can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "portals" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_common" ; then
        if test "$DIRECT_common" = "portals" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components portals"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_common_portals_DSO=1
else
  BUILD_common_portals_DSO=0
fi
     if test "$BUILD_common_portals_DSO" = "1"; then
  OMPI_BUILD_common_portals_DSO_TRUE=
  OMPI_BUILD_common_portals_DSO_FALSE='#'
else
  OMPI_BUILD_common_portals_DSO_TRUE='#'
  OMPI_BUILD_common_portals_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/common/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component common:$component (need to configure)"




    project=ompi
    framework=common
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_common" ; then
            if test "$DIRECT_common" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=common
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/common/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/common/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=common
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_common" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_common" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5
$as_echo_n "checking if MCA component common:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_common" ; then
        if test "$DIRECT_common" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_common_ALL_COMPONENTS="$all_components"
    MCA_common_STATIC_COMPONENTS="$static_components"
    MCA_common_DSO_COMPONENTS="$dso_components"
    MCA_common_STATIC_LTLIBS="$static_ltlibs"







    MCA_common_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_common_ALL_SUBDIRS="$MCA_common_ALL_SUBDIRS mca/common/$item"
    done



    MCA_common_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_common_STATIC_SUBDIRS="$MCA_common_STATIC_SUBDIRS mca/common/$item"
    done



    MCA_common_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_common_DSO_SUBDIRS="$MCA_common_DSO_SUBDIRS mca/common/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "common" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_common_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "crcp" = "common" ; then
                              MCA_ompi_FRAMEWORKS="crcp $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/crcp $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crcp_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crcp_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crcp_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS crcp"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/crcp"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crcp_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crcp_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crcp_STATIC_SUBDIRS)"
                          fi
                          if test "crcp" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/crcp/libmca_crcp.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_crcp_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework crcp"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "crcp" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/crcp/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework crcp" >&5
$as_echo_n "checking for no configure components in framework crcp... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework crcp" >&5
$as_echo_n "checking for m4 configure components in framework crcp... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: bkmrk" >&5
$as_echo "bkmrk" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component crcp:bkmrk (m4 configuration macro)"




    project=ompi
    framework=crcp
    component=bkmrk
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_crcp" ; then
            if test "$DIRECT_crcp" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=crcp
    component=bkmrk

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crcp" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft_cr" = "1"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=crcp
    component=bkmrk

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_crcp" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_crcp" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crcp:bkmrk can compile" >&5
$as_echo_n "checking if MCA component crcp:bkmrk can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crcp" = "bkmrk" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_crcp" ; then
        if test "$DIRECT_crcp" = "bkmrk" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bkmrk"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_crcp_bkmrk_DSO=1
else
  BUILD_crcp_bkmrk_DSO=0
fi
     if test "$BUILD_crcp_bkmrk_DSO" = "1"; then
  OMPI_BUILD_crcp_bkmrk_DSO_TRUE=
  OMPI_BUILD_crcp_bkmrk_DSO_FALSE='#'
else
  OMPI_BUILD_crcp_bkmrk_DSO_TRUE='#'
  OMPI_BUILD_crcp_bkmrk_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/crcp/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component crcp:$component (need to configure)"




    project=ompi
    framework=crcp
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_crcp" ; then
            if test "$DIRECT_crcp" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=crcp
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crcp" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/crcp/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/crcp/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=crcp
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_crcp" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_crcp" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crcp:$component can compile" >&5
$as_echo_n "checking if MCA component crcp:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crcp" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_crcp" ; then
        if test "$DIRECT_crcp" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_crcp_ALL_COMPONENTS="$all_components"
    MCA_crcp_STATIC_COMPONENTS="$static_components"
    MCA_crcp_DSO_COMPONENTS="$dso_components"
    MCA_crcp_STATIC_LTLIBS="$static_ltlibs"







    MCA_crcp_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_crcp_ALL_SUBDIRS="$MCA_crcp_ALL_SUBDIRS mca/crcp/$item"
    done



    MCA_crcp_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_crcp_STATIC_SUBDIRS="$MCA_crcp_STATIC_SUBDIRS mca/crcp/$item"
    done



    MCA_crcp_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_crcp_DSO_SUBDIRS="$MCA_crcp_DSO_SUBDIRS mca/crcp/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "crcp" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_crcp_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "dpm" = "common" ; then
                              MCA_ompi_FRAMEWORKS="dpm $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/dpm $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_dpm_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_dpm_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_dpm_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS dpm"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/dpm"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_dpm_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_dpm_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_dpm_STATIC_SUBDIRS)"
                          fi
                          if test "dpm" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/dpm/libmca_dpm.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_dpm_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework dpm"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "dpm" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/dpm/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework dpm" >&5
$as_echo_n "checking for no configure components in framework dpm... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: orte" >&5
$as_echo "orte" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework dpm" >&5
$as_echo_n "checking for m4 configure components in framework dpm... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component dpm:orte (no configuration)"




    project=ompi
    framework=dpm
    component=orte
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_dpm" ; then
            if test "$DIRECT_dpm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=dpm
    component=orte

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_dpm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=dpm
    component=orte

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_dpm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_dpm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component dpm:orte can compile" >&5
$as_echo_n "checking if MCA component dpm:orte can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_dpm" = "orte" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_dpm" ; then
        if test "$DIRECT_dpm" = "orte" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components orte"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_dpm_orte_DSO=1
    else
        BUILD_dpm_orte_DSO=0
    fi
     if test "$BUILD_dpm_orte_DSO" = "1"; then
  OMPI_BUILD_dpm_orte_DSO_TRUE=
  OMPI_BUILD_dpm_orte_DSO_FALSE='#'
else
  OMPI_BUILD_dpm_orte_DSO_TRUE='#'
  OMPI_BUILD_dpm_orte_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/dpm/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component dpm:$component (need to configure)"




    project=ompi
    framework=dpm
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_dpm" ; then
            if test "$DIRECT_dpm" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=dpm
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_dpm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/dpm/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/dpm/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=dpm
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_dpm" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_dpm" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component dpm:$component can compile" >&5
$as_echo_n "checking if MCA component dpm:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_dpm" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_dpm" ; then
        if test "$DIRECT_dpm" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_dpm_ALL_COMPONENTS="$all_components"
    MCA_dpm_STATIC_COMPONENTS="$static_components"
    MCA_dpm_DSO_COMPONENTS="$dso_components"
    MCA_dpm_STATIC_LTLIBS="$static_ltlibs"







    MCA_dpm_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_dpm_ALL_SUBDIRS="$MCA_dpm_ALL_SUBDIRS mca/dpm/$item"
    done



    MCA_dpm_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_dpm_STATIC_SUBDIRS="$MCA_dpm_STATIC_SUBDIRS mca/dpm/$item"
    done



    MCA_dpm_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_dpm_DSO_SUBDIRS="$MCA_dpm_DSO_SUBDIRS mca/dpm/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "dpm" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_dpm_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "io" = "common" ; then
                              MCA_ompi_FRAMEWORKS="io $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/io $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_io_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_io_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_io_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS io"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/io"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_io_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_io_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_io_STATIC_SUBDIRS)"
                          fi
                          if test "io" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/io/libmca_io.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_io_STATIC_LTLIBS)"

    # Check whether --enable-mpi-io was given.
if test "${enable_mpi_io+set}" = set; then :
  enableval=$enable_mpi_io;
fi


    if test "$enable_mpi_io" != "no"; then :
  define_mpi_io=1
           OMPI_MPIF_MPI_IO_INCLUDE="include \"mpif-mpi-io.h\""
else
  define_mpi_io=0
           OMPI_MPIF_MPI_IO_INCLUDE=""
fi


    ompi_show_subsubtitle "Configuring MCA framework io"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "io" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/io/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework io" >&5
$as_echo_n "checking for no configure components in framework io... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework io" >&5
$as_echo_n "checking for m4 configure components in framework io... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: romio" >&5
$as_echo "romio" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=$define_mpi_io
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component io:romio (m4 configuration macro)"




    project=ompi
    framework=io
    component=romio
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_io" ; then
            if test "$DIRECT_io" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=io
    component=romio

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_io" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Check whether --enable-io-romio was given.
if test "${enable_io_romio+set}" = set; then :
  enableval=$enable_io_romio;
fi


# Check whether --with-io-romio-flags was given.
if test "${with_io_romio_flags+set}" = set; then :
  withval=$with_io_romio_flags;
fi


cat >>confdefs.h <<_ACEOF
#define MCA_io_romio_USER_CONFIGURE_FLAGS "$with_io_romio_flags"
_ACEOF

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want ROMIO component" >&5
$as_echo_n "checking if want ROMIO component... " >&6; }
    if test "$enable_io_romio" = "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
            should_build=0
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI profiling is enabled" >&5
$as_echo_n "checking if MPI profiling is enabled... " >&6; }
            if test "$enable_mpi_profile" = "no"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5
$as_echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;}
                   if test "$enable_io_romio" = "yes"; then :
  as_fn_error "*** ROMIO requested but not available.  Aborting" "$LINENO" 5
fi
                   should_build=0
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

                   if test -n "$with_io_romio_flags" -a "$with_io_romio_flags" != "no"; then :
  io_romio_flags="$with_io_romio_flags $io_romio_flags"
else
  io_romio_flags=
fi
                   # If ROMIO is going to end up in a DSO, all we need is
                   # shared library-ized objects, as we're only building a
                   # DSO (which is always shared).  Otherwise, build with
                   # same flags as OMPI, as we might need any combination of
                   # shared and static-ized objects...
                   if test "$compile_mode" = "dso"; then :
  io_romio_shared=enable
                          io_romio_static=disable
else
  if test "$enable_shared" = "yes"; then :
  io_romio_shared=enable
else
  io_romio_shared=disable
fi
                          if test "$enable_static" = "yes"; then :
  io_romio_static=enable
else
  io_romio_static=disable
fi
fi
                   if test -n "$prefix" -a "$prefix" != "NONE"; then :
  io_romio_prefix_arg="--prefix=$prefix"
else
  io_romio_prefix_arg=
fi

                   if test "$cross_compiling" = "yes"; then :
  if test ! -z $build; then :
  io_romio_flags="$io_romio_flags --build=$build"
fi
                        if test ! -z $host; then :
  io_romio_flags="$io_romio_flags --host=$host"
fi
                        if test ! -z $target; then :
  io_romio_flags="$io_romio_flags --target=$target"
fi
fi
                   io_romio_flags_define="$io_romio_flags CFLAGS='$CFLAGS' CPPFLAGS='$CPPFLAGS' FFLAGS='$FFLAGS' LDFLAGS='$LDFLAGS' --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio"

cat >>confdefs.h <<_ACEOF
#define MCA_io_romio_COMPLETE_CONFIGURE_FLAGS "$io_romio_flags_define"
_ACEOF


                   io_romio_flags="$io_romio_flags CFLAGS="'"'"$CFLAGS"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio"

                   ompi_show_subtitle "Configuring ROMIO distribution"

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/io/romio/romio is the directory to invoke in
# $io_romio_flags is the list of arguments to pass
# io_romio_happy=1 is actions to execute upon success
# io_romio_happy=0 is actions to execute upon failure
#
subdir_dir="ompi/mca/io/romio/romio"
subdir_args="$io_romio_flags"
subdir_success="io_romio_happy=1"
subdir_failure="io_romio_happy=0"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp

                   if test "$io_romio_happy" = "1"; then :
   # grab the libraries list from ROMIO.  We don't
                           # need this for building the component, as libtool
                           # will figure that part out.  But we do need it for
                           # the wrapper settings
                          io_romio_save_LIBS="$LIBS"
                          LIBS=
                          . ompi/mca/io/romio/romio/localdefs
                          io_romio_LIBS="$LIBS"
                          LIBS="$io_romio_save_LIBS"

                          echo "ROMIO distribution configured successfully"
                          io_romio_WRAPPER_EXTRA_LIBS="$io_romio_LIBS"
                          should_build=1
else
  if test "$enable_io_romio" = "yes"; then :
  as_fn_error "ROMIO distribution did not configure successfully" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ROMIO distribution did not configure successfully" >&5
$as_echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;}
fi
                          should_build=0
fi
fi
fi

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=io
    component=romio

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_io" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_io" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:romio can compile" >&5
$as_echo_n "checking if MCA component io:romio can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_io" = "romio" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"romio\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_io" ; then
        if test "$DIRECT_io" = "romio" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"romio\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components romio"
fi


    if test $should_build -eq 0 -a "$enable_dist" = "yes"; then :
  as_fn_error "ROMIO disabled but --enable-dist specifed.  This will result in a bad tarball.  Aborting configure." "$LINENO" 5
fi
     if test $should_build -eq 1; then
  MCA_io_romio_SHOULD_BUILD_TRUE=
  MCA_io_romio_SHOULD_BUILD_FALSE='#'
else
  MCA_io_romio_SHOULD_BUILD_TRUE='#'
  MCA_io_romio_SHOULD_BUILD_FALSE=
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_io_romio_DSO=1
else
  BUILD_io_romio_DSO=0
fi
     if test "$BUILD_io_romio_DSO" = "1"; then
  OMPI_BUILD_io_romio_DSO_TRUE=
  OMPI_BUILD_io_romio_DSO_FALSE='#'
else
  OMPI_BUILD_io_romio_DSO_TRUE='#'
  OMPI_BUILD_io_romio_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$define_mpi_io" != "0"; then :

    for component_path in $srcdir/ompi/mca/io/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component io:$component (need to configure)"




    project=ompi
    framework=io
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_io" ; then
            if test "$DIRECT_io" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=io
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_io" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/io/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/io/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=io
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_io" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_io" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:$component can compile" >&5
$as_echo_n "checking if MCA component io:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_io" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_io" ; then
        if test "$DIRECT_io" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_io_ALL_COMPONENTS="$all_components"
    MCA_io_STATIC_COMPONENTS="$static_components"
    MCA_io_DSO_COMPONENTS="$dso_components"
    MCA_io_STATIC_LTLIBS="$static_ltlibs"







    MCA_io_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_io_ALL_SUBDIRS="$MCA_io_ALL_SUBDIRS mca/io/$item"
    done



    MCA_io_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_io_STATIC_SUBDIRS="$MCA_io_STATIC_SUBDIRS mca/io/$item"
    done



    MCA_io_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_io_DSO_SUBDIRS="$MCA_io_DSO_SUBDIRS mca/io/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "io" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_io_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real



cat >>confdefs.h <<_ACEOF
#define OMPI_PROVIDE_MPI_FILE_INTERFACE $define_mpi_io
_ACEOF

     if test "$define_mpi_io" = "1"; then
  OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE=
  OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE='#'
else
  OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE='#'
  OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE=
fi


# common has to go up front
                          if test "mpool" = "common" ; then
                              MCA_ompi_FRAMEWORKS="mpool $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mpool $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mpool_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mpool_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mpool_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mpool"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mpool"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mpool_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mpool_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mpool_STATIC_SUBDIRS)"
                          fi
                          if test "mpool" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mpool/libmca_mpool.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mpool_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework mpool"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "mpool" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/mpool/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework mpool" >&5
$as_echo_n "checking for no configure components in framework mpool... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: fake, rdma, sm" >&5
$as_echo "fake, rdma, sm" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework mpool" >&5
$as_echo_n "checking for m4 configure components in framework mpool... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pcie" >&5
$as_echo "pcie" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component mpool:fake (no configuration)"




    project=ompi
    framework=mpool
    component=fake
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=mpool
    component=fake

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=mpool
    component=fake

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:fake can compile" >&5
$as_echo_n "checking if MCA component mpool:fake can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "fake" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fake\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "fake" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fake\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components fake"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_mpool_fake_DSO=1
    else
        BUILD_mpool_fake_DSO=0
    fi
     if test "$BUILD_mpool_fake_DSO" = "1"; then
  OMPI_BUILD_mpool_fake_DSO_TRUE=
  OMPI_BUILD_mpool_fake_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_fake_DSO_TRUE='#'
  OMPI_BUILD_mpool_fake_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component mpool:rdma (no configuration)"




    project=ompi
    framework=mpool
    component=rdma
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=mpool
    component=rdma

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=mpool
    component=rdma

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:rdma can compile" >&5
$as_echo_n "checking if MCA component mpool:rdma can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "rdma" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "rdma" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components rdma"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_mpool_rdma_DSO=1
    else
        BUILD_mpool_rdma_DSO=0
    fi
     if test "$BUILD_mpool_rdma_DSO" = "1"; then
  OMPI_BUILD_mpool_rdma_DSO_TRUE=
  OMPI_BUILD_mpool_rdma_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_rdma_DSO_TRUE='#'
  OMPI_BUILD_mpool_rdma_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component mpool:sm (no configuration)"




    project=ompi
    framework=mpool
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=mpool
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=mpool
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:sm can compile" >&5
$as_echo_n "checking if MCA component mpool:sm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "sm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "sm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_mpool_sm_DSO=1
    else
        BUILD_mpool_sm_DSO=0
    fi
     if test "$BUILD_mpool_sm_DSO" = "1"; then
  OMPI_BUILD_mpool_sm_DSO_TRUE=
  OMPI_BUILD_mpool_sm_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_sm_DSO_TRUE='#'
  OMPI_BUILD_mpool_sm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component mpool:pcie (m4 configuration macro)"




    project=ompi
    framework=mpool
    component=pcie
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mpool
    component=pcie

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_check_pcie_mpool_pcie_CPPFLAGS ompi_check_pcie_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_check_pcie_mpool_pcie_CPPFLAGS ompi_check_pcie_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


# Check whether --with-pcie was given.
if test "${with_pcie+set}" = set; then :
  withval=$with_pcie;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-pcie value" >&5
$as_echo_n "checking --with-pcie value... " >&6; }
    if test "$with_pcie" = "yes" -o "$with_pcie" = "no" -o "x$with_pcie" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_pcie"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_pcie not found" >&5
$as_echo "$as_me: WARNING: Directory $with_pcie not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_pcie/linux/axon_ioctl.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_pcie/linux/axon_ioctl.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_pcie/linux/axon_ioctl.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_pcie)" >&5
$as_echo "sanity check ok ($with_pcie)" >&6; }

fi


fi


fi


    ompi_check_pcie_mpool_pcie_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_pcie_happy="no"

    if test "$with_pcie" != "no" -a "$with_pcie" != "yes" -a "$with_pcie" != "/usr" -a "$with_pcie" != "/usr/local"; then :
  mpool_pcie_CPPFLAGS="-I$with_pcie"
fi

    CPPFLAGS="$mpool_pcie_CPPFLAGS $CPPFLAGS"
    if test "$with_pcie" != "no"; then :
  ac_fn_c_check_header_compile "$LINENO" "linux/axon_ioctl.h" "ac_cv_header_linux_axon_ioctl_h" "$ac_includes_default
#include <linux/types.h>

"
if test "x$ac_cv_header_linux_axon_ioctl_h" = x""yes; then :
  ompi_check_pcie_happy="yes"
else
  ompi_check_pcie_happy="no"
fi


fi

    CPPFLAGS="$ompi_check_pcie_mpool_pcie_save_CPPFLAGS"

    if test "$ompi_check_pcie_happy" = "yes" -a "$enable_progress_threads" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PCIE driver does not currently support progress threads.  Disabling BTL." >&5
$as_echo "$as_me: WARNING: PCIE driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_pcie_happy="no"
fi

    if test "$ompi_check_pcie_happy" = "yes"; then :
  mpool_pcie_happy="yes"
else
  if test ! -z "$with_pcie" -a "$with_pcie" != "no"; then :
  as_fn_error "PCIe support requested but not found.  Aborting" "$LINENO" 5
fi
           mpool_pcie_happy="no"
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    if test "$mpool_pcie_happy" = "yes"; then :
  mpool_pcie_WRAPPER_EXTRA_LDFLAGS="$mpool_pcie_LDFLAGS"
           mpool_pcie_WRAPPER_EXTRA_LIBS="$mpool_pcie_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build pcie





fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mpool
    component=pcie

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:pcie can compile" >&5
$as_echo_n "checking if MCA component mpool:pcie can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "pcie" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pcie\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pcie\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "pcie" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pcie\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pcie\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components pcie"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_mpool_pcie_DSO=1
else
  BUILD_mpool_pcie_DSO=0
fi
     if test "$BUILD_mpool_pcie_DSO" = "1"; then
  OMPI_BUILD_mpool_pcie_DSO_TRUE=
  OMPI_BUILD_mpool_pcie_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_pcie_DSO_TRUE='#'
  OMPI_BUILD_mpool_pcie_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/mpool/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component mpool:$component (need to configure)"




    project=ompi
    framework=mpool
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=mpool
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/mpool/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/mpool/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=mpool
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:$component can compile" >&5
$as_echo_n "checking if MCA component mpool:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_mpool_ALL_COMPONENTS="$all_components"
    MCA_mpool_STATIC_COMPONENTS="$static_components"
    MCA_mpool_DSO_COMPONENTS="$dso_components"
    MCA_mpool_STATIC_LTLIBS="$static_ltlibs"







    MCA_mpool_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_mpool_ALL_SUBDIRS="$MCA_mpool_ALL_SUBDIRS mca/mpool/$item"
    done



    MCA_mpool_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_mpool_STATIC_SUBDIRS="$MCA_mpool_STATIC_SUBDIRS mca/mpool/$item"
    done



    MCA_mpool_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_mpool_DSO_SUBDIRS="$MCA_mpool_DSO_SUBDIRS mca/mpool/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "mpool" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_mpool_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "mtl" = "common" ; then
                              MCA_ompi_FRAMEWORKS="mtl $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mtl $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mtl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mtl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mtl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mtl"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mtl"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mtl_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mtl_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mtl_STATIC_SUBDIRS)"
                          fi
                          if test "mtl" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mtl/libmca_mtl.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mtl_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework mtl"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "mtl" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/mtl/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework mtl" >&5
$as_echo_n "checking for no configure components in framework mtl... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework mtl" >&5
$as_echo_n "checking for m4 configure components in framework mtl... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: mx, mxm, portals, psm" >&5
$as_echo "mx, mxm, portals, psm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component mtl:mx (m4 configuration macro)"




    project=ompi
    framework=mtl
    component=mx
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mtl" ; then
            if test "$DIRECT_mtl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mtl
    component=mx

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-mx was given.
if test "${with_mx+set}" = set; then :
  withval=$with_mx;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mx value" >&5
$as_echo_n "checking --with-mx value... " >&6; }
    if test "$with_mx" = "yes" -o "$with_mx" = "no" -o "x$with_mx" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mx not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mx/include/myriexpress.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mx)" >&5
$as_echo "sanity check ok ($with_mx)" >&6; }

fi


fi


fi


# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then :
  withval=$with_mx_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mx-libdir value" >&5
$as_echo_n "checking --with-mx-libdir value... " >&6; }
    if test "$with_mx_libdir" = "yes" -o "$with_mx_libdir" = "no" -o "x$with_mx_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mx_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mx_libdir/libmyriexpress.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mx_libdir)" >&5
$as_echo "sanity check ok ($with_mx_libdir)" >&6; }

fi


fi


fi


    ompi_check_mx_mtl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mx_mtl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_mx_mtl_mx_save_LIBS="$LIBS"

    if test "$with_mx" != "no"; then :
  if test ! -z "$with_mx" -a "$with_mx" != "yes"; then :
  ompi_check_mx_dir="$with_mx"
fi
           if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then :
  ompi_check_mx_libdir="$with_mx_libdir"
fi


    ompi_check_package_mtl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mtl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mtl_mx_save_LIBS="$LIBS"

    ompi_check_package_mtl_mx_orig_CPPFLAGS="$mtl_mx_CPPFLAGS"
    ompi_check_package_mtl_mx_orig_LDFLAGS="$mtl_mx_LDFLAGS"
    ompi_check_package_mtl_mx_orig_LIBS="$mtl_mx_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_myriexpress_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
if test "x$ac_cv_header_myriexpress_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_myriexpress_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_mx_dir" != ""; then :
  mtl_mx_CPPFLAGS="$mtl_mx_CPPFLAGS -I$ompi_check_mx_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "myriexpress.h" "ac_cv_header_myriexpress_h" "$ac_includes_default"
if test "x$ac_cv_header_myriexpress_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then :
   # libdir was specified - search only there
           mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                  mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                     mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  mtl_mx_LIBS="-lmyriexpress "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then :
   # libdir was specified - search only there
           mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                  mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                     mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  mtl_mx_LIBS="-lmyriexpress "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_mx_happy="yes"
else
  mtl_mx_CPPFLAGS="$ompi_check_package_mtl_mx_orig_CPPFLAGS"
           mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
           mtl_mx_LIBS="$ompi_check_package_mtl_mx_orig_LIBS"
           ompi_check_mx_happy="no"
fi

    CPPFLAGS="$ompi_check_package_mtl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
    LIBS="$ompi_check_package_mtl_mx_save_LIBS"

else
  ompi_check_mx_happy="no"
fi

    CPPFLAGS="$CPPFLAGS $mtl_mx_CPPFLAGS"
    LDFLAGS="$LDFLAGS $mtl_mx_LDFLAGS"
    LIBS="$LIBS $mtl_mx_LIBS"

    # need at least version 1.0
    if test "ompi_check_mx_happy" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MX version 1.0 or later" >&5
$as_echo_n "checking for MX version 1.0 or later... " >&6; }
if test "${ompi_cv_mx_version_ok+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <myriexpress.h>

int
main ()
{

#if MX_API < 0x300
#error "Version less than 0x300"
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ompi_cv_mx_version_ok="yes"
else
  ompi_cv_mx_version_ok="no"
fi
rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_mx_version_ok" >&5
$as_echo "$ompi_cv_mx_version_ok" >&6; }
fi
    if test "$ompi_cv_mx_version_ok" = "no"; then :
  ompi_check_mx_happy="no"
fi

    if test "$ompi_check_mx_happy" = "yes"; then :
  for ac_header in mx_extensions.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mx_extensions.h" "ac_cv_header_mx_extensions_h" "$ac_includes_default"
if test "x$ac_cv_header_mx_extensions_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MX_EXTENSIONS_H 1
_ACEOF
 for ac_func in mx_forget mx_register_unexp_handler
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx_open_board" >&5
$as_echo_n "checking for mx_open_board... " >&6; }
if test "${ompi_cv_func_mx_open_board+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__fops.h>

int
main ()
{

mx_open_board(0, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_mx_open_board="yes"
else
  ompi_cv_func_mx_open_board="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_mx_open_board" >&5
$as_echo "$ompi_cv_func_mx_open_board" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx__get_mapper_state" >&5
$as_echo_n "checking for mx__get_mapper_state... " >&6; }
if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__driver_interface.h>

int
main ()
{

mx__get_mapper_state(NULL, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ompi_cv_func_mx__get_mapper_state="yes"
else
  ompi_cv_func_mx__get_mapper_state="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_mx__get_mapper_state" >&5
$as_echo "$ompi_cv_func_mx__get_mapper_state" >&6; }

    if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then :
  mx_provide_mapper_state=1

else
  mx_provide_mapper_state=0

fi

cat >>confdefs.h <<_ACEOF
#define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state
_ACEOF


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&5
$as_echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&2;}
fi

done

fi

    CPPFLAGS="$ompi_check_mx_mtl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_mtl_mx_save_LDFLAGS"
    LIBS="$ompi_check_mx_mtl_mx_save_LIBS"

    if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
$as_echo "$as_me: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_mx_happy="no"
fi

    if test "$ompi_check_mx_happy" = "yes"; then :
  mtl_mx_happy="yes"
else
  if test ! -z "$with_mx" -a "$with_mx" != "no"; then :
  as_fn_error "MX support requested but not found.  Aborting" "$LINENO" 5
fi
           mtl_mx_happy="no"
fi


    if test "$mtl_mx_happy" = "yes"; then :
  mtl_mx_WRAPPER_EXTRA_LDFLAGS="$mtl_mx_LDFLAGS"
           mtl_mx_WRAPPER_EXTRA_LIBS="$mtl_mx_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build mx






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mtl
    component=mx

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mtl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mtl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:mx can compile" >&5
$as_echo_n "checking if MCA component mtl:mx can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "mx" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mtl" ; then
        if test "$DIRECT_mtl" = "mx" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mx"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_mtl_mx_DSO=1
else
  BUILD_mtl_mx_DSO=0
fi
     if test "$BUILD_mtl_mx_DSO" = "1"; then
  OMPI_BUILD_mtl_mx_DSO_TRUE=
  OMPI_BUILD_mtl_mx_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_mx_DSO_TRUE='#'
  OMPI_BUILD_mtl_mx_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component mtl:mxm (m4 configuration macro)"




    project=ompi
    framework=mtl
    component=mxm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mtl" ; then
            if test "$DIRECT_mtl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mtl
    component=mxm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-mxm was given.
if test "${with_mxm+set}" = set; then :
  withval=$with_mxm;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mxm value" >&5
$as_echo_n "checking --with-mxm value... " >&6; }
    if test "$with_mxm" = "yes" -o "$with_mxm" = "no" -o "x$with_mxm" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mxm"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mxm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mxm not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mxm/include/mxm/api/mxm_api.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mxm/include/mxm/api/mxm_api.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mxm/include/mxm/api/mxm_api.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mxm)" >&5
$as_echo "sanity check ok ($with_mxm)" >&6; }

fi


fi


fi


# Check whether --with-mxm-libdir was given.
if test "${with_mxm_libdir+set}" = set; then :
  withval=$with_mxm_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mxm-libdir value" >&5
$as_echo_n "checking --with-mxm-libdir value... " >&6; }
    if test "$with_mxm_libdir" = "yes" -o "$with_mxm_libdir" = "no" -o "x$with_mxm_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mxm_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mxm_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mxm_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_mxm_libdir/libmxm.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mxm_libdir)" >&5
$as_echo "sanity check ok ($with_mxm_libdir)" >&6; }

fi


fi


fi


    ompi_check_mxm_mtl_mxm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mxm_mtl_mxm_save_LDFLAGS="$LDFLAGS"
    ompi_check_mxm_mtl_mxm_save_LIBS="$LIBS"

    if test "$with_mxm" != "no"; then :
  if test ! -z "$with_mxm" -a "$with_mxm" != "yes"; then :
  ompi_check_mxm_dir="$with_mxm"
fi
           if test ! -z "$with_mxm_libdir" -a "$with_mxm_libdir" != "yes"; then :
  ompi_check_mxm_libdir="$with_mxm_libdir"
fi


    ompi_check_package_mtl_mxm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mtl_mxm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mtl_mxm_save_LIBS="$LIBS"

    ompi_check_package_mtl_mxm_orig_CPPFLAGS="$mtl_mxm_CPPFLAGS"
    ompi_check_package_mtl_mxm_orig_LDFLAGS="$mtl_mxm_LDFLAGS"
    ompi_check_package_mtl_mxm_orig_LIBS="$mtl_mxm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_mxm_api_mxm_api_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mxm_dir" = "/usr" -o "$ompi_check_mxm_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default"
if test "x$ac_cv_header_mxm_api_mxm_api_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_mxm_api_mxm_api_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_mxm_dir" != ""; then :
  mtl_mxm_CPPFLAGS="$mtl_mxm_CPPFLAGS -I$ompi_check_mxm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mxm_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default"
if test "x$ac_cv_header_mxm_api_mxm_api_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_mxm_mxm_cleanup
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mxm_libdir" != ""; then :
   # libdir was specified - search only there
           mtl_mxm_LDFLAGS="$mtl_mxm_LDFLAGS -L$ompi_check_mxm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                  mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                  unset ac_cv_lib_mxm_mxm_cleanup
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mxm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                     mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                     unset ac_cv_lib_mxm_mxm_cleanup
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mxm_LDFLAGS="$mtl_mxm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                          mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                          unset ac_cv_lib_mxm_mxm_cleanup
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mxm_LDFLAGS="$mtl_mxm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                          mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                          unset ac_cv_lib_mxm_mxm_cleanup
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  mtl_mxm_LIBS="-lmxm "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_mxm_mxm_cleanup
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mxm_libdir" != ""; then :
   # libdir was specified - search only there
           mtl_mxm_LDFLAGS="$mtl_mxm_LDFLAGS -L$ompi_check_mxm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                  mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                  unset ac_cv_lib_mxm_mxm_cleanup
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mxm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                     mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                     unset ac_cv_lib_mxm_mxm_cleanup
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mxm_LDFLAGS="$mtl_mxm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                          mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                          unset ac_cv_lib_mxm_mxm_cleanup
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_mxm_LDFLAGS="$mtl_mxm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_cleanup in -lmxm" >&5
$as_echo_n "checking for mxm_cleanup in -lmxm... " >&6; }
if test "${ac_cv_lib_mxm_mxm_cleanup+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmxm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mxm_cleanup ();
int
main ()
{
return mxm_cleanup ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mxm_mxm_cleanup=yes
else
  ac_cv_lib_mxm_mxm_cleanup=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_cleanup" >&5
$as_echo "$ac_cv_lib_mxm_mxm_cleanup" >&6; }
if test "x$ac_cv_lib_mxm_mxm_cleanup" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
                          mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
                          unset ac_cv_lib_mxm_mxm_cleanup
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  mtl_mxm_LIBS="-lmxm "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_mxm_happy="yes"
else
  mtl_mxm_CPPFLAGS="$ompi_check_package_mtl_mxm_orig_CPPFLAGS"
           mtl_mxm_LDFLAGS="$ompi_check_package_mtl_mxm_orig_LDFLAGS"
           mtl_mxm_LIBS="$ompi_check_package_mtl_mxm_orig_LIBS"
           ompi_check_mxm_happy="no"
fi

    CPPFLAGS="$ompi_check_package_mtl_mxm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mtl_mxm_save_LDFLAGS"
    LIBS="$ompi_check_package_mtl_mxm_save_LIBS"

else
  ompi_check_mxm_happy="no"
fi

    CPPFLAGS="$ompi_check_mxm_mtl_mxm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mxm_mtl_mxm_save_LDFLAGS"
    LIBS="$ompi_check_mxm_mtl_mxm_save_LIBS"

    if test "$ompi_check_mxm_happy" = "yes"; then :
  mtl_mxm_happy="yes"
else
  if test ! -z "$with_mxm" -a "$with_mxm" != "no"; then :
  as_fn_error "MXM support requested but not found.  Aborting" "$LINENO" 5
fi
           mtl_mxm_happy="no"
fi


    if test "$mtl_mxm_happy" = "yes"; then :
  mtl_mxm_WRAPPER_EXTRA_LDFLAGS="$mtl_mxm_LDFLAGS"
           mtl_mxm_WRAPPER_EXTRA_LIBS="$mtl_mxm_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build mxm






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mtl
    component=mxm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mtl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mtl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:mxm can compile" >&5
$as_echo_n "checking if MCA component mtl:mxm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "mxm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mxm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mxm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mtl" ; then
        if test "$DIRECT_mtl" = "mxm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mxm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mxm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mxm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_mtl_mxm_DSO=1
else
  BUILD_mtl_mxm_DSO=0
fi
     if test "$BUILD_mtl_mxm_DSO" = "1"; then
  OMPI_BUILD_mtl_mxm_DSO_TRUE=
  OMPI_BUILD_mtl_mxm_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_mxm_DSO_TRUE='#'
  OMPI_BUILD_mtl_mxm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component mtl:portals (m4 configuration macro)"




    project=ompi
    framework=mtl
    component=portals
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mtl" ; then
            if test "$DIRECT_mtl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mtl
    component=portals

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :


    # save compiler flags so that we don't alter them for later
    # components.
    check_portals_save_CPPFLAGS="$CPPFLAGS"
    check_portals_save_LDFLAGS="$LDFLAGS"
    check_portals_save_LIBS="$LIBS"

    check_portals_CPPFLAGS=
    check_portals_LDFLAGS=
    check_portals_LIBS=

    check_portals_configuration="none"
    ompi_check_portals_happy="yes"

    # Get some configuration information

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then :
  withval=$with_portals;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi


fi


fi


# Check whether --with-portals-config was given.
if test "${with_portals_config+set}" = set; then :
  withval=$with_portals_config;
fi


# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then :
  withval=$with_portals_libs;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Portals configuration" >&5
$as_echo_n "checking for Portals configuration... " >&6; }
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    elif test "$with_portals_config" = "cnl_modex" ; then
	with_portals_config="xt3-modex"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    OMPI_PORTALS_CRAYXT3_MODEX=0
    case "$with_portals_config" in
        "utcp")
            OMPI_PORTALS_UTCP=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=1
            check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            check_portals_header_prefix=
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: utcp" >&5
$as_echo "utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cray XT3" >&5
$as_echo "Cray XT3" >&6; }
            ;;
        "xt3-modex")
            OMPI_PORTALS_CRAYXT3_MODEX=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cray XT3 - Modex" >&5
$as_echo "Cray XT3 - Modex" >&6; }
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            as_fn_error "unknown Portals configuration.  Can not continue" "$LINENO" 5
            ;;
    esac


cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX
_ACEOF


    # Add correct -I and -L flags
    if test -n "$with_portals"; then :
  if test -d "$with_portals/include"; then :
  check_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"
fi
           if test -d "$with_portals/lib"; then :
  check_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"
fi
fi

    # Try to find all the portals libraries (this is not fun!)
    if test -n "$with_portals_libs" ; then
        check_portals_LIBS=""
        for lib in $with_portals_libs ; do
            check_portals_LIBS="$check_portals_LIBS -l$lib"
        done
    fi

    # check for portals
    LIBS="$LIBS $check_portals_LIBS"
    for ac_header in ${check_portals_header_prefix}portals3.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if possible to link Portals application" >&5
$as_echo_n "checking if possible to link Portals application... " >&6; }
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <${check_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
               ompi_check_portals_happy="yes"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
               ompi_check_portals_happy="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  ompi_check_portals_happy="no"
fi

done


    # Deal with static-only Portals UTCP libs.  See note in
    # ompi/mca/common/portals/configure.m4.  Then possibly cry.
    if test "$with_portals_config" = "utcp" ; then
        if test "mtl_portals" != "common_portals" ; then
            check_portals_LIBS=
        fi
    fi

    # reset the flags for the next test
    CPPFLAGS="$check_portals_save_CPPFLAGS"
    LDFLAGS="$check_portals_save_LDFLAGS"
    LIBS="$check_portals_save_LIBS"

    mtl_portals_CPPFLAGS="$check_portals_CPPFLAGS"
    mtl_portals_LDFLAGS="$check_portals_LDFLAGS"
    mtl_portals_LIBS="$check_portals_LIBS"

    if test "$ompi_check_portals_happy" = "yes"; then :
  mtl_portals_happy="yes"
else
  if test ! -z "$with_portals" -a "$with_portals" != "no"; then :
  as_fn_error "Portals support requested but not found.  Aborting" "$LINENO" 5
fi
           mtl_portals_happy="no"
fi


    if test "$mtl_portals_happy" = "yes"; then :
  mtl_portals_WRAPPER_EXTRA_LDFLAGS="$mtl_portals_LDFLAGS"
           mtl_portals_WRAPPER_EXTRA_LIBS="$mtl_portals_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build portals





fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mtl
    component=portals

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mtl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mtl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:portals can compile" >&5
$as_echo_n "checking if MCA component mtl:portals can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "portals" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mtl" ; then
        if test "$DIRECT_mtl" = "portals" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components portals"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_mtl_portals_DSO=1
else
  BUILD_mtl_portals_DSO=0
fi
     if test "$BUILD_mtl_portals_DSO" = "1"; then
  OMPI_BUILD_mtl_portals_DSO_TRUE=
  OMPI_BUILD_mtl_portals_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_portals_DSO_TRUE='#'
  OMPI_BUILD_mtl_portals_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component mtl:psm (m4 configuration macro)"




    project=ompi
    framework=mtl
    component=psm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mtl" ; then
            if test "$DIRECT_mtl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mtl
    component=psm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :



# Check whether --with-psm was given.
if test "${with_psm+set}" = set; then :
  withval=$with_psm;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-psm value" >&5
$as_echo_n "checking --with-psm value... " >&6; }
    if test "$with_psm" = "yes" -o "$with_psm" = "no" -o "x$with_psm" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_psm"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_psm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_psm not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_psm/include/psm.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_psm/include/psm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_psm/include/psm.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_psm)" >&5
$as_echo "sanity check ok ($with_psm)" >&6; }

fi


fi


fi


# Check whether --with-psm-libdir was given.
if test "${with_psm_libdir+set}" = set; then :
  withval=$with_psm_libdir;
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-psm-libdir value" >&5
$as_echo_n "checking --with-psm-libdir value... " >&6; }
    if test "$with_psm_libdir" = "yes" -o "$with_psm_libdir" = "no" -o "x$with_psm_libdir" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_psm_libdir"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_psm_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_psm_libdir not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $with_psm_libdir/libpsm_infinipath.* 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_psm_libdir/libpsm_infinipath.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_psm_libdir/libpsm_infinipath.* not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_psm_libdir)" >&5
$as_echo "sanity check ok ($with_psm_libdir)" >&6; }

fi


fi


fi


    ompi_check_psm_mtl_psm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_psm_mtl_psm_save_LDFLAGS="$LDFLAGS"
    ompi_check_psm_mtl_psm_save_LIBS="$LIBS"

    if test "$with_psm" != "no"; then :
  if test ! -z "$with_psm" -a "$with_psm" != "yes"; then :
  ompi_check_psm_dir="$with_psm"
fi
           if test ! -z "$with_psm_libdir" -a "$with_psm_libdir" != "yes"; then :
  ompi_check_psm_libdir="$with_psm_libdir"
fi


    ompi_check_package_mtl_psm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mtl_psm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mtl_psm_save_LIBS="$LIBS"

    ompi_check_package_mtl_psm_orig_CPPFLAGS="$mtl_psm_CPPFLAGS"
    ompi_check_package_mtl_psm_orig_LDFLAGS="$mtl_psm_LDFLAGS"
    ompi_check_package_mtl_psm_orig_LIBS="$mtl_psm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_psm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_psm_dir" = "/usr" -o "$ompi_check_psm_dir" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "psm.h" "ac_cv_header_psm_h" "$ac_includes_default"
if test "x$ac_cv_header_psm_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_psm_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$ompi_check_psm_dir" != ""; then :
  mtl_psm_CPPFLAGS="$mtl_psm_CPPFLAGS -I$ompi_check_psm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_psm_dir/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "psm.h" "ac_cv_header_psm_h" "$ac_includes_default"
if test "x$ac_cv_header_psm_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_psm_infinipath_psm_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_psm_libdir" != ""; then :
   # libdir was specified - search only there
           mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                  mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                  unset ac_cv_lib_psm_infinipath_psm_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_psm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                     mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                     unset ac_cv_lib_psm_infinipath_psm_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  mtl_psm_LIBS="-lpsm_infinipath "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_psm_infinipath_psm_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_psm_libdir" != ""; then :
   # libdir was specified - search only there
           mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                  mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                  unset ac_cv_lib_psm_infinipath_psm_finalize
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_psm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                     mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                     unset ac_cv_lib_psm_infinipath_psm_finalize
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_finalize
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  ac_cv_lib_psm_infinipath_psm_finalize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_finalize
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  mtl_psm_LIBS="-lpsm_infinipath "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :
  ompi_check_psm_happy="yes"
else
  mtl_psm_CPPFLAGS="$ompi_check_package_mtl_psm_orig_CPPFLAGS"
           mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
           mtl_psm_LIBS="$ompi_check_package_mtl_psm_orig_LIBS"
           ompi_check_psm_happy="no"
fi

    CPPFLAGS="$ompi_check_package_mtl_psm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
    LIBS="$ompi_check_package_mtl_psm_save_LIBS"

else
  ompi_check_psm_happy="no"
fi

    CPPFLAGS="$ompi_check_psm_mtl_psm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_psm_mtl_psm_save_LDFLAGS"
    LIBS="$ompi_check_psm_mtl_psm_save_LIBS"

    if test "$ompi_check_psm_happy" = "yes" -a "$enable_progress_threads" = "yes"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PSM driver does not currently support progress threads.  Disabling BTL." >&5
$as_echo "$as_me: WARNING: PSM driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_psm_happy="no"
fi

    if test "$ompi_check_psm_happy" = "yes"; then :
  mtl_psm_happy="yes"
else
  if test ! -z "$with_psm" -a "$with_psm" != "no"; then :
  as_fn_error "PSM support requested but not found.  Aborting" "$LINENO" 5
fi
           mtl_psm_happy="no"
fi


    if test "$mtl_psm_happy" = "yes"; then :
  mtl_psm_WRAPPER_EXTRA_LDFLAGS="$mtl_psm_LDFLAGS"
           mtl_psm_WRAPPER_EXTRA_LIBS="$mtl_psm_LIBS"
           should_build=1
else
  should_build=0
fi

    # substitute in the things needed to build psm






fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mtl
    component=psm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mtl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mtl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:psm can compile" >&5
$as_echo_n "checking if MCA component mtl:psm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "psm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"psm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mtl" ; then
        if test "$DIRECT_mtl" = "psm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"psm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components psm"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_mtl_psm_DSO=1
else
  BUILD_mtl_psm_DSO=0
fi
     if test "$BUILD_mtl_psm_DSO" = "1"; then
  OMPI_BUILD_mtl_psm_DSO_TRUE=
  OMPI_BUILD_mtl_psm_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_psm_DSO_TRUE='#'
  OMPI_BUILD_mtl_psm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/mtl/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component mtl:$component (need to configure)"




    project=ompi
    framework=mtl
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mtl" ; then
            if test "$DIRECT_mtl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=mtl
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/mtl/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/mtl/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=mtl
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mtl" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mtl" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:$component can compile" >&5
$as_echo_n "checking if MCA component mtl:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_mtl" ; then
        if test "$DIRECT_mtl" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_mtl_ALL_COMPONENTS="$all_components"
    MCA_mtl_STATIC_COMPONENTS="$static_components"
    MCA_mtl_DSO_COMPONENTS="$dso_components"
    MCA_mtl_STATIC_LTLIBS="$static_ltlibs"







    MCA_mtl_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_mtl_ALL_SUBDIRS="$MCA_mtl_ALL_SUBDIRS mca/mtl/$item"
    done



    MCA_mtl_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_mtl_STATIC_SUBDIRS="$MCA_mtl_STATIC_SUBDIRS mca/mtl/$item"
    done



    MCA_mtl_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_mtl_DSO_SUBDIRS="$MCA_mtl_DSO_SUBDIRS mca/mtl/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "mtl" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_mtl_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "op" = "common" ; then
                              MCA_ompi_FRAMEWORKS="op $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/op $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_op_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_op_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_op_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS op"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/op"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_op_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_op_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_op_STATIC_SUBDIRS)"
                          fi
                          if test "op" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/op/libmca_op.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_op_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework op"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "op" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/op/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework op" >&5
$as_echo_n "checking for no configure components in framework op... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework op" >&5
$as_echo_n "checking for m4 configure components in framework op... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/op/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component op:$component (need to configure)"




    project=ompi
    framework=op
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_op" ; then
            if test "$DIRECT_op" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=op
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_op" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/op/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/op/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=op
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_op" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_op" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component op:$component can compile" >&5
$as_echo_n "checking if MCA component op:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_op" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_op" ; then
        if test "$DIRECT_op" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_op_ALL_COMPONENTS="$all_components"
    MCA_op_STATIC_COMPONENTS="$static_components"
    MCA_op_DSO_COMPONENTS="$dso_components"
    MCA_op_STATIC_LTLIBS="$static_ltlibs"







    MCA_op_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_op_ALL_SUBDIRS="$MCA_op_ALL_SUBDIRS mca/op/$item"
    done



    MCA_op_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_op_STATIC_SUBDIRS="$MCA_op_STATIC_SUBDIRS mca/op/$item"
    done



    MCA_op_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_op_DSO_SUBDIRS="$MCA_op_DSO_SUBDIRS mca/op/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "op" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_op_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "osc" = "common" ; then
                              MCA_ompi_FRAMEWORKS="osc $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/osc $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_osc_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_osc_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_osc_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS osc"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/osc"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_osc_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_osc_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_osc_STATIC_SUBDIRS)"
                          fi
                          if test "osc" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/osc/libmca_osc.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_osc_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework osc"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "osc" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/osc/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework osc" >&5
$as_echo_n "checking for no configure components in framework osc... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pt2pt, rdma" >&5
$as_echo "pt2pt, rdma" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework osc" >&5
$as_echo_n "checking for m4 configure components in framework osc... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component osc:pt2pt (no configuration)"




    project=ompi
    framework=osc
    component=pt2pt
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_osc" ; then
            if test "$DIRECT_osc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=osc
    component=pt2pt

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_osc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=osc
    component=pt2pt

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_osc" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_osc" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:pt2pt can compile" >&5
$as_echo_n "checking if MCA component osc:pt2pt can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "pt2pt" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_osc" ; then
        if test "$DIRECT_osc" = "pt2pt" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components pt2pt"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_osc_pt2pt_DSO=1
    else
        BUILD_osc_pt2pt_DSO=0
    fi
     if test "$BUILD_osc_pt2pt_DSO" = "1"; then
  OMPI_BUILD_osc_pt2pt_DSO_TRUE=
  OMPI_BUILD_osc_pt2pt_DSO_FALSE='#'
else
  OMPI_BUILD_osc_pt2pt_DSO_TRUE='#'
  OMPI_BUILD_osc_pt2pt_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component osc:rdma (no configuration)"




    project=ompi
    framework=osc
    component=rdma
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_osc" ; then
            if test "$DIRECT_osc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=osc
    component=rdma

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_osc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=osc
    component=rdma

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_osc" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_osc" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:rdma can compile" >&5
$as_echo_n "checking if MCA component osc:rdma can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "rdma" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_osc" ; then
        if test "$DIRECT_osc" = "rdma" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components rdma"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_osc_rdma_DSO=1
    else
        BUILD_osc_rdma_DSO=0
    fi
     if test "$BUILD_osc_rdma_DSO" = "1"; then
  OMPI_BUILD_osc_rdma_DSO_TRUE=
  OMPI_BUILD_osc_rdma_DSO_FALSE='#'
else
  OMPI_BUILD_osc_rdma_DSO_TRUE='#'
  OMPI_BUILD_osc_rdma_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/osc/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component osc:$component (need to configure)"




    project=ompi
    framework=osc
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_osc" ; then
            if test "$DIRECT_osc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=osc
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_osc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/osc/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/osc/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=osc
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_osc" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_osc" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:$component can compile" >&5
$as_echo_n "checking if MCA component osc:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_osc" ; then
        if test "$DIRECT_osc" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_osc_ALL_COMPONENTS="$all_components"
    MCA_osc_STATIC_COMPONENTS="$static_components"
    MCA_osc_DSO_COMPONENTS="$dso_components"
    MCA_osc_STATIC_LTLIBS="$static_ltlibs"







    MCA_osc_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_osc_ALL_SUBDIRS="$MCA_osc_ALL_SUBDIRS mca/osc/$item"
    done



    MCA_osc_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_osc_STATIC_SUBDIRS="$MCA_osc_STATIC_SUBDIRS mca/osc/$item"
    done



    MCA_osc_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_osc_DSO_SUBDIRS="$MCA_osc_DSO_SUBDIRS mca/osc/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "osc" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_osc_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "pml" = "common" ; then
                              MCA_ompi_FRAMEWORKS="pml $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pml $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pml"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pml"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pml_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pml_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pml_STATIC_SUBDIRS)"
                          fi
                          if test "pml" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pml/libmca_pml.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pml_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework pml"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "pml" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/pml/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pml" >&5
$as_echo_n "checking for no configure components in framework pml... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: bfo, cm, csum, ob1" >&5
$as_echo "bfo, cm, csum, ob1" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pml" >&5
$as_echo_n "checking for m4 configure components in framework pml... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: crcpw, v" >&5
$as_echo "crcpw, v" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component pml:bfo (no configuration)"




    project=ompi
    framework=pml
    component=bfo
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pml
    component=bfo

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pml
    component=bfo

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:bfo can compile" >&5
$as_echo_n "checking if MCA component pml:bfo can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "bfo" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bfo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bfo\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "bfo" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bfo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bfo\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components bfo"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_bfo_DSO=1
    else
        BUILD_pml_bfo_DSO=0
    fi
     if test "$BUILD_pml_bfo_DSO" = "1"; then
  OMPI_BUILD_pml_bfo_DSO_TRUE=
  OMPI_BUILD_pml_bfo_DSO_FALSE='#'
else
  OMPI_BUILD_pml_bfo_DSO_TRUE='#'
  OMPI_BUILD_pml_bfo_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pml:cm (no configuration)"




    project=ompi
    framework=pml
    component=cm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pml
    component=cm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pml
    component=cm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:cm can compile" >&5
$as_echo_n "checking if MCA component pml:cm can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "cm" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "cm" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components cm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_cm_DSO=1
    else
        BUILD_pml_cm_DSO=0
    fi
     if test "$BUILD_pml_cm_DSO" = "1"; then
  OMPI_BUILD_pml_cm_DSO_TRUE=
  OMPI_BUILD_pml_cm_DSO_FALSE='#'
else
  OMPI_BUILD_pml_cm_DSO_TRUE='#'
  OMPI_BUILD_pml_cm_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pml:csum (no configuration)"




    project=ompi
    framework=pml
    component=csum
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pml
    component=csum

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pml
    component=csum

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:csum can compile" >&5
$as_echo_n "checking if MCA component pml:csum can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "csum" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"csum\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"csum\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "csum" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"csum\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"csum\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components csum"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_csum_DSO=1
    else
        BUILD_pml_csum_DSO=0
    fi
     if test "$BUILD_pml_csum_DSO" = "1"; then
  OMPI_BUILD_pml_csum_DSO_TRUE=
  OMPI_BUILD_pml_csum_DSO_FALSE='#'
else
  OMPI_BUILD_pml_csum_DSO_TRUE='#'
  OMPI_BUILD_pml_csum_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pml:ob1 (no configuration)"




    project=ompi
    framework=pml
    component=ob1
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pml
    component=ob1

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pml
    component=ob1

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:ob1 can compile" >&5
$as_echo_n "checking if MCA component pml:ob1 can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "ob1" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ob1\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "ob1" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ob1\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components ob1"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_ob1_DSO=1
    else
        BUILD_pml_ob1_DSO=0
    fi
     if test "$BUILD_pml_ob1_DSO" = "1"; then
  OMPI_BUILD_pml_ob1_DSO_TRUE=
  OMPI_BUILD_pml_ob1_DSO_FALSE='#'
else
  OMPI_BUILD_pml_ob1_DSO_TRUE='#'
  OMPI_BUILD_pml_ob1_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component pml:crcpw (m4 configuration macro)"




    project=ompi
    framework=pml
    component=crcpw
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=pml
    component=crcpw

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft_cr" = "1"; then :
  should_build=1
else
  should_build=0
fi


fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=pml
    component=crcpw

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:crcpw can compile" >&5
$as_echo_n "checking if MCA component pml:crcpw can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "crcpw" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"crcpw\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "crcpw" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"crcpw\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components crcpw"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_pml_crcpw_DSO=1
else
  BUILD_pml_crcpw_DSO=0
fi
     if test "$BUILD_pml_crcpw_DSO" = "1"; then
  OMPI_BUILD_pml_crcpw_DSO_TRUE=
  OMPI_BUILD_pml_crcpw_DSO_FALSE='#'
else
  OMPI_BUILD_pml_crcpw_DSO_TRUE='#'
  OMPI_BUILD_pml_crcpw_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "MCA component pml:v (m4 configuration macro)"




    project=ompi
    framework=pml
    component=v
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=pml
    component=v

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # This unmatched fi allows for recursing in the vprotocols, even if
    # pml v is disabled by configure
        eval
    fi

    # We are going to make recursive call in shell, nothing is impossible
    # Still, we need to be extra careful
    (
        vprotocol_parent_component=$component
        # Move the root of our project to the current component
        srcdir=`cd $srcdir && pwd`/$project/mca/$framework
        cd "$project/mca/$framework"


    ompi_show_subsubtitle "Configuring MCA framework vprotocol"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "vprotocol" = "common" ; then
        outdir=$vprotocol_parent_component/mca/common
    else
        outdir=$vprotocol_parent_component/mca/vprotocol/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework vprotocol" >&5
$as_echo_n "checking for no configure components in framework vprotocol... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pessimist" >&5
$as_echo "pessimist" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework vprotocol" >&5
$as_echo_n "checking for m4 configure components in framework vprotocol... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component vprotocol:pessimist (no configuration)"




    project=$vprotocol_parent_component
    framework=vprotocol
    component=pessimist
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_vprotocol" ; then
            if test "$DIRECT_vprotocol" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=$should_build
else
  should_build=0
fi


    project=$vprotocol_parent_component
    framework=vprotocol
    component=pessimist

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_vprotocol" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=$vprotocol_parent_component
    framework=vprotocol
    component=pessimist

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_vprotocol" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_vprotocol" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component vprotocol:pessimist can compile" >&5
$as_echo_n "checking if MCA component vprotocol:pessimist can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_vprotocol" = "pessimist" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pessimist\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_vprotocol" ; then
        if test "$DIRECT_vprotocol" = "pessimist" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pessimist\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components pessimist"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_vprotocol_pessimist_DSO=1
    else
        BUILD_vprotocol_pessimist_DSO=0
    fi
     if test "$BUILD_vprotocol_pessimist_DSO" = "1"; then
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE=
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE='#'
else
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE='#'
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=$should_build
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$should_build" != "0"; then :

    for component_path in $srcdir/$vprotocol_parent_component/mca/vprotocol/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component vprotocol:$component (need to configure)"




    project=$vprotocol_parent_component
    framework=vprotocol
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_vprotocol" ; then
            if test "$DIRECT_vprotocol" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=$vprotocol_parent_component
    framework=vprotocol
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_vprotocol" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# $vprotocol_parent_component/mca/vprotocol/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="$vprotocol_parent_component/mca/vprotocol/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=$vprotocol_parent_component
    framework=vprotocol
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_vprotocol" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_vprotocol" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component vprotocol:$component can compile" >&5
$as_echo_n "checking if MCA component vprotocol:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_vprotocol" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_vprotocol" ; then
        if test "$DIRECT_vprotocol" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_vprotocol_ALL_COMPONENTS="$all_components"
    MCA_vprotocol_STATIC_COMPONENTS="$static_components"
    MCA_vprotocol_DSO_COMPONENTS="$dso_components"
    MCA_vprotocol_STATIC_LTLIBS="$static_ltlibs"







    MCA_vprotocol_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS mca/vprotocol/$item"
    done



    MCA_vprotocol_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS mca/vprotocol/$item"
    done



    MCA_vprotocol_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS mca/vprotocol/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "vprotocol" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_vprotocol_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real


        # Save results
        cat >$vprotocol_parent_component/mca_vprotocol_config_output <<EOF
            #
            # /!\ This is Automatically generated file. Do not edit.
            #

            # Apply the modifications to current shell context
            # and remove leading mca/vprotocol from subdirs

            MCA_vprotocol_ALL_COMPONENTS="$MCA_vprotocol_ALL_COMPONENTS"
            MCA_vprotocol_STATIC_COMPONENTS="$MCA_vprotocol_STATIC_COMPONENTS"
            MCA_vprotocol_DSO_COMPONENTS="$MCA_vprotocol_DSO_COMPONENTS"
            MCA_vprotocol_STATIC_LTLIBS="$MCA_vprotocol_STATIC_LTLIBS"

            MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS"
            MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS"
            MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS"


                    BUILD_vprotocol_pessimist_DSO="$BUILD_vprotocol_pessimist_DSO"
                     if test "\$BUILD_vprotocol_pessimist_DSO" = "1"; then
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE=
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE='#'
else
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE='#'
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE=
fi




EOF
    )

    # Reload the output from vprotocol framework's config
    . $project/mca/$framework/$component/mca_vprotocol_config_output
    rm  $project/mca/$framework/$component/mca_vprotocol_config_output










    # This unmatched if is intended to match the fi of the if we disabled
    if test "$should_build" = "1"; then
        should_build=1


fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=pml
    component=v

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:v can compile" >&5
$as_echo_n "checking if MCA component pml:v can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "v" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "v" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components v"
fi



    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then :
  BUILD_pml_v_DSO=1
else
  BUILD_pml_v_DSO=0
fi
     if test "$BUILD_pml_v_DSO" = "1"; then
  OMPI_BUILD_pml_v_DSO_TRUE=
  OMPI_BUILD_pml_v_DSO_FALSE='#'
else
  OMPI_BUILD_pml_v_DSO_TRUE='#'
  OMPI_BUILD_pml_v_DSO_FALSE=
fi


    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/pml/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component pml:$component (need to configure)"




    project=ompi
    framework=pml
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pml
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/pml/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/pml/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=pml
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:$component can compile" >&5
$as_echo_n "checking if MCA component pml:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_pml_ALL_COMPONENTS="$all_components"
    MCA_pml_STATIC_COMPONENTS="$static_components"
    MCA_pml_DSO_COMPONENTS="$dso_components"
    MCA_pml_STATIC_LTLIBS="$static_ltlibs"







    MCA_pml_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_pml_ALL_SUBDIRS="$MCA_pml_ALL_SUBDIRS mca/pml/$item"
    done



    MCA_pml_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_pml_STATIC_SUBDIRS="$MCA_pml_STATIC_SUBDIRS mca/pml/$item"
    done



    MCA_pml_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_pml_DSO_SUBDIRS="$MCA_pml_DSO_SUBDIRS mca/pml/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "pml" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_pml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "pubsub" = "common" ; then
                              MCA_ompi_FRAMEWORKS="pubsub $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pubsub $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pubsub_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pubsub_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pubsub_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pubsub"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pubsub"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pubsub_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pubsub_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pubsub_STATIC_SUBDIRS)"
                          fi
                          if test "pubsub" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pubsub/libmca_pubsub.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pubsub_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework pubsub"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "pubsub" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/pubsub/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pubsub" >&5
$as_echo_n "checking for no configure components in framework pubsub... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: orte" >&5
$as_echo "orte" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pubsub" >&5
$as_echo_n "checking for m4 configure components in framework pubsub... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component pubsub:orte (no configuration)"




    project=ompi
    framework=pubsub
    component=orte
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pubsub" ; then
            if test "$DIRECT_pubsub" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pubsub
    component=orte

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pubsub" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pubsub
    component=orte

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pubsub" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pubsub" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pubsub:orte can compile" >&5
$as_echo_n "checking if MCA component pubsub:orte can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pubsub" = "orte" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pubsub" ; then
        if test "$DIRECT_pubsub" = "orte" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components orte"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pubsub_orte_DSO=1
    else
        BUILD_pubsub_orte_DSO=0
    fi
     if test "$BUILD_pubsub_orte_DSO" = "1"; then
  OMPI_BUILD_pubsub_orte_DSO_TRUE=
  OMPI_BUILD_pubsub_orte_DSO_FALSE='#'
else
  OMPI_BUILD_pubsub_orte_DSO_TRUE='#'
  OMPI_BUILD_pubsub_orte_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/pubsub/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component pubsub:$component (need to configure)"




    project=ompi
    framework=pubsub
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pubsub" ; then
            if test "$DIRECT_pubsub" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=pubsub
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pubsub" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/pubsub/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/pubsub/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=pubsub
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pubsub" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pubsub" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pubsub:$component can compile" >&5
$as_echo_n "checking if MCA component pubsub:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pubsub" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_pubsub" ; then
        if test "$DIRECT_pubsub" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_pubsub_ALL_COMPONENTS="$all_components"
    MCA_pubsub_STATIC_COMPONENTS="$static_components"
    MCA_pubsub_DSO_COMPONENTS="$dso_components"
    MCA_pubsub_STATIC_LTLIBS="$static_ltlibs"







    MCA_pubsub_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_pubsub_ALL_SUBDIRS="$MCA_pubsub_ALL_SUBDIRS mca/pubsub/$item"
    done



    MCA_pubsub_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_pubsub_STATIC_SUBDIRS="$MCA_pubsub_STATIC_SUBDIRS mca/pubsub/$item"
    done



    MCA_pubsub_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_pubsub_DSO_SUBDIRS="$MCA_pubsub_DSO_SUBDIRS mca/pubsub/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "pubsub" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_pubsub_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rcache" = "common" ; then
                              MCA_ompi_FRAMEWORKS="rcache $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/rcache $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rcache_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rcache_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rcache_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS rcache"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/rcache"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rcache_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rcache_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rcache_STATIC_SUBDIRS)"
                          fi
                          if test "rcache" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/rcache/libmca_rcache.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_rcache_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rcache"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rcache" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/rcache/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rcache" >&5
$as_echo_n "checking for no configure components in framework rcache... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: vma" >&5
$as_echo "vma" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rcache" >&5
$as_echo_n "checking for m4 configure components in framework rcache... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component rcache:vma (no configuration)"




    project=ompi
    framework=rcache
    component=vma
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rcache" ; then
            if test "$DIRECT_rcache" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=rcache
    component=vma

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rcache" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=rcache
    component=vma

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rcache" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rcache" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:vma can compile" >&5
$as_echo_n "checking if MCA component rcache:vma can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rcache" = "vma" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"vma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rcache" ; then
        if test "$DIRECT_rcache" = "vma" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"vma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components vma"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rcache_vma_DSO=1
    else
        BUILD_rcache_vma_DSO=0
    fi
     if test "$BUILD_rcache_vma_DSO" = "1"; then
  OMPI_BUILD_rcache_vma_DSO_TRUE=
  OMPI_BUILD_rcache_vma_DSO_FALSE='#'
else
  OMPI_BUILD_rcache_vma_DSO_TRUE='#'
  OMPI_BUILD_rcache_vma_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/rcache/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rcache:$component (need to configure)"




    project=ompi
    framework=rcache
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rcache" ; then
            if test "$DIRECT_rcache" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=rcache
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rcache" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/rcache/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/rcache/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=rcache
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rcache" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rcache" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:$component can compile" >&5
$as_echo_n "checking if MCA component rcache:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rcache" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_rcache" ; then
        if test "$DIRECT_rcache" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_rcache_ALL_COMPONENTS="$all_components"
    MCA_rcache_STATIC_COMPONENTS="$static_components"
    MCA_rcache_DSO_COMPONENTS="$dso_components"
    MCA_rcache_STATIC_LTLIBS="$static_ltlibs"







    MCA_rcache_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rcache_ALL_SUBDIRS="$MCA_rcache_ALL_SUBDIRS mca/rcache/$item"
    done



    MCA_rcache_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rcache_STATIC_SUBDIRS="$MCA_rcache_STATIC_SUBDIRS mca/rcache/$item"
    done



    MCA_rcache_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rcache_DSO_SUBDIRS="$MCA_rcache_DSO_SUBDIRS mca/rcache/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rcache" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rcache_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "topo" = "common" ; then
                              MCA_ompi_FRAMEWORKS="topo $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/topo $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_topo_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_topo_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_topo_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS topo"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/topo"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_topo_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_topo_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_topo_STATIC_SUBDIRS)"
                          fi
                          if test "topo" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/topo/libmca_topo.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_topo_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework topo"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "topo" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/topo/base
    fi
    as_dir=$outdir; as_fn_mkdir_p

    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework topo" >&5
$as_echo_n "checking for no configure components in framework topo... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unity" >&5
$as_echo "unity" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework topo" >&5
$as_echo_n "checking for m4 configure components in framework topo... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component topo:unity (no configuration)"




    project=ompi
    framework=topo
    component=unity
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_topo" ; then
            if test "$DIRECT_topo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=topo
    component=unity

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_topo" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=topo
    component=unity

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_topo" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_topo" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:unity can compile" >&5
$as_echo_n "checking if MCA component topo:unity can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_topo" = "unity" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"unity\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_topo" ; then
        if test "$DIRECT_topo" = "unity" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"unity\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components unity"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_topo_unity_DSO=1
    else
        BUILD_topo_unity_DSO=0
    fi
     if test "$BUILD_topo_unity_DSO" = "1"; then
  OMPI_BUILD_topo_unity_DSO_TRUE=
  OMPI_BUILD_topo_unity_DSO_FALSE='#'
else
  OMPI_BUILD_topo_unity_DSO_TRUE='#'
  OMPI_BUILD_topo_unity_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mca/topo/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component topo:$component (need to configure)"




    project=ompi
    framework=topo
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_topo" ; then
            if test "$DIRECT_topo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=topo
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_topo" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/topo/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/topo/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=topo
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_topo" = "$component" ; then
            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=$line"
                eval $str
            else
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_topo" = "$component" ; then
as_fn_error "*** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" "$LINENO" 5
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:$component can compile" >&5
$as_echo_n "checking if MCA component topo:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_topo" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

    if test ! -z "$DIRECT_topo" ; then
        if test "$DIRECT_topo" = "$component" ; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
            exit 1
        fi
    fi

            fi
        fi
    done

fi

    MCA_topo_ALL_COMPONENTS="$all_components"
    MCA_topo_STATIC_COMPONENTS="$static_components"
    MCA_topo_DSO_COMPONENTS="$dso_components"
    MCA_topo_STATIC_LTLIBS="$static_ltlibs"







    MCA_topo_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_topo_ALL_SUBDIRS="$MCA_topo_ALL_SUBDIRS mca/topo/$item"
    done



    MCA_topo_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_topo_STATIC_SUBDIRS="$MCA_topo_STATIC_SUBDIRS mca/topo/$item"
    done



    MCA_topo_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_topo_DSO_SUBDIRS="$MCA_topo_DSO_SUBDIRS mca/topo/$item"
    done



    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "topo" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_topo_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real










    # BWB - fix me...  need to automate this somehow

    if test ! -z "$DIRECT_pml" ; then
        MCA_pml_DIRECT_CALL_COMPONENT=$DIRECT_pml
        MCA_pml_DIRECT_CALL=1
    else
        MCA_pml_DIRECT_CALL_COMPONENT=
        MCA_pml_DIRECT_CALL=0
    fi



cat >>confdefs.h <<_ACEOF
#define MCA_pml_DIRECT_CALL $MCA_pml_DIRECT_CALL
_ACEOF


cat >>confdefs.h <<_ACEOF
#define MCA_pml_DIRECT_CALL_COMPONENT $MCA_pml_DIRECT_CALL_COMPONENT
_ACEOF


cat >>confdefs.h <<_ACEOF
#define MCA_pml_DIRECT_CALL_HEADER "$MCA_pml_DIRECT_CALL_HEADER"
_ACEOF



    if test ! -z "$DIRECT_mtl" ; then
        MCA_mtl_DIRECT_CALL_COMPONENT=$DIRECT_mtl
        MCA_mtl_DIRECT_CALL=1
    else
        MCA_mtl_DIRECT_CALL_COMPONENT=
        MCA_mtl_DIRECT_CALL=0
    fi



cat >>confdefs.h <<_ACEOF
#define MCA_mtl_DIRECT_CALL $MCA_mtl_DIRECT_CALL
_ACEOF


cat >>confdefs.h <<_ACEOF
#define MCA_mtl_DIRECT_CALL_COMPONENT $MCA_mtl_DIRECT_CALL_COMPONENT
_ACEOF


cat >>confdefs.h <<_ACEOF
#define MCA_mtl_DIRECT_CALL_HEADER "$MCA_mtl_DIRECT_CALL_HEADER"
_ACEOF



    # make all the config output statements for the no configure
    # components


ac_config_files="$ac_config_files opal/mca/backtrace/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/darwin/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/execinfo/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/none/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/printstack/Makefile"

ac_config_files="$ac_config_files opal/mca/carto/Makefile"



ac_config_files="$ac_config_files opal/mca/carto/auto_detect/Makefile"



ac_config_files="$ac_config_files opal/mca/carto/file/Makefile"

ac_config_files="$ac_config_files opal/mca/crs/Makefile"



ac_config_files="$ac_config_files opal/mca/crs/blcr/Makefile"



ac_config_files="$ac_config_files opal/mca/crs/none/Makefile"



ac_config_files="$ac_config_files opal/mca/crs/self/Makefile"

ac_config_files="$ac_config_files opal/mca/installdirs/Makefile"



ac_config_files="$ac_config_files opal/mca/installdirs/config/Makefile"



ac_config_files="$ac_config_files opal/mca/installdirs/env/Makefile"



ac_config_files="$ac_config_files opal/mca/installdirs/windows/Makefile"

ac_config_files="$ac_config_files opal/mca/maffinity/Makefile"



ac_config_files="$ac_config_files opal/mca/maffinity/first_use/Makefile"



ac_config_files="$ac_config_files opal/mca/maffinity/libnuma/Makefile"

ac_config_files="$ac_config_files opal/mca/memchecker/Makefile"



ac_config_files="$ac_config_files opal/mca/memchecker/valgrind/Makefile"

ac_config_files="$ac_config_files opal/mca/memcpy/Makefile"

ac_config_files="$ac_config_files opal/mca/memory/Makefile"



ac_config_files="$ac_config_files opal/mca/memory/linux/Makefile"



ac_config_files="$ac_config_files opal/mca/memory/malloc_solaris/Makefile"

ac_config_files="$ac_config_files opal/mca/paffinity/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/hwloc/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/test/Makefile"

ac_config_files="$ac_config_files opal/mca/pstat/Makefile"



ac_config_files="$ac_config_files opal/mca/pstat/darwin/Makefile"



ac_config_files="$ac_config_files opal/mca/pstat/linux/Makefile"

ac_config_files="$ac_config_files opal/mca/sysinfo/Makefile"



ac_config_files="$ac_config_files opal/mca/sysinfo/darwin/Makefile"



ac_config_files="$ac_config_files opal/mca/sysinfo/linux/Makefile"



ac_config_files="$ac_config_files opal/mca/sysinfo/solaris/Makefile"

ac_config_files="$ac_config_files opal/mca/timer/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/aix/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/altix/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/catamount/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/darwin/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/linux/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/solaris/Makefile"



ac_config_files="$ac_config_files opal/mca/timer/windows/Makefile"

ac_config_files="$ac_config_files orte/mca/debugger/Makefile"



ac_config_files="$ac_config_files orte/mca/debugger/mpir/Makefile"



ac_config_files="$ac_config_files orte/mca/debugger/mpirx/Makefile"

ac_config_files="$ac_config_files orte/mca/errmgr/Makefile"



ac_config_files="$ac_config_files orte/mca/errmgr/default/Makefile"

ac_config_files="$ac_config_files orte/mca/ess/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/alps/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/cnos/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/env/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/hnp/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/lsf/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/portals_utcp/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/singleton/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/slave/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/slurm/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/slurmd/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/tm/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/tool/Makefile"

ac_config_files="$ac_config_files orte/mca/filem/Makefile"



ac_config_files="$ac_config_files orte/mca/filem/rsh/Makefile"

ac_config_files="$ac_config_files orte/mca/grpcomm/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/bad/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/basic/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/cnos/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/hier/Makefile"

ac_config_files="$ac_config_files orte/mca/iof/Makefile"



ac_config_files="$ac_config_files orte/mca/iof/hnp/Makefile"



ac_config_files="$ac_config_files orte/mca/iof/orted/Makefile"



ac_config_files="$ac_config_files orte/mca/iof/tool/Makefile"

ac_config_files="$ac_config_files orte/mca/notifier/Makefile"



ac_config_files="$ac_config_files orte/mca/notifier/command/Makefile"



ac_config_files="$ac_config_files orte/mca/notifier/ftb/Makefile"



ac_config_files="$ac_config_files orte/mca/notifier/smtp/Makefile"



ac_config_files="$ac_config_files orte/mca/notifier/syslog/Makefile"

ac_config_files="$ac_config_files orte/mca/odls/Makefile"



ac_config_files="$ac_config_files orte/mca/odls/default/Makefile"



ac_config_files="$ac_config_files orte/mca/odls/process/Makefile"

ac_config_files="$ac_config_files orte/mca/oob/Makefile"



ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile"

ac_config_files="$ac_config_files orte/mca/plm/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/alps/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/ccp/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/lsf/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/process/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/rsh/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/rshd/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/slurm/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/tm/Makefile"

ac_config_files="$ac_config_files orte/mca/ras/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/alps/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/ccp/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/cm/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/gridengine/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/loadleveler/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/lsf/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/slurm/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/tm/Makefile"

ac_config_files="$ac_config_files orte/mca/rmaps/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/load_balance/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/rank_file/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/resilient/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/seq/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/topo/Makefile"

ac_config_files="$ac_config_files orte/mca/rmcast/Makefile"



ac_config_files="$ac_config_files orte/mca/rmcast/tcp/Makefile"



ac_config_files="$ac_config_files orte/mca/rmcast/udp/Makefile"

ac_config_files="$ac_config_files orte/mca/rml/Makefile"



ac_config_files="$ac_config_files orte/mca/rml/ftrm/Makefile"



ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile"

ac_config_files="$ac_config_files orte/mca/routed/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/binomial/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/cm/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/direct/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/linear/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/radix/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/slave/Makefile"

ac_config_files="$ac_config_files orte/mca/snapc/Makefile"



ac_config_files="$ac_config_files orte/mca/snapc/full/Makefile"

ac_config_files="$ac_config_files ompi/mca/allocator/Makefile"



ac_config_files="$ac_config_files ompi/mca/allocator/basic/Makefile"



ac_config_files="$ac_config_files ompi/mca/allocator/bucket/Makefile"

ac_config_files="$ac_config_files ompi/mca/bml/Makefile"



ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile"

ac_config_files="$ac_config_files ompi/mca/btl/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/elan/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/mx/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/ofud/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/openib/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/portals/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/sctp/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/self/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/sm/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/tcp/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/udapl/Makefile"

ac_config_files="$ac_config_files ompi/mca/coll/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/fca/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/hierarch/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/inter/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/self/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/sm/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/sync/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile"

ac_config_files="$ac_config_files ompi/mca/common/Makefile"



ac_config_files="$ac_config_files ompi/mca/common/mx/Makefile"



ac_config_files="$ac_config_files ompi/mca/common/portals/Makefile"



ac_config_files="$ac_config_files ompi/mca/common/sm/Makefile"

ac_config_files="$ac_config_files ompi/mca/crcp/Makefile"



ac_config_files="$ac_config_files ompi/mca/crcp/bkmrk/Makefile"

ac_config_files="$ac_config_files ompi/mca/dpm/Makefile"



ac_config_files="$ac_config_files ompi/mca/dpm/orte/Makefile"

ac_config_files="$ac_config_files ompi/mca/io/Makefile"



ac_config_files="$ac_config_files ompi/mca/io/romio/Makefile"

ac_config_files="$ac_config_files ompi/mca/mpool/Makefile"



ac_config_files="$ac_config_files ompi/mca/mpool/fake/Makefile"



ac_config_files="$ac_config_files ompi/mca/mpool/pcie/Makefile"



ac_config_files="$ac_config_files ompi/mca/mpool/rdma/Makefile"



ac_config_files="$ac_config_files ompi/mca/mpool/sm/Makefile"

ac_config_files="$ac_config_files ompi/mca/mtl/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/mx/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/mxm/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/portals/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/psm/Makefile"

ac_config_files="$ac_config_files ompi/mca/op/Makefile"

ac_config_files="$ac_config_files ompi/mca/osc/Makefile"



ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile"



ac_config_files="$ac_config_files ompi/mca/osc/rdma/Makefile"

ac_config_files="$ac_config_files ompi/mca/pml/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/bfo/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/cm/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/crcpw/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/csum/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile"

ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/v/Makefile"

ac_config_files="$ac_config_files ompi/mca/pubsub/Makefile"



ac_config_files="$ac_config_files ompi/mca/pubsub/orte/Makefile"

ac_config_files="$ac_config_files ompi/mca/rcache/Makefile"



ac_config_files="$ac_config_files ompi/mca/rcache/vma/Makefile"

ac_config_files="$ac_config_files ompi/mca/topo/Makefile"



ac_config_files="$ac_config_files ompi/mca/topo/unity/Makefile"



ac_config_files="$ac_config_files ompi/contrib/libompitrace/Makefile"






# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

##################################
# MPI Extended Interfaces
##################################


   ompi_show_title "Extended MPI interfaces setup"




    # Note that we do not build DSO's here -- we *only* build convenience
    # libraries that get slurped into higher-level libraries
    #
    # [default -- no option given] = No extensions built
    # --enable-mpi-ext=[,]*EXTENSION[,]*
    #
    # Check whether --enable-mpi-ext was given.
if test "${enable_mpi_ext+set}" = set; then :
  enableval=$enable_mpi_ext;
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension components should be enabled" >&5
$as_echo_n "checking which extension components should be enabled... " >&6; }
    if test "$enable_mpi_ext" = "yes"; then
        msg="All Extensions"
        str="`echo ENABLE_EXT_ALL=1`"
        eval $str
    else
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mpi_ext; do
            type="`echo $item | cut -s -f1 -d-`"
            if test -z $type ; then
                type=$item
            fi
            str="`echo ENABLE_${type}=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for projects containing EXT frameworks" >&5
$as_echo_n "checking for projects containing EXT frameworks... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ompi" >&5
$as_echo "ompi" >&6; }

    # if there isn't a project list, abort


    # now configre all the projects, frameworks, and components.  Most
    # of the hard stuff is in here
    EXT_PROJECT_SUBDIRS=
    EXT_PROJECT_SUBDIRS="$EXT_PROJECT_SUBDIRS ompi"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring EXT for ompi"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for ompi" >&5
$as_echo_n "checking for frameworks for ompi... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpiext" >&5
$as_echo "mpiext" >&6; }

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling EXT_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  EXT_project_FRAMEWORKS     - list of frameworks in that project
    #  EXT_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library

    EXT_ompi_FRAMEWORKS=
    EXT_ompi_FRAMEWORKS_SUBDIRS=
    EXT_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
    EXT_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
    EXT_ompi_FRAMEWORK_LIBS=


                           EXT_ompi_FRAMEWORKS="$EXT_ompi_FRAMEWORKS mpiext"
                           EXT_ompi_FRAMEWORKS_SUBDIRS="$EXT_ompi_FRAMEWORKS_SUBDIRS mpiext"
                           EXT_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$EXT_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(EXT_mpiext_ALL_SUBDIRS)"
                           EXT_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$EXT_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(EXT_mpiext_STATIC_SUBDIRS)"
                           EXT_ompi_FRAMEWORK_LIBS="$EXT_ompi_FRAMEWORK_LIBS \$(EXT_mpiext_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring EXT framework mpiext"



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in all_components outfile outfile_real; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"all_components outfile outfile_real\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # setup for framework
    all_components=
    static_components=
    static_ltlibs=

    outdir=ompi/include

    # first create the output include directory
    mkdir -p $outdir

    # remove any previously generated #include files
    mpi_ext_h=$outdir/mpi-ext.h
    rm -f $mpi_ext_h

    # Create the final mpi-ext.h file.
    cat > $mpi_ext_h <<EOF
/*
 * \$HEADER\$
 */

#ifndef OMPI_MPI_EXT_H
#define OMPI_MPI_EXT_H 1

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

#define OMPI_HAVE_MPI_EXT 1

EOF

    #
    # XXX: Left todo: Add header files for other languages
    #

    # print some nice messages about what we're about to do...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework mpiext" >&5
$as_echo_n "checking for no configure components in framework mpiext... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework mpiext" >&5
$as_echo_n "checking for m4 configure components in framework mpiext... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: affinity, example" >&5
$as_echo "affinity, example" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_ext_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "EXT component mpiext:affinity (m4 configuration macro)"




    project=ompi
    framework=mpiext
    component=affinity
    component_path="$srcdir/$project/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
    fi

    # if we asked for everything, then allow it to build if able
    str="ENABLED_COMPONENT_CHECK=\$ENABLE_EXT_ALL"
    eval $str
    if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then
        # if we were explicitly disabled, don't build :)
        str="ENABLED_COMPONENT_CHECK=\$ENABLE_${component}"
        eval $str
        if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then
            want_component=0
        fi
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling EXT_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mpiext
    component=affinity

    # Extensions are always static, no need for further checks
    compile_mode="static"

    #AC_MSG_CHECKING([for EXT component $framework:$component compile mode])
    #AC_MSG_RESULT([$compile_mode])


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    should_build=1


fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mpiext
    component=affinity

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXT component $framework:$component can compile" >&5
$as_echo_n "checking if EXT component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # Save the list of headers and convenience libraries that this component will output
    # There *must* be C bindings
    EXT_C_HEADERS="$EXT_C_HEADERS $framework/$component/${framework}_${component}_c.h"
    EXT_C_LIBS="$EXT_C_LIBS $framework/$component/libext_${framework}_${component}.la"

    component_header="${framework}_${component}_c.h"
    tmp=AFFINITY
    component_define="OMPI_HAVE_MPI_EXT_${tmp}"

    cat >> $mpi_ext_h <<EOF
/* Enabled Extension: $component */
#define $component_define 1
#include "openmpi/ompi/mpiext/$component/$component_header"

EOF

    #
    # XXX: Need to add conditional logic for components that do not supply
    # XXX: some or all of the other 3 interfaces [C++, F77, F90]. If they
    # XXX: did provide those bindings, then add the header file to the relevant
    # XXX: language binding's header file.
    #
    EXT_CXX_HEADERS="$EXT_CXX_HEADERS $framework/$component/${framework}_${component}_cxx.h"
    EXT_CXX_LIBS="$EXT_CXX_LIBS $framework/$component/libext_${framework}_${component}_cxx.la"

    EXT_F77_HEADERS="$EXT_F77_HEADERS $framework/$component/${framework}_${component}_f77.h"
    EXT_F77_LIBS="$EXT_F77_LIBS $framework/$component/libext_${framework}_${component}_f77.la"

    EXT_F90_HEADERS="$EXT_F90_HEADERS $framework/$component/${framework}_${component}_f90.h"
    EXT_F90_LIBS="$EXT_F90_LIBS $framework/$component/libext_${framework}_${component}_f90.la"

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all EXT component subdirs
    all_components="$all_components $component"

    static_ltlibs="$framework/$component/libext_${framework}_${component}.la $static_ltlibs"

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXT component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: EXT component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
            eval "line=$line"
            if test -n "$line"; then
                ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
            fi
        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
            eval "line=$line"
            if test -n "$line"; then
                ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
            fi
            fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
          eval "$str"
          if test -n "$line" ; then
             ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
          fi
          str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
          eval "$str"
          if test -n "$line" ; then
             ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
          fi

           # add component to static component list
           static_components="$static_components affinity"
else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXT component mpiext:affinity can compile" >&5
$as_echo_n "checking if EXT component mpiext:affinity can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpiext" = "affinity" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXT component \"affinity\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: EXT component \"affinity\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

           # add component to all component list
           all_components="$all_components affinity"
fi



    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    ompi_show_subsubsubtitle "EXT component mpiext:example (m4 configuration macro)"




    project=ompi
    framework=mpiext
    component=example
    component_path="$srcdir/$project/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
    fi

    # if we asked for everything, then allow it to build if able
    str="ENABLED_COMPONENT_CHECK=\$ENABLE_EXT_ALL"
    eval $str
    if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then
        # if we were explicitly disabled, don't build :)
        str="ENABLED_COMPONENT_CHECK=\$ENABLE_${component}"
        eval $str
        if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then
            want_component=0
        fi
    fi

    if test "$want_component" = "1"; then :
  should_build=$components_looking_for_succeed
else
  should_build=0
fi

    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling EXT_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mpiext
    component=example

    # Extensions are always static, no need for further checks
    compile_mode="static"

    #AC_MSG_CHECKING([for EXT component $framework:$component compile mode])
    #AC_MSG_RESULT([$compile_mode])


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then :

    # Left empty as a stub for copy-paste of new extensions
    echo "MPIEXT Example: Inside configure.m4"


fi

    if test "$should_build" = "1"; then :



    project=ompi
    framework=mpiext
    component=example

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXT component $framework:$component can compile" >&5
$as_echo_n "checking if EXT component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # Save the list of headers and convenience libraries that this component will output
    # There *must* be C bindings
    EXT_C_HEADERS="$EXT_C_HEADERS $framework/$component/${framework}_${component}_c.h"
    EXT_C_LIBS="$EXT_C_LIBS $framework/$component/libext_${framework}_${component}.la"

    component_header="${framework}_${component}_c.h"
    tmp=EXAMPLE
    component_define="OMPI_HAVE_MPI_EXT_${tmp}"

    cat >> $mpi_ext_h <<EOF
/* Enabled Extension: $component */
#define $component_define 1
#include "openmpi/ompi/mpiext/$component/$component_header"

EOF

    #
    # XXX: Need to add conditional logic for components that do not supply
    # XXX: some or all of the other 3 interfaces [C++, F77, F90]. If they
    # XXX: did provide those bindings, then add the header file to the relevant
    # XXX: language binding's header file.
    #
    EXT_CXX_HEADERS="$EXT_CXX_HEADERS $framework/$component/${framework}_${component}_cxx.h"
    EXT_CXX_LIBS="$EXT_CXX_LIBS $framework/$component/libext_${framework}_${component}_cxx.la"

    EXT_F77_HEADERS="$EXT_F77_HEADERS $framework/$component/${framework}_${component}_f77.h"
    EXT_F77_LIBS="$EXT_F77_LIBS $framework/$component/libext_${framework}_${component}_f77.la"

    EXT_F90_HEADERS="$EXT_F90_HEADERS $framework/$component/${framework}_${component}_f90.h"
    EXT_F90_LIBS="$EXT_F90_LIBS $framework/$component/libext_${framework}_${component}_f90.la"

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all EXT component subdirs
    all_components="$all_components $component"

    static_ltlibs="$framework/$component/libext_${framework}_${component}.la $static_ltlibs"

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXT component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: EXT component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
            eval "line=$line"
            if test -n "$line"; then
                ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
            fi
        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
            eval "line=$line"
            if test -n "$line"; then
                ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
            fi
            fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
          eval "$str"
          if test -n "$line" ; then
             ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
          fi
          str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
          eval "$str"
          if test -n "$line" ; then
             ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
          fi

           # add component to static component list
           static_components="$static_components example"
else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXT component mpiext:example can compile" >&5
$as_echo_n "checking if EXT component mpiext:example can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpiext" = "example" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXT component \"example\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: EXT component \"example\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

           # add component to all component list
           all_components="$all_components example"
fi



    if test "$should_build" = "1"; then :
  components_last_result=1
else
  components_last_result=0
fi

    unset compile_mode




    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "1" != "0"; then :

    for component_path in $srcdir/ompi/mpiext/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "EXT component mpiext:$component (need to configure)"




    project=ompi
    framework=mpiext
    component=$component
    component_path="$srcdir/$project/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
    fi

    # if we asked for everything, then allow it to build if able
    str="ENABLED_COMPONENT_CHECK=\$ENABLE_EXT_ALL"
    eval $str
    if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then
        # if we were explicitly disabled, don't build :)
        str="ENABLED_COMPONENT_CHECK=\$ENABLE_${component}"
        eval $str
        if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then
            want_component=0
        fi
    fi

    if test "$want_component" = "1"; then :
  should_build=1
else
  should_build=0
fi


    project=ompi
    framework=mpiext
    component=$component

    # Extensions are always static, no need for further checks
    compile_mode="static"

    #AC_MSG_CHECKING([for EXT component $framework:$component compile mode])
    #AC_MSG_RESULT([$compile_mode])


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mpiext/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mpiext/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then



    project=ompi
    framework=mpiext
    component=$component

    # Output pretty results
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXT component $framework:$component can compile" >&5
$as_echo_n "checking if EXT component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    # Save the list of headers and convenience libraries that this component will output
    # There *must* be C bindings
    EXT_C_HEADERS="$EXT_C_HEADERS $framework/$component/${framework}_${component}_c.h"
    EXT_C_LIBS="$EXT_C_LIBS $framework/$component/libext_${framework}_${component}.la"

    component_header="${framework}_${component}_c.h"
    tmp=$COMPONENT
    component_define="OMPI_HAVE_MPI_EXT_${tmp}"

    cat >> $mpi_ext_h <<EOF
/* Enabled Extension: $component */
#define $component_define 1
#include "openmpi/ompi/mpiext/$component/$component_header"

EOF

    #
    # XXX: Need to add conditional logic for components that do not supply
    # XXX: some or all of the other 3 interfaces [C++, F77, F90]. If they
    # XXX: did provide those bindings, then add the header file to the relevant
    # XXX: language binding's header file.
    #
    EXT_CXX_HEADERS="$EXT_CXX_HEADERS $framework/$component/${framework}_${component}_cxx.h"
    EXT_CXX_LIBS="$EXT_CXX_LIBS $framework/$component/libext_${framework}_${component}_cxx.la"

    EXT_F77_HEADERS="$EXT_F77_HEADERS $framework/$component/${framework}_${component}_f77.h"
    EXT_F77_LIBS="$EXT_F77_LIBS $framework/$component/libext_${framework}_${component}_f77.la"

    EXT_F90_HEADERS="$EXT_F90_HEADERS $framework/$component/${framework}_${component}_f90.h"
    EXT_F90_LIBS="$EXT_F90_LIBS $framework/$component/libext_${framework}_${component}_f90.la"

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all EXT component subdirs
    all_components="$all_components $component"

    static_ltlibs="$framework/$component/libext_${framework}_${component}.la $static_ltlibs"

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`$GREP ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXT component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: EXT component configure script told me to abort" >&2;}
            as_fn_error "cannot continue" "$LINENO" 5
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
            eval "line=$line"
            if test -n "$line"; then
                ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
            fi
        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
            eval "line=$line"
            if test -n "$line"; then
                ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
            fi
            fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
          eval "$str"
          if test -n "$line" ; then
             ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
          fi
          str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
          eval "$str"
          if test -n "$line" ; then
             ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
          fi

            else

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXT component mpiext:$component can compile" >&5
$as_echo_n "checking if EXT component mpiext:$component can compile... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpiext" = "$component" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXT component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: EXT component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
        exit 1
    fi

            fi
        fi
    done

fi

    EXT_mpiext_ALL_COMPONENTS="$all_components"
    EXT_mpiext_STATIC_COMPONENTS="$static_components"
    EXT_mpiext_STATIC_LTLIBS="$static_ltlibs"





    # Create the final mpi-ext.h file.
    cat >> $mpi_ext_h <<EOF

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

#endif /* OMPI_MPI_EXT_H */

EOF

    #
    # XXX: Left todo: Close header files for other languages
    #


    EXT_mpiext_ALL_SUBDIRS=
    for item in $all_components ; do
       EXT_mpiext_ALL_SUBDIRS="$EXT_mpiext_ALL_SUBDIRS mpiext/$item"
    done



    EXT_mpiext_STATIC_SUBDIRS=
    for item in $static_components ; do
       EXT_mpiext_STATIC_SUBDIRS="$EXT_mpiext_STATIC_SUBDIRS mpiext/$item"
    done




    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done











    # make all the config output statements for the no configure
    # components


ac_config_files="$ac_config_files ompi/mpiext/Makefile"



ac_config_files="$ac_config_files ompi/mpiext/affinity/Makefile"



ac_config_files="$ac_config_files ompi/mpiext/example/Makefile"
















cat >>confdefs.h <<_ACEOF
#define OMPI_EXT_COMPONENTS "$EXT_mpiext_ALL_COMPONENTS"
_ACEOF



# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

##################################
# Contributed software
##################################


    ompi_show_title "Contributed software setup"




    # May someday be expanded to have autogen find the packages
    # instead of this hard-coded list
    # (https://svn.open-mpi.org/trac/ompi/ticket/1162).


    # Option to not build some of the contributed software packages
    # Check whether --enable-contrib-no-build was given.
if test "${enable_contrib_no_build+set}" = set; then :
  enableval=$enable_contrib_no_build;
fi


    # Parse the list to see what we should not build
    ompi_show_subtitle "Configuring contributed software packages"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which contributed software packages should be disabled" >&5
$as_echo_n "checking which contributed software packages should be disabled... " >&6; }
    if test "$enable_contrib_no_build" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        as_fn_error "*** The enable-contrib-no-build flag requires an explicit list
*** of packages to not build.  For example, --enable-contrib-no-build=vt" "$LINENO" 5
    else
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_contrib_no_build; do
            str="`echo DISABLE_contrib_${item}=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    # List of contrib subdirs to traverse into
    OMPI_CONTRIB_SUBDIRS=
    OMPI_CONTRIB_DIST_SUBDIRS=

    # Cycle through each of the software packages and
    # configure them if not disabled.
    # -*- shell-script -*-
#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
#                         University Research and Technology
#                         Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
#                         of Tennessee Research Foundation.  All rights
#                         reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
#                         University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
#                         All rights reserved.
# Copyright (c) 2007-2010 Cisco Systems, Inc.  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# OMPI_contrib_libompitrace_CONFIG([action-if-can-compile],
#                                  [action-if-cant-compile])
# ------------------------------------------------



    ompi_show_subsubsubtitle "libompitrace (m4 configuration macro)"

    # Put in a convenient enable/disable switch (it's a little more
    # user friendly than
    # --enable-contrib-no-build=<comma_delimited_list>, although each
    # works just as well as the other).
    # Check whether --enable-libompitrace was given.
if test "${enable_libompitrace+set}" = set; then :
  enableval=$enable_libompitrace;
fi

    if test "x$enable_libompitrace" = xno; then :
  DISABLE_contrib_libompitrace=yes
fi

    OMPI_CONTRIB_HAPPY=0
    if test "$DISABLE_contrib_libompitrace" = "" -a "$DISABLE_contrib_all" = ""; then

    OMPI_CONTRIB_HAPPY=1

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if contributed component libompitrace can compile" >&5
$as_echo_n "checking if contributed component libompitrace can compile... " >&6; }
        if test "$OMPI_CONTRIB_HAPPY" = "1"; then
            OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/libompitrace"
            OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/libompitrace"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: disabled via command line switch" >&5
$as_echo "$as_me: disabled via command line switch" >&6;}
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_CONTRIB_libompitrace $OMPI_CONTRIB_HAPPY
_ACEOF

    unset OMPI_CONTRIB_HAPPY
# -*- shell-script -*-
#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
#                         University Research and Technology
#                         Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
#                         of Tennessee Research Foundation.  All rights
#                         reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
#                         University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
#                         All rights reserved.
# Copyright (c) 2007      Cisco Systems, Inc.  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# OMPI_contrib_vt_CONFIG([action-if-can-compile],
#                        [action-if-cant-compile])
# ------------------------------------------------



    ompi_show_subsubsubtitle "vt (m4 configuration macro)"

    # Put in a convenient enable/disable switch (it's a little more
    # user friendly than
    # --enable-contrib-no-build=<comma_delimited_list>, although each
    # works just as well as the other).
    # Check whether --enable-vt was given.
if test "${enable_vt+set}" = set; then :
  enableval=$enable_vt;
fi

    if test "x$enable_vt" = xno; then :
  DISABLE_contrib_vt=yes
fi

    OMPI_CONTRIB_HAPPY=0
    if test "$DISABLE_contrib_vt" = "" -a "$DISABLE_contrib_all" = ""; then

    contrib_vt_args="--disable-option-checking --with-openmpi-inside"

    contrib_vt_skip=no
    eval "set x $ac_configure_args"; shift
    for contrib_vt_arg
    do
        if test "$contrib_vt_skip" = "yes"; then
            contrib_vt_skip=no
        else
            case $contrib_vt_arg in
            -with-contrib-vt-flags | --with-contrib-vt-flags)
                contrib_vt_skip=yes
                ;;
            -with-contrib-vt-flags=* | --with-contrib-vt-flags=*)
                ;;
            -with-platform | --with-platform)
                contrib_vt_skip=yes
                ;;
            -with-platform=* | --with-platform=*)
                ;;
            *)
                case $contrib_vt_arg in
                *\'*) contrib_vt_arg=`echo "$contrib_vt_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                esac
                contrib_vt_args="$contrib_vt_args '$contrib_vt_arg'"
                ;;
            esac
        fi
    done


# Check whether --with-contrib-vt-flags was given.
if test "${with_contrib_vt_flags+set}" = set; then :
  withval=$with_contrib_vt_flags;
fi

    if test "$with_contrib_vt_flags" != "yes" -a "$with_contrib_vt_flags" != "no"; then :
  contrib_vt_args="$contrib_vt_args $with_contrib_vt_flags"
fi

    # Run VampirTrace's configure and see if it succeeded

#
# Invoke configure in a specific subdirectory.
#
# ompi/contrib/vt/vt is the directory to invoke in
# $contrib_vt_args is the list of arguments to pass
# contrib_vt_happy=1 is actions to execute upon success
# contrib_vt_happy=0 is actions to execute upon failure
#
subdir_dir="ompi/contrib/vt/vt"
subdir_args="$contrib_vt_args"
subdir_success="contrib_vt_happy=1"
subdir_failure="contrib_vt_happy=0"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp

    # If VampirTrace configured itself successfully, setup OMPI-specific
    # VampirTrace glue code to build.
    if test "$contrib_vt_happy" = "1"; then :
  OMPI_CONTRIB_HAPPY=1
           ac_config_files="$ac_config_files ompi/contrib/vt/Makefile ompi/contrib/vt/wrappers/Makefile ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt"

fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if contributed component vt can compile" >&5
$as_echo_n "checking if contributed component vt can compile... " >&6; }
        if test "$OMPI_CONTRIB_HAPPY" = "1"; then
            OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/vt"
            OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/vt"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: disabled via command line switch" >&5
$as_echo "$as_me: disabled via command line switch" >&6;}
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_CONTRIB_vt $OMPI_CONTRIB_HAPPY
_ACEOF

    unset OMPI_CONTRIB_HAPPY


    # Setup the top-level glue





# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

##################################
# Visibility
##################################

# Check the visibility declspec at the end to avoid problem with
# the previous tests that are not necessarily prepared for
# the visibility feature.
ompi_show_title "Symbol visibility feature"




    # Check if the compiler has support for visibility, like some versions of gcc, icc Sun Studio cc.
    # Check whether --enable-visibility was given.
if test "${enable_visibility+set}" = set; then :
  enableval=$enable_visibility;
fi

    if test "$enable_visibility" = "no" -o "$opal_cv___attribute__visibility" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        have_visibility=0
    else
        CFLAGS_orig="$CFLAGS"
        add=

        # check using gcc -fvisibility=hidden flag
        CFLAGS="$CFLAGS_orig -fvisibility=hidden"
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility" >&5
$as_echo_n "checking if $CC supports -fvisibility... " >&6; }
if test "${ompi_cv_cc_fvisibility+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                    #include <stdio.h>
                    __attribute__((visibility("default"))) int foo;
                    void bar(void) { fprintf(stderr, "bar\n"); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if test -s conftest.err ; then
                        $GREP -iq "visibility" conftest.err
                        if test "$?" = "0" ; then
                            ompi_cv_cc_fvisibility="no"
                        else
                            ompi_cv_cc_fvisibility="yes"
                        fi
                     else
                        ompi_cv_cc_fvisibility="yes"
                     fi
else
  ompi_cv_cc_fvisibility="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_fvisibility" >&5
$as_echo "$ompi_cv_cc_fvisibility" >&6; }
        if test "$ompi_c_vendor" = "sun" ; then
            # Check using Sun Studio -xldscope=hidden flag
            CFLAGS="$CFLAGS_orig -xldscope=hidden"
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -xldscope" >&5
$as_echo_n "checking if $CC supports -xldscope... " >&6; }
if test "${ompi_cv_cc_xldscope+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

                        #include <stdio.h>
                        __attribute__((visibility("default"))) int foo;
                        void bar(void) { fprintf(stderr, "bar\n"); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if test -s conftest.err ; then
                            $GREP -iq "visibility" conftest.err
                            if test "$?" = "0" ; then
                                ompi_cv_cc_xldscope="no"
                            else
                                ompi_cv_cc_xldscope="yes"
                            fi
                         else
                            ompi_cv_cc_xldscope="yes"
                         fi
else
  ompi_cv_cc_xldscope="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_cc_xldscope" >&5
$as_echo "$ompi_cv_cc_xldscope" >&6; }
        fi
        if test "$ompi_cv_cc_fvisibility" = "yes" ; then
            add=" -fvisibility=hidden"
            have_visibility=1
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        elif test "$ompi_cv_cc_xldscope" = "yes" ; then
            add=" -xldscope=hidden"
            have_visibility=1
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        elif test "$enable_visibility" = "yes"; then
            as_fn_error "Symbol visibility support requested but compiler does not seem to support it.  Aborting" "$LINENO" 5
        else
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
            have_visibility=0
        fi
        CFLAGS="$CFLAGS_orig$add"
        OPAL_VISIBILITY_CFLAGS="$add"
        unset add
    fi

cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE_VISIBILITY $have_visibility
_ACEOF






############################################################################
# Final top-level OMPI configuration
############################################################################

ompi_show_title "Final top-level OMPI configuration"

############################################################################
# Libevent setup
############################################################################

ompi_show_subtitle "Libevent 3rd party event handler"
CFLAGS_save="$CFLAGS"
CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"


sources=


# Check whether --with-event-rtsig was given.
if test "${with_event_rtsig+set}" = set; then :
  withval=$with_event_rtsig; usertsig=yes
else
  usertsig=no
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/queue.h>
#ifdef TAILQ_FOREACH
 yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f conftest*

fi

if test "x$ac_cv_header_sys_time_h" = "xyes"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
#ifdef timeradd
 yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :

$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f conftest*

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if test "${ac_cv_header_time+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi


for ac_func in gettimeofday vasprintf fcntl strtoll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _GNU_SOURCE
#include <fcntl.h>
#ifdef F_SETFD
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :

$as_echo "#define HAVE_SETFD 1" >>confdefs.h

          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f conftest*


needsignal=no
haveselect=no
for ac_func in select
do :
  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
if test "x$ac_cv_func_select" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SELECT 1
_ACEOF
 haveselect=yes
fi
done

if test "x$haveselect" = "xyes" ; then
	# OMPI: Don't use AC_LIBOBJ
	sources="select.c $sources"
	needsignal=yes
fi

havepoll=no
havertsig=no
for ac_func in poll
do :
  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
if test "x$ac_cv_func_poll" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_POLL 1
_ACEOF
 havepoll=yes
fi
done

case "$host" in
    *apple-darwin*)
        haveworkingpoll=0
    ;;
    *)
        if test "$havepoll" = "yes" ; then
	    haveworkingpoll=1
	else
	    haveworkingpoll=0
	fi
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define HAVE_WORKING_POLL $haveworkingpoll
_ACEOF

if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then
	# OMPI: Don't use AC_LIBOBJ
	sources="poll.c $sources"
	needsignal=yes

	if test "x$usertsig" = "xyes" ; then
		for ac_func in sigtimedwait
do :
  ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
if test "x$ac_cv_func_sigtimedwait" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SIGTIMEDWAIT 1
_ACEOF
 havertsig=yes
fi
done

	fi
fi
if test "x$havertsig" = "xyes" ; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETSIG in fcntl.h" >&5
$as_echo_n "checking for F_SETSIG in fcntl.h... " >&6; }
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _GNU_SOURCE
#include <fcntl.h>
#ifdef F_SETSIG
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }; havertsig=no
fi
rm -f conftest*

fi
if test "x$havertsig" = "xyes" ; then

$as_echo "#define HAVE_RTSIG 1" >>confdefs.h

	# OMPI: Don't use AC_LIBOBJ
	sources="rtsig.c $sources"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working rtsig on pipes" >&5
$as_echo_n "checking for working rtsig on pipes... " >&6; }
	if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _GNU_SOURCE
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>

int sigio()
{
	exit(0);
}

int main()
{
	int fd[2];

	pipe(fd);
	signal(SIGIO, sigio);
	fcntl(fd[0], F_SETOWN, getpid());
	fcntl(fd[0], F_SETSIG, SIGIO);
	fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC);
	write(fd[1], "", 1);
	return 1;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAVE_WORKING_RTSIG 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi

haveepoll=no
for ac_func in epoll_ctl
do :
  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
if test "x$ac_cv_func_epoll_ctl" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EPOLL_CTL 1
_ACEOF
 haveepoll=yes
fi
done

if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then

        # OMPI: Unfortunately, this test is not sufficient on some
        # Linux distros (e.g., RH 9), where the function is defined
        # and you can link against it, but it's hardwired to return
        # ENOSYS -- and /usr/include/gnu/stubs.h fails to define
        # __stub_epoll_ctl (the usual mechanism in glibc to indicate
        # that a function is a stub and isn't really implemented).
        # Hence, the test succeeds because it thinks it can use
        # epoll_ctl (and friends).  So we have to do a better test
        # after we determine that epoll_ctl is linkable.  Grumble.
        # If we are cross compiling, just trust AC_CHECK_FUNCS

        # OMPI: Unfortunately, this test is not sufficient for another
        # reason.  The event_poll struct is defined in the sys/epoll.h
        # file.  The structure is the interface between the application
        # and the kernel and is therefore compiled into both.  The
        # event_poll struct is defined with a compiler directive
        # __attribute__ ((__packed__).  It turns out that there is
        # at least one compiler (Sun Studio) that does not currently
        # recognize this directive.  This means that the event_poll
        # struct may be packed in the kernel, but not in the OMPI
        # library.  Badness ensues.  Therefore, check to see that
        # this struct gets correctly passed between OMPI and the
        # kernel.

        # In this test we use epoll in Level Triggered mode. We create a pipe
        # and the write only file descriptor of the pipe is added to
        # the epoll set. The test is successful if epoll_wait() returns 1
        # indicating that the fd is ready to be written to.

        haveepoll=no
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working epoll library interface" >&5
$as_echo_n "checking for working epoll library interface... " >&6; }
        if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
#include <sys/epoll.h>
int
main ()
{

    struct epoll_event epevin;
    struct epoll_event epevout;
    int res;
    int epfd;
    int fildes[2];

    if ((epfd = epoll_create(1)) == -1)
        exit(1);
    if (pipe(&fildes[0]) < 0)
        exit(1);
    memset(&epevin, 0, sizeof(epevin));
    memset(&epevout, 0, sizeof(epevout));
    memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr));
    epevin.events = EPOLLIN | EPOLLOUT;

    if (epoll_ctl(epfd, EPOLL_CTL_ADD, fildes[1], &epevin) == -1)
        exit(1);

    res = epoll_wait(epfd, &epevout, 1, 0);
    if (res != 1) {
        exit(1);
    } else {
        if (epevout.data.ptr != epevin.data.ptr) {
            exit(1);
        }
    }
    /* SUCCESS */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  haveepoll=yes

$as_echo "#define HAVE_EPOLL 1" >>confdefs.h

        # OMPI: Don't use AC_LIBOBJ
        sources="epoll.c $sources"
        needsignal=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $haveepoll" >&5
$as_echo "$haveepoll" >&6; }
fi

haveepollsyscall=no
if test "x$ac_cv_header_sys_epoll_h" = "xyes" -a "x$haveepoll" = "xno" -a "$cross_compiling" != "yes"; then
        # OMPI: See comment above.  This test uses the epoll system call
        # interface instead of the library interface.
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working epoll system call" >&5
$as_echo_n "checking for working epoll system call... " >&6; }
        if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run test program while cross compiling
See \`config.log' for more details." "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

$ac_includes_default
#include <sys/syscall.h>
#include <sys/epoll.h>
int
main ()
{

    struct epoll_event epevin;
    struct epoll_event epevout;
    int res;
    int epfd;
    int fildes[2];

    if ((epfd = syscall(__NR_epoll_create, 1)) == -1)
        exit(1);
    if (pipe(&fildes[0]) < 0)
        exit(1);
    memset(&epevin, 0, sizeof(epevin));
    memset(&epevout, 0, sizeof(epevout));
    memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr));
    epevin.events = EPOLLIN | EPOLLOUT;

    if (syscall(__NR_epoll_ctl, epfd,
        EPOLL_CTL_ADD, fildes[1], &epevin) == -1)
        exit(1);

    res = syscall(__NR_epoll_wait, epfd, &epevout, 1, 0);
    if (res != 1) {
        exit(1);
    } else {
        if (epevout.data.ptr != epevin.data.ptr) {
            exit(1);
        }
    }
    /* SUCCESS */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  haveepollsyscall=yes

$as_echo "#define HAVE_EPOLL 1" >>confdefs.h

        # OMPI: don't use AC_LIBOBJ
        sources="epoll_sub.c epoll.c $sources"
        needsignal=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $haveepollsyscall" >&5
$as_echo "$haveepollsyscall" >&6; }
fi

havedevpoll=no
if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then

$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h

        # OMPI: Don't use AC_LIBOBJ(devpoll)
        sources="devpoll.c $sources"
        needsignal=yes
fi

havekqueue=no
if test "x$ac_cv_header_sys_event_h" = "xyes"; then
    # All versions of MAC OS X before at least 10.5.2 are
    # completely broken when kqueue is used with pty. So, until
    # they get fixed, completely disable kqueue on MAC OS X.
    case "$host" in
        *apple-darwin*)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
$as_echo_n "checking for working kqueue... " >&6; }
            havekqueue="no"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (MAC OS X)" >&5
$as_echo "no (MAC OS X)" >&6; }
        ;;
        *)
            for ac_func in kqueue
do :
  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
if test "x$ac_cv_func_kqueue" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KQUEUE 1
_ACEOF
 havekqueue=yes
fi
done

        ;;
    esac
	if test "x$havekqueue" = "xyes" ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
$as_echo_n "checking for working kqueue... " >&6; }
		if test "$cross_compiling" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/event.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>

int
main()
{
	int kq;
	int n;
	int fd[2];
	struct kevent ev;
	struct timespec ts;
	char buf[8000];

	if (pipe(fd) == -1)
		exit(1);
	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
		exit(1);

	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
		;

        if ((kq = kqueue()) == -1)
		exit(1);

	ev.ident = fd[1];
	ev.filter = EVFILT_WRITE;
	ev.flags = EV_ADD | EV_ENABLE;
	n = kevent(kq, &ev, 1, NULL, 0, NULL);
	if (n == -1)
		exit(1);

	read(fd[0], buf, sizeof(buf));

	ts.tv_sec = 0;
	ts.tv_nsec = 0;
	n = kevent(kq, NULL, 0, &ev, 1, &ts);
	if (n == -1 || n == 0)
		exit(1);

	exit(0);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h

    sources="kqueue.c $sources"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    # OMPI: don't use AC_LIBOBJ
	fi
fi

haveeventports=no
for ac_func in port_create
do :
  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
if test "x$ac_cv_func_port_create" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PORT_CREATE 1
_ACEOF
 haveeventports=yes
fi
done

# JMS Per #1273, Solaris event ports are temporarily disabled.
haveeventports=no
if test "x$haveeventports" = "xyes" ; then

$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h

    sources="evport.c $sources"
    needsignal=yes
fi

if test "x$needsignal" = "xyes" ; then
    # OMPI: don't use AC_LIBOBJ
    sources="signal.c $sources"
fi

# OMPI: AC_REPLACE_FUNCS doesn't have much meaning here because it
# uses AC_LIBOBJ; use our own test
#AC_REPLACE_FUNCS(err)

ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



# OMPI: Save the libobj sources
OPAL_LIBEVENT_SOURCES="$sources"


# OMPI: All done
unset sources
CFLAGS="$CFLAGS_save"


############################################################################
# Libtool: part two
# (after C compiler setup = no compiler/linker tests after this)
############################################################################

ompi_show_subtitle "Libtool configuration"

# Use the undocumented solaris_use_stlport4 libtool variable to turn off any
# Cstd/stlport4 linkage. This allows Open MPI to be C++ STL agnostic.
if test "x$ompi_cv_c_compiler_vendor" = "xsun"; then
    solaris_use_stlport4="yes"
fi












case $enable_ltdl_convenience in
  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
  "") enable_ltdl_convenience=yes
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
LTDLDEPS=$LIBLTDL
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"





# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"



case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.2.6b'
macro_revision='1.3017'













ltmain="$ac_aux_dir/ltmain.sh"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld









# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  if ( file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown












if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru











if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi


































# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
const struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@PROGRAM@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi






















# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 150964 "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"


  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LIPO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac

for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done



ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
_lt_caught_CXX_error=yes; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi




ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$F77"; then
  ac_cv_prog_F77="$F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
F77=$ac_cv_prog_F77
if test -n "$F77"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
$as_echo "$F77" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$F77" && break
  done
fi
if test -z "$F77"; then
  ac_ct_F77=$F77
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_F77"; then
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_F77="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_F77=$ac_cv_prog_ac_ct_F77
if test -n "$ac_ct_F77"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
$as_echo "$ac_ct_F77" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_F77" && break
done

  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_f77_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
if test "${ac_cv_prog_f77_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  FFLAGS=-g
cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_compile "$LINENO"; then :
  ac_cv_prog_f77_g=yes
else
  ac_cv_prog_f77_g=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
$as_echo "$ac_cv_prog_f77_g" >&6; }
if test "$ac_test_FFLAGS" = set; then
  FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-g -O2"
  else
    FFLAGS="-g"
  fi
else
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-O2"
  else
    FFLAGS=
  fi
fi

if test $ac_compiler_gnu = yes; then
  G77=yes
else
  G77=
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test -z "$F77" || test "X$F77" = "Xno"; then
  _lt_disable_F77=yes
fi




ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$FC"; then
  ac_cv_prog_FC="$FC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
FC=$ac_cv_prog_FC
if test -n "$FC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
$as_echo "$FC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$FC" && break
  done
fi
if test -z "$FC"; then
  ac_ct_FC=$FC
  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_FC"; then
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_FC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_FC=$ac_cv_prog_ac_ct_FC
if test -n "$ac_ct_FC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
$as_echo "$ac_ct_FC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_FC" && break
done

  if test "x$ac_ct_FC" = x; then
    FC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_fc_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FCFLAGS=${FCFLAGS+set}
ac_save_FCFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
$as_echo_n "checking whether $FC accepts -g... " >&6; }
if test "${ac_cv_prog_fc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  FCFLAGS=-g
cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_prog_fc_g=yes
else
  ac_cv_prog_fc_g=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
$as_echo "$ac_cv_prog_fc_g" >&6; }
if test "$ac_test_FCFLAGS" = set; then
  FCFLAGS=$ac_save_FCFLAGS
elif test $ac_cv_prog_fc_g = yes; then
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-g -O2"
  else
    FCFLAGS="-g"
  fi
else
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-O2"
  else
    FCFLAGS=
  fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test -z "$FC" || test "X$FC" = "Xno"; then
  _lt_disable_FC=yes
fi




# Set options
enable_dlopen=yes
enable_win32_dll=yes

case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
set dummy ${ac_tool_prefix}as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AS"; then
  ac_cv_prog_AS="$AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AS="${ac_tool_prefix}as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AS=$ac_cv_prog_AS
if test -n "$AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
$as_echo "$AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AS"; then
  ac_ct_AS=$AS
  # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AS"; then
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AS="as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AS=$ac_cv_prog_ac_ct_AS
if test -n "$ac_ct_AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
$as_echo "$ac_ct_AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AS" = x; then
    AS="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AS=$ac_ct_AS
  fi
else
  AS="$ac_cv_prog_AS"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

  ;;
esac

test -z "$AS" && AS=as





test -z "$DLLTOOL" && DLLTOOL=dlltool





test -z "$OBJDUMP" && OBJDUMP=objdump












# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if test "${lt_cv_objdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF

















case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:153420: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:153424: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    linux* | k*bsd*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
          lt_prog_compiler_pic='-KPIC'
          lt_prog_compiler_static='-Bstatic'
          lt_prog_compiler_wl=''
          ;;
        *Sun\ F* | *Sun*Fortran*)
          lt_prog_compiler_pic='-KPIC'
          lt_prog_compiler_static='-Bstatic'
          lt_prog_compiler_wl='-Qoption ld '
          ;;
        	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
$as_echo "$lt_prog_compiler_pic" >&6; }






#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:153759: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:153763: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi






#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:153864: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:153868: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:153919: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:153923: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec='$convenience'
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_from_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  whole_archive_flag_spec=''
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(void) {}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
	pic_flag=$lt_prog_compiler_pic
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
$as_echo "$archive_cmds_need_lc" >&6; }
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  else
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line 156286 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line 156382 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"


ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec_CXX='$convenience'
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
        # as there is no search path for DLLs.
        hardcode_libdir_flag_spec_CXX='-L$libdir'
        allow_undefined_flag_CXX=unsupported
        always_export_symbols_CXX=no
        enable_shared_with_static_runtimes_CXX=yes

        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
          # If the export-symbols file already is a .def file (1st line
          # is EXPORTS), use it as is; otherwise, prepend...
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    cp $export_symbols $output_objdir/$soname.def;
          else
	    echo EXPORTS > $output_objdir/$soname.def;
	    cat $export_symbols >> $output_objdir/$soname.def;
          fi~
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
        else
          ld_shlibs_CXX=no
        fi
        ;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  whole_archive_flag_spec_CXX=''
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 will use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
	    ;;
	  xl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='echo'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=echo
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='echo'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC*)
	    # IBM XL 8.0 on PPC
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:158338: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:158342: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi



#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:158437: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:158441: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:158489: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:158493: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
  ;;
  cygwin* | mingw* | cegcc*)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  esac
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_CXX
	pic_flag=$lt_prog_compiler_pic_CXX
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
        allow_undefined_flag_CXX=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc_CXX=no
        else
	  archive_cmds_need_lc_CXX=yes
        fi
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



      ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu


archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_direct_absolute_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
inherit_rpath_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no

# Source file extension for f77 test sources.
ac_ext=f

# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext

# No sense in running all these tests if we already determined that
# the F77 compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_disable_F77" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="\
      subroutine t
      return
      end
"

  # Code to be used in simple link tests
  lt_simple_link_test_code="\
      program t
      end
"

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC="$CC"
  lt_save_GCC=$GCC
  CC=${F77-"f77"}
  compiler=$CC
  compiler_F77=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  GCC=$G77
  if test -n "$compiler"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
    test "$can_build_shared" = "no" && enable_shared=no

    # On AIX, shared libraries and static libraries use the same namespace, and
    # are all built from PIC.
    case $host_os in
      aix3*)
        test "$enable_shared" = yes && enable_static=no
        if test -n "$RANLIB"; then
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
          postinstall_cmds='$RANLIB $lib'
        fi
        ;;
      aix[4-9]*)
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
	  test "$enable_shared" = yes && enable_static=no
	fi
        ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
    # Make sure either enable_shared or enable_static is yes.
    test "$enable_shared" = yes || enable_static=yes
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }

    GCC_F77="$G77"
    LD_F77="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_F77='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_F77='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic_F77='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      else
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    linux* | k*bsd*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='--shared'
	lt_prog_compiler_static_F77='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-qpic'
	lt_prog_compiler_static_F77='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
          lt_prog_compiler_pic_F77='-KPIC'
          lt_prog_compiler_static_F77='-Bstatic'
          lt_prog_compiler_wl_F77=''
          ;;
        *Sun\ F* | *Sun*Fortran*)
          lt_prog_compiler_pic_F77='-KPIC'
          lt_prog_compiler_static_F77='-Bstatic'
          lt_prog_compiler_wl_F77='-Qoption ld '
          ;;
        	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_F77='-KPIC'
	  lt_prog_compiler_static_F77='-Bstatic'
	  lt_prog_compiler_wl_F77='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_F77='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;

    uts4*)
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_F77=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
$as_echo "$lt_prog_compiler_pic_F77" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_F77=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:159869: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:159873: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_F77=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
else
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
fi

fi



#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_F77=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_F77=yes
       fi
     else
       lt_cv_prog_compiler_static_works_F77=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }

if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
    :
else
    lt_prog_compiler_static_F77=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:159968: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:159972: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:160020: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:160024: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag_F77=
  always_export_symbols_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  compiler_needs_object_F77=no
  enable_shared_with_static_runtimes_F77=no
  export_dynamic_flag_spec_F77=
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic_F77=no
  hardcode_direct_F77=no
  hardcode_direct_absolute_F77=no
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  inherit_rpath_F77=no
  link_all_deplibs_F77=unknown
  module_cmds_F77=
  module_expsym_cmds_F77=
  old_archive_from_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  thread_safe_flag_spec_F77=
  whole_archive_flag_spec_F77=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_F77=''
        ;;
      m68k)
            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec_F77='-L$libdir'
            hardcode_minus_L_F77=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    interix[3-9]*)
      hardcode_direct_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_F77='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec_F77=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object_F77=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec_F77=
	  hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
	  archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs_F77=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs_F77=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
    esac

    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_direct_absolute_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      file_list_spec_F77='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct_F77=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L_F77=yes
	  hardcode_libdir_flag_spec_F77='-L$libdir'
	  hardcode_libdir_separator_F77=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec_F77='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77='$convenience'
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_F77=''
        ;;
      m68k)
            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec_F77='-L$libdir'
            hardcode_minus_L_F77=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
      allow_undefined_flag_F77=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_from_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_F77=yes
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc_F77=no
  hardcode_direct_F77=no
  hardcode_automatic_F77=yes
  hardcode_shlibpath_var_F77=unsupported
  whole_archive_flag_spec_F77=''
  link_all_deplibs_F77=yes
  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs_F77=no
  fi

      ;;

    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    freebsd1*)
      ld_shlibs_F77=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_F77=yes
      export_dynamic_flag_spec_F77='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	hardcode_libdir_separator_F77=:
	hardcode_direct_F77=yes
	hardcode_direct_absolute_F77=yes
	export_dynamic_flag_spec_F77='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_F77=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	*)
	  hardcode_direct_F77=yes
	  hardcode_direct_absolute_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat > conftest.$ac_ext <<_ACEOF
int foo(void) {}
_ACEOF
if ac_fn_f77_try_link "$LINENO"; then :
  archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc_F77='no'
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      inherit_rpath_F77=yes
      link_all_deplibs_F77=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    newsos6)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_shlibpath_var_F77=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct_F77=yes
	hardcode_shlibpath_var_F77=no
	hardcode_direct_absolute_F77=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec_F77='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec_F77='-R$libdir'
	     ;;
	   *)
	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs_F77=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      allow_undefined_flag_F77=unsupported
      archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc_F77='no'
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
      fi
      archive_cmds_need_lc_F77='no'
      hardcode_libdir_separator_F77=:
      ;;

    solaris*)
      no_undefined_flag_F77=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_shlibpath_var_F77=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs_F77=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
	  hardcode_direct_F77=no
        ;;
	motorola)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4.3*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_F77=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_F77=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_F77='${wl}-z,text'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_F77='${wl}-z,text'
      allow_undefined_flag_F77='${wl}-z,nodefs'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      export_dynamic_flag_spec_F77='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      ld_shlibs_F77=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
$as_echo "$ld_shlibs_F77" >&6; }
test "$ld_shlibs_F77" = no && can_build_shared=no

with_gnu_ld_F77=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_F77" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_F77=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_F77 in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_F77
	pic_flag=$lt_prog_compiler_pic_F77
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
        allow_undefined_flag_F77=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc_F77=no
        else
	  archive_cmds_need_lc_F77=yes
        fi
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
$as_echo "$archive_cmds_need_lc_F77" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_f77_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" ||
   test -n "$runpath_var_F77" ||
   test "X$hardcode_automatic_F77" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
$as_echo "$hardcode_action_F77" >&6; }

if test "$hardcode_action_F77" = relink ||
   test "$inherit_rpath_F77" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  GCC=$lt_save_GCC
  CC="$lt_save_CC"
fi # test "$_lt_disable_F77" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



      ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu


archive_cmds_need_lc_FC=no
allow_undefined_flag_FC=
always_export_symbols_FC=no
archive_expsym_cmds_FC=
export_dynamic_flag_spec_FC=
hardcode_direct_FC=no
hardcode_direct_absolute_FC=no
hardcode_libdir_flag_spec_FC=
hardcode_libdir_flag_spec_ld_FC=
hardcode_libdir_separator_FC=
hardcode_minus_L_FC=no
hardcode_automatic_FC=no
inherit_rpath_FC=no
module_cmds_FC=
module_expsym_cmds_FC=
link_all_deplibs_FC=unknown
old_archive_cmds_FC=$old_archive_cmds
no_undefined_flag_FC=
whole_archive_flag_spec_FC=
enable_shared_with_static_runtimes_FC=no

# Source file extension for fc test sources.
ac_ext=${ac_fc_srcext-f}

# Object file extension for compiled fc test sources.
objext=o
objext_FC=$objext

# No sense in running all these tests if we already determined that
# the FC compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_disable_FC" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="\
      subroutine t
      return
      end
"

  # Code to be used in simple link tests
  lt_simple_link_test_code="\
      program t
      end
"

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC="$CC"
  lt_save_GCC=$GCC
  CC=${FC-"f95"}
  compiler=$CC
  GCC=$ac_cv_fc_compiler_gnu

  compiler_FC=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


  if test -n "$compiler"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
    test "$can_build_shared" = "no" && enable_shared=no

    # On AIX, shared libraries and static libraries use the same namespace, and
    # are all built from PIC.
    case $host_os in
      aix3*)
        test "$enable_shared" = yes && enable_static=no
        if test -n "$RANLIB"; then
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
          postinstall_cmds='$RANLIB $lib'
        fi
        ;;
      aix[4-9]*)
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
	  test "$enable_shared" = yes && enable_static=no
	fi
        ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
    # Make sure either enable_shared or enable_static is yes.
    test "$enable_shared" = yes || enable_static=yes
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }

    GCC_FC="$ac_cv_fc_compiler_gnu"
    LD_FC="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_FC=
postdep_objects_FC=
predeps_FC=
postdeps_FC=
compiler_lib_search_path_FC=

cat > conftest.$ac_ext <<_LT_EOF
      subroutine foo
      implicit none
      integer a
      a=0
      return
      end
_LT_EOF

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_FC"; then
	     compiler_lib_search_path_FC="${prev}${p}"
	   else
	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_FC"; then
	   postdeps_FC="${prev}${p}"
	 else
	   postdeps_FC="${postdeps_FC} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_FC"; then
	   predep_objects_FC="$p"
	 else
	   predep_objects_FC="$predep_objects_FC $p"
	 fi
       else
	 if test -z "$postdep_objects_FC"; then
	   postdep_objects_FC="$p"
	 else
	   postdep_objects_FC="$postdep_objects_FC $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling FC test program"
fi

$RM -f confest.$objext

# PORTME: override above test on systems where it is broken


case " $postdeps_FC " in
*" -lc "*) archive_cmds_need_lc_FC=no ;;
esac
 compiler_lib_search_dirs_FC=
if test -n "${compiler_lib_search_path_FC}"; then
 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi













    lt_prog_compiler_wl_FC=
lt_prog_compiler_pic_FC=
lt_prog_compiler_static_FC=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_FC='-Wl,'
    lt_prog_compiler_static_FC='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_FC='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_FC='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_FC='-fno-common'
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_FC='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_FC=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_FC='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_FC=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic_FC='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_FC='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_FC='-Bstatic'
      else
	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_FC='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_FC='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_FC='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_FC='-non_shared'
      ;;

    linux* | k*bsd*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-KPIC'
	lt_prog_compiler_static_FC='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-fPIC'
	lt_prog_compiler_static_FC='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='--shared'
	lt_prog_compiler_static_FC='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-fpic'
	lt_prog_compiler_static_FC='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_FC='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_FC='-non_shared'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-qpic'
	lt_prog_compiler_static_FC='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
          lt_prog_compiler_pic_FC='-KPIC'
          lt_prog_compiler_static_FC='-Bstatic'
          lt_prog_compiler_wl_FC=''
          ;;
        *Sun\ F* | *Sun*Fortran*)
          lt_prog_compiler_pic_FC='-KPIC'
          lt_prog_compiler_static_FC='-Bstatic'
          lt_prog_compiler_wl_FC='-Qoption ld '
          ;;
        	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_FC='-KPIC'
	  lt_prog_compiler_static_FC='-Bstatic'
	  lt_prog_compiler_wl_FC='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_FC='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_FC='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_FC='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static_FC='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_FC='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_FC='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_FC='-Qoption ld '
      lt_prog_compiler_pic_FC='-PIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_FC='-Wl,'
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_FC='-Kconform_pic'
	lt_prog_compiler_static_FC='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_FC='-Wl,'
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_FC='-Wl,'
      lt_prog_compiler_can_build_shared_FC=no
      ;;

    uts4*)
      lt_prog_compiler_pic_FC='-pic'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_FC=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_FC=
    ;;
  *)
    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
$as_echo "$lt_prog_compiler_pic_FC" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_FC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_FC=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_FC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:162461: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:162465: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_FC=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
    case $lt_prog_compiler_pic_FC in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
     esac
else
    lt_prog_compiler_pic_FC=
     lt_prog_compiler_can_build_shared_FC=no
fi

fi



#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_FC=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_FC=yes
       fi
     else
       lt_cv_prog_compiler_static_works_FC=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }

if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
    :
else
    lt_prog_compiler_static_FC=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_FC=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:162560: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:162564: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_FC=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_FC=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:162612: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:162616: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_FC=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag_FC=
  always_export_symbols_FC=no
  archive_cmds_FC=
  archive_expsym_cmds_FC=
  compiler_needs_object_FC=no
  enable_shared_with_static_runtimes_FC=no
  export_dynamic_flag_spec_FC=
  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic_FC=no
  hardcode_direct_FC=no
  hardcode_direct_absolute_FC=no
  hardcode_libdir_flag_spec_FC=
  hardcode_libdir_flag_spec_ld_FC=
  hardcode_libdir_separator_FC=
  hardcode_minus_L_FC=no
  hardcode_shlibpath_var_FC=unsupported
  inherit_rpath_FC=no
  link_all_deplibs_FC=unknown
  module_cmds_FC=
  module_expsym_cmds_FC=
  old_archive_from_new_cmds_FC=
  old_archive_from_expsyms_cmds_FC=
  thread_safe_flag_spec_FC=
  whole_archive_flag_spec_FC=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_FC=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_FC=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_FC=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_FC=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_FC=''
        ;;
      m68k)
            archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec_FC='-L$libdir'
            hardcode_minus_L_FC=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_FC=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_FC='-L$libdir'
      allow_undefined_flag_FC=unsupported
      always_export_symbols_FC=no
      enable_shared_with_static_runtimes_FC=yes
      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;

    interix[3-9]*)
      hardcode_direct_FC=no
      hardcode_shlibpath_var_FC=no
      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_FC='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec_FC=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object_FC=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec_FC=
	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
	  archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs_FC=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs_FC=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_FC=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs_FC=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;
    esac

    if test "$ld_shlibs_FC" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_FC=
      export_dynamic_flag_spec_FC=
      whole_archive_flag_spec_FC=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_FC=unsupported
      always_export_symbols_FC=yes
      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_FC=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_FC=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_FC=''
      hardcode_direct_FC=yes
      hardcode_direct_absolute_FC=yes
      hardcode_libdir_separator_FC=':'
      link_all_deplibs_FC=yes
      file_list_spec_FC='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct_FC=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L_FC=yes
	  hardcode_libdir_flag_spec_FC='-L$libdir'
	  hardcode_libdir_separator_FC=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec_FC='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_FC=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_FC='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_FC="-z nodefs"
	  archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_FC=' ${wl}-bernotok'
	  allow_undefined_flag_FC=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_FC='$convenience'
	  archive_cmds_need_lc_FC=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_FC=''
        ;;
      m68k)
            archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec_FC='-L$libdir'
            hardcode_minus_L_FC=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_FC=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_FC=' '
      allow_undefined_flag_FC=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_from_new_cmds_FC='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_FC=yes
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc_FC=no
  hardcode_direct_FC=no
  hardcode_automatic_FC=yes
  hardcode_shlibpath_var_FC=unsupported
  whole_archive_flag_spec_FC=''
  link_all_deplibs_FC=yes
  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs_FC=no
  fi

      ;;

    dgux*)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_shlibpath_var_FC=no
      ;;

    freebsd1*)
      ld_shlibs_FC=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_FC=yes
      hardcode_minus_L_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      hardcode_direct_FC=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_FC=yes
      export_dynamic_flag_spec_FC='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
	hardcode_libdir_separator_FC=:
	hardcode_direct_FC=yes
	hardcode_direct_absolute_FC=yes
	export_dynamic_flag_spec_FC='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_FC=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_FC=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct_FC=no
	  hardcode_shlibpath_var_FC=no
	  ;;
	*)
	  hardcode_direct_FC=yes
	  hardcode_direct_absolute_FC=yes
	  export_dynamic_flag_spec_FC='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_FC=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat > conftest.$ac_ext <<_ACEOF
int foo(void) {}
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc_FC='no'
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      inherit_rpath_FC=yes
      link_all_deplibs_FC=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    newsos6)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_FC=yes
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      hardcode_shlibpath_var_FC=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct_FC=yes
	hardcode_shlibpath_var_FC=no
	hardcode_direct_absolute_FC=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec_FC='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec_FC='-R$libdir'
	     ;;
	   *)
	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs_FC=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_minus_L_FC=yes
      allow_undefined_flag_FC=unsupported
      archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_FC=' -expect_unresolved \*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc_FC='no'
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_FC=' -expect_unresolved \*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_FC='-rpath $libdir'
      fi
      archive_cmds_need_lc_FC='no'
      hardcode_libdir_separator_FC=:
      ;;

    solaris*)
      no_undefined_flag_FC=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_shlibpath_var_FC=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs_FC=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_direct_FC=yes
      hardcode_minus_L_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_FC=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_FC='$CC -r -o $output$reload_objs'
	  hardcode_direct_FC=no
        ;;
	motorola)
	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_FC=no
      ;;

    sysv4.3*)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_FC=no
      export_dynamic_flag_spec_FC='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_FC=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_FC=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_FC='${wl}-z,text'
      archive_cmds_need_lc_FC=no
      hardcode_shlibpath_var_FC=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_FC='${wl}-z,text'
      allow_undefined_flag_FC='${wl}-z,nodefs'
      archive_cmds_need_lc_FC=no
      hardcode_shlibpath_var_FC=no
      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
      hardcode_libdir_separator_FC=':'
      link_all_deplibs_FC=yes
      export_dynamic_flag_spec_FC='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_shlibpath_var_FC=no
      ;;

    *)
      ld_shlibs_FC=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
$as_echo "$ld_shlibs_FC" >&6; }
test "$ld_shlibs_FC" = no && can_build_shared=no

with_gnu_ld_FC=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_FC" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_FC=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_FC in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_FC
	pic_flag=$lt_prog_compiler_pic_FC
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_FC
        allow_undefined_flag_FC=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc_FC=no
        else
	  archive_cmds_need_lc_FC=yes
        fi
        allow_undefined_flag_FC=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_FC" >&5
$as_echo "$archive_cmds_need_lc_FC" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_FC=
if test -n "$hardcode_libdir_flag_spec_FC" ||
   test -n "$runpath_var_FC" ||
   test "X$hardcode_automatic_FC" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_FC" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
     test "$hardcode_minus_L_FC" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_FC=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_FC=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_FC=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
$as_echo "$hardcode_action_FC" >&6; }

if test "$hardcode_action_FC" = relink ||
   test "$inherit_rpath_FC" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  GCC=$lt_save_GCC
  CC="$lt_save_CC"
fi # test "$_lt_disable_FC" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu









        ac_config_commands="$ac_config_commands libtool"




# Only expand once:







    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in HAPPY; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            as_fn_error "Cannot continue" "$LINENO" 5
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"HAPPY\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    ompi_show_subtitle "GNU libltdl setup"

    # AC_CONFIG_SUBDIRS appears to be broken for non-gcc compilers (i.e.,
    # passing precious variables down to the sub-configure).
    #
    # Finally, make ltdl follow the same shared/static convention that was
    # user for the main OMPI libraries.  So manually examine
    # $enable_shared and $enable_static and pass down the corresponding
    # flags.

    LIBLTDL_SUBDIR=
    OPAL_HAVE_LTDL_ADVISE=0
    OPAL_LIBLTDL_INTERNAL=0

    if test "$OPAL_ENABLE_DLOPEN_SUPPORT" = "0"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl support disabled (by --disable-dlopen)" >&5
$as_echo "$as_me: WARNING: libltdl support disabled (by --disable-dlopen)" >&2;}
           LIBLTDL=
           LDTLINCL=
           WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $LIBS"
else

           # Default to building the internal copy.  After this,
           # paffinity_hwloc_location is guaranteed to be set to one of:
           # "internal", a directory name (i.e., whatever the user
           # supplied), or "no".
           libltdl_location=$with_libltdl
           if test -z "$libltdl_location" -o "$libltdl_location" = "yes"; then :
  libltdl_location=internal
fi

           { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of libltdl" >&5
$as_echo_n "checking location of libltdl... " >&6; }
           case $libltdl_location in
           no)
              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libltdl specified in conjunction with" >&5
$as_echo "$as_me: WARNING: --without-libltdl specified in conjunction with" >&2;}
              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-dlopen (or --disable-dlopen was not specified)" >&5
$as_echo "$as_me: WARNING: --enable-dlopen (or --disable-dlopen was not specified)" >&2;}
              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot have dlopen without libltdl" >&5
$as_echo "$as_me: WARNING: Cannot have dlopen without libltdl" >&2;}
              as_fn_error "Cannot continue" "$LINENO" 5
              ;;
           internal)
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal copy" >&5
$as_echo "internal copy" >&6; }

    ompi_subdir_args="$ompi_subdir_args --enable-ltdl-convenience --disable-ltdl-install"
    if test "$enable_shared" = "yes"; then
        ompi_subdir_args="$ompi_subdir_args --enable-shared"
    else
        ompi_subdir_args="$ompi_subdir_args --disable-shared"
    fi
    if test "$enable_static" = "yes"; then
        ompi_subdir_args="$ompi_subdir_args --enable-static"
    else
        ompi_subdir_args="$ompi_subdir_args --disable-static"
    fi

    CFLAGS_save="$CFLAGS"
    CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"


#
# Invoke configure in a specific subdirectory.
#
# opal/libltdl is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# HAPPY=1 is actions to execute upon success
# HAPPY=0 is actions to execute upon failure
#
subdir_dir="opal/libltdl"
subdir_args="$ompi_subdir_args"
subdir_success="HAPPY=1"
subdir_failure="HAPPY=0"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OMPI configuring in $subdir_dir" >&5
$as_echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		as_fn_error "cannot create $subdir_dir" "$LINENO" 5
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    as_fn_error "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
    if test "$?" = "0"; then
	eval $subdir_success
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
    if test "$HAPPY" = "1"; then
        LIBLTDL_SUBDIR=libltdl
        OPAL_LIBLTDL_INTERNAL=1

        CPPFLAGS_save="$CPPFLAGS"
        CPPFLAGS="-I."
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <opal/libltdl/ltdl.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "lt_dladvise_init" >/dev/null 2>&1; then :
  OPAL_HAVE_LTDL_ADVISE=1
fi
rm -f conftest*

        CPPFLAGS="$CPPFLAGS_save"

        # Arrgh.  This is gross.  But I can't think of any other
        # way to do it.  :-(
        flags=`$EGREP ^LIBADD_DL opal/libltdl/Makefile | cut -d= -f2-`

#
# libtool has been created by this point
# Try to see if it will add any additional flags for dependant libraries
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool-supplied linker flags" >&5
$as_echo_n "checking for libtool-supplied linker flags... " >&6; }

libtool="opal/libltdl/libtool"
extra_flags="-export-dynamic $flags"

# Get the directory where libtool lives

start="`pwd`"
d="`dirname $libtool`"
cd "$d"
libtool="`pwd`/libtool"
cd "$start"
unset d start

# Make a playground to work in

mkdir conftest.$$
cd conftest.$$

cat > foo.c <<EOF
int foo(void) { return 0; }
EOF

ompi_check_linker_flags_work() {

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "yes"; then
    echo "configure:164785: $cmd" >&5
else
    echo $cmd >&5
fi
    eval $cmd >&5 2>&5
    if test -n "$1"; then
	output=`eval $cmd 2>/dev/null | head -n 1 | sed -e 's,^libtool: *,,' -e 's,^link: *,,'`
    fi
    status="$?"

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "yes"; then
    echo "configure:164798: \$? = $status" >&5
else
    echo \$? = $status >&5
fi
    if test "$status" != "0"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool error!" >&5
$as_echo "libtool error!" >&6; }
	as_fn_error "Cannot continue" "$LINENO" 5
    fi
}

#
# First make a sample library with the current LDFLAGS and LIBS
#

cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c"
ompi_check_linker_flags_work
cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la"
ompi_check_linker_flags_work

#
# Now fake linking to it and capture the output from libtool
#

cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags"
ompi_check_linker_flags_work yes

# eat any extra whitespace in CC, as libtool will do the same
tmpCC=`echo $CC | sed -e 's/\//\\\\\//g'`
output=`echo $output | sed -e "s/^$tmpCC//"`
eval "set $output"
extra_ldflags=
while test -n "$1"; do
    case "$1" in
    *.libs/bar*) ;;
    bar*) ;;
    -I*) ;;
    -L*) ;;
    -R*) ;;
    -lfoo) ;;
    *.libs/libfoo.*) ;;
    -o) ;;
    *.so) ;;
    *.a) ;;
    *)
	extra_ldflags="$extra_ldflags $1"
	;;
    esac
    shift
done

if test -n "$extra_ldflags"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_ldflags" >&5
$as_echo "$extra_ldflags" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no extra flags" >&5
$as_echo "no extra flags" >&6; }
fi

cd ..
rm -rf conftest.$$

        WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags"
        LDFLAGS="-export-dynamic $LDFLAGS"
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to build GNU libltdl.  This usually means that something" >&5
$as_echo "$as_me: WARNING: Failed to build GNU libltdl.  This usually means that something" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: is incorrectly setup with your environment.  There may be useful information in" >&5
$as_echo "$as_me: WARNING: is incorrectly setup with your environment.  There may be useful information in" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: opal/libltdl/config.log.  You can also disable GNU libltdl, which will disable" >&5
$as_echo "$as_me: WARNING: opal/libltdl/config.log.  You can also disable GNU libltdl, which will disable" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dynamic shared object loading, by configuring with --disable-dlopen." >&5
$as_echo "$as_me: WARNING: dynamic shared object loading, by configuring with --disable-dlopen." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi
    CFLAGS="$CFLAGS_save"

              ;;
           external)
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: external copy (unspecified)" >&5
$as_echo "external copy (unspecified)" >&6; }
              # If we're using an extern libltdl, then reset the
              # LTDLINCL that was set earlier (ie., there's no need to
              # -I into our internal libltdl tree).
              LIBLTDL=
              LDTLINCL=
              libltdl_location=
              libltdl_need_external=1
              ;;
           *)
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: external copy ($libltdl_location)" >&5
$as_echo "external copy ($libltdl_location)" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libltdl value" >&5
$as_echo_n "checking --with-libltdl value... " >&6; }
    if test "$libltdl_location" = "yes" -o "$libltdl_location" = "no" -o "x$libltdl_location" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$libltdl_location"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $libltdl_location not found" >&5
$as_echo "$as_me: WARNING: Directory $libltdl_location not found" >&2;}
                  as_fn_error "Cannot continue" "$LINENO" 5
else
  if test "x`ls $libltdl_location/include/ltdl.h 2> /dev/null`" = "x"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $libltdl_location/include/ltdl.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $libltdl_location/include/ltdl.h not found" >&2;}
                         as_fn_error "Cannot continue" "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($libltdl_location)" >&5
$as_echo "sanity check ok ($libltdl_location)" >&6; }

fi


fi


fi

              # If we're using an extern libltdl, then reset the
              # LTDLINCL that was set earlier (ie., there's no need to
              # -I into our internal libltdl tree).
              LIBLTDL=
              LDTLINCL=
              libltdl_need_external=1
              ;;
            esac

            if test "$libltdl_need_external" = "1"; then :

    ompi_check_package_libltdl_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_libltdl_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_libltdl_save_LIBS="$LIBS"

    ompi_check_package_libltdl_orig_CPPFLAGS="$libltdl_CPPFLAGS"
    ompi_check_package_libltdl_orig_LDFLAGS="$libltdl_LDFLAGS"
    ompi_check_package_libltdl_orig_LIBS="$libltdl_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_ltdl_h

    ompi_check_package_header_happy="no"
    if test "$libltdl_location" = "/usr" -o "$libltdl_location" = "/usr/local"; then :
   # try as is...
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then :
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_ltdl_h
fi
fi

    if test "$ompi_check_package_header_happy" = "no"; then :
  if test "$libltdl_location" != ""; then :
  libltdl_CPPFLAGS="$libltdl_CPPFLAGS -I$libltdl_location/include"
                  CPPFLAGS="$CPPFLAGS -I$libltdl_location/include"
fi
           ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
if test "x$ac_cv_header_ltdl_h" = x""yes; then :

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ltdl_lt_dlopen
    ompi_check_package_lib_happy="no"
    if test "" != ""; then :
   # libdir was specified - search only there
           libltdl_LDFLAGS="$libltdl_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                  libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                  unset ac_cv_lib_ltdl_lt_dlopen
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$libltdl_location"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                     libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                     unset ac_cv_lib_ltdl_lt_dlopen
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  libltdl_LDFLAGS="$libltdl_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                          libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                          unset ac_cv_lib_ltdl_lt_dlopen
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  libltdl_LDFLAGS="$libltdl_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                          libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                          unset ac_cv_lib_ltdl_lt_dlopen
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  libltdl_LIBS="-lltdl "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ltdl_lt_dlopen
    ompi_check_package_lib_happy="no"
    if test "" != ""; then :
   # libdir was specified - search only there
           libltdl_LDFLAGS="$libltdl_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                  libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                  unset ac_cv_lib_ltdl_lt_dlopen
fi
else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$libltdl_location"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then :
   # try as is...
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                     libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                     unset ac_cv_lib_ltdl_lt_dlopen
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  libltdl_LDFLAGS="$libltdl_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                          libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                          unset ac_cv_lib_ltdl_lt_dlopen
fi
fi
fi

           if test "$ompi_check_package_lib_happy" = "no"; then :
  if test "$ompi_check_package_libdir" != ""; then :
  libltdl_LDFLAGS="$libltdl_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dlopen ();
int
main ()
{
return lt_dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dlopen=yes
else
  ac_cv_lib_ltdl_lt_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then :
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
                          libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
                          unset ac_cv_lib_ltdl_lt_dlopen
fi
fi
fi
fi

    if test "$ompi_check_package_lib_happy" = "yes"; then :
  libltdl_LIBS="-lltdl "
           ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi


fi
    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then :

else
  libltdl_CPPFLAGS="$ompi_check_package_libltdl_orig_CPPFLAGS"
           libltdl_LDFLAGS="$ompi_check_package_libltdl_orig_LDFLAGS"
           libltdl_LIBS="$ompi_check_package_libltdl_orig_LIBS"
           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libltdl installation not found" >&5
$as_echo "$as_me: WARNING: External libltdl installation not found" >&2;}
                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or not usable." >&5
$as_echo "$as_me: WARNING: or not usable." >&2;}
                                  as_fn_error "Cannot continue." "$LINENO" 5
fi

    CPPFLAGS="$ompi_check_package_libltdl_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_libltdl_save_LDFLAGS"
    LIBS="$ompi_check_package_libltdl_save_LIBS"

                   CPPFLAGS="$CPPFLAGS $libltdl_CPPFLAGS"
                   LDFLAGS="$LDFLAGS $libltdl_LDFLAGS"
                   LIBS="$LIBS $libltdl_LIBS"

                   # Check for lt_dladvise_init; warn if we don't have
                   # it
                   ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
if test "x$ac_cv_func_lt_dladvise_init" = x""yes; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *********************************************" >&5
$as_echo "$as_me: WARNING: *********************************************" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find lt_dladvise_init in the" >&5
$as_echo "$as_me: WARNING: Could not find lt_dladvise_init in the" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: external libltdl installation." >&5
$as_echo "$as_me: WARNING: external libltdl installation." >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This could mean that your libltdl version" >&5
$as_echo "$as_me: WARNING: This could mean that your libltdl version" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: is old.  We recommend that you re-configure" >&5
$as_echo "$as_me: WARNING: is old.  We recommend that you re-configure" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI with --with-libltdl=internal to" >&5
$as_echo "$as_me: WARNING: Open MPI with --with-libltdl=internal to" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use the internal libltdl copy in Open MPI." >&5
$as_echo "$as_me: WARNING: use the internal libltdl copy in Open MPI." >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
$as_echo "$as_me: WARNING: " >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sleeping 10 seconds to give you a" >&5
$as_echo "$as_me: WARNING: Sleeping 10 seconds to give you a" >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chance to read this message." >&5
$as_echo "$as_me: WARNING: chance to read this message." >&2;}
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *********************************************" >&5
$as_echo "$as_me: WARNING: *********************************************" >&2;}
                        sleep 10

fi


fi

fi






cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_LTDL_ADVISE $OPAL_HAVE_LTDL_ADVISE
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OPAL_WANT_LIBLTDL $OPAL_ENABLE_DLOPEN_SUPPORT
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_LIBLTDL_INTERNAL $OPAL_LIBLTDL_INTERNAL
_ACEOF


     if test "$OPAL_ENABLE_DLOPEN_SUPPORT" = "1"; then
  OPAL_HAVE_DLOPEN_TRUE=
  OPAL_HAVE_DLOPEN_FALSE='#'
else
  OPAL_HAVE_DLOPEN_TRUE='#'
  OPAL_HAVE_DLOPEN_FALSE=
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        as_fn_error "Cannot continue" "$LINENO" 5
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




############################################################################
# final compiler config
############################################################################

ompi_show_subtitle "Compiler flags"

#
# This is needed for VPATH builds, so that it will -I the appropriate
# include directory.  We delayed doing it until now just so that
# '-I$(top_srcdir)' doesn't show up in any of the configure output --
# purely aesthetic.
#
# Because opal_config.h, orte_config.h, and ompi_config.h are all
# created by AC_CONFIG_HEADERS, we don't need to -I the builddir for
# <project>/include.  If we VPATH building, we do need to include the
# source directories, however.
#
if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
    # Note the embedded m4 directives here -- we must embed them
    # rather than have successive assignments to these shell
    # variables, lest the $(foo) names try to get evaluated here.
    # Yuck!
    CPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CPPFLAGS"
    # C++ is only relevant if we're building OMPI
    CXXCPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CXXCPPFLAGS"
else
    CPPFLAGS='-I$(top_srcdir)'" $CPPFLAGS"
    # C++ is only relevant if we're building OMPI
    CXXCPPFLAGS='-I$(top_srcdir)'" $CXXCPPFLAGS"
fi

# OMPI/ORTE wants some additional processing of the flags (e.g., get
# versions without optimization for debugger modules).


    #
    # Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS
    # version.  We need this so that we can guarantee to build the
    # debugger-sensitive files with -g and nothing else.
    #



# Process a set of flags and remove all debugging and optimization
# flags

s_arg="$CFLAGS"
s_result=
for s_word in $s_arg; do
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $s_word in
    -g)                 ;;
    -g[1-3])      ;;
    +K[0-5])      ;;
    -O)                 ;;
    -O[0-9])      ;;
    -xO)                ;;
    -xO[0-9])     ;;
    -fast)              ;;
    -finline-functions) ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)          ;;
    -xdepend=yes)       ;;

    *)     s_result="$s_result $s_word"
    esac
done

# Clean up

unset s_word s_arg
    CFLAGS_WITHOUT_OPTFLAGS="$s_result"
    # Tweak the compiler flags passed to orterun for Sun Studio SPARC
    # https://svn.open-mpi.org/trac/ompi/ticket/1448
    if test "x$ompi_cv_c_compiler_vendor" = "xsun" -a -n "`echo $host | $GREP sparc`"; then
        DEBUGGER_CFLAGS="-g -xO0"
    else
        # Tweak the compiler flags passed for intel
        # to stop its aggressive inlining of functions
        if test "x$ompi_cv_c_compiler_vendor" = "xintel"; then
            DEBUGGER_CFLAGS="-g -O0"
        else
            DEBUGGER_CFLAGS="-g"
        fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of CFLAGS are ok for debugger modules" >&5
$as_echo_n "checking which of CFLAGS are ok for debugger modules... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5
$as_echo "$CFLAGS_WITHOUT_OPTFLAGS" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugger extra CFLAGS" >&5
$as_echo_n "checking for debugger extra CFLAGS... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUGGER_CFLAGS" >&5
$as_echo "$DEBUGGER_CFLAGS" >&6; }





#
# Delayed the substitution of CFLAGS and CXXFLAGS until now because
# they may have been modified throughout the course of this script.
#











#
# Aggregate MCA parameters directory
#
AMCA_PARAM_SETS_DIR='$(pkgdatadir)/amca-param-sets'


############################################################################
# final wrapper compiler config
############################################################################

ompi_show_subtitle "Wrapper compiler final setup"
# The ORTE and OMPI wrapper scripts (i.e., not the C-compiled
# executables) need perl.
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PERL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
  ;;
esac
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CPPFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_CPPFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count


# 1 is the variable name to be uniq-ized
ompi_name=opal_WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${opal_WRAPPER_EXTRA_LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=opal_WRAPPER_EXTRA_LIBS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${opal_WRAPPER_EXTRA_LIBS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CPPFLAGS" >&5
$as_echo_n "checking for OPAL CPPFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CFLAGS" >&5
$as_echo_n "checking for OPAL CFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_CFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CXXFLAGS" >&5
$as_echo_n "checking for OPAL CXXFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL LDFLAGS" >&5
$as_echo_n "checking for OPAL LDFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL LIBS" >&5
$as_echo_n "checking for OPAL LIBS... " >&6; }
    OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_LIBS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL extra include dirs" >&5
$as_echo_n "checking for OPAL extra include dirs... " >&6; }
    if test "$WANT_INSTALL_HEADERS" = "1" ; then
        OPAL_WRAPPER_EXTRA_INCLUDES="openmpi"
    else
        OPAL_WRAPPER_EXTRA_INCLUDES=
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_INCLUDES" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_INCLUDES" >&6; }


    # For script-based wrappers that don't do relocatable binaries.
    # Don't use if you don't have to.
    exec_prefix_save="${exec_prefix}"
    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
    eval "OPAL_WRAPPER_INCLUDEDIR=\"${includedir}\""
    eval "OPAL_WRAPPER_LIBDIR=\"${libdir}\""
    exec_prefix="${exec_prefix_save}"



    # compatibility defines that will eventually go away
    WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS"
    WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS"
    WRAPPER_EXTRA_LDFLAGS="$OPAL_WRAPPER_EXTRA_LDFLAGS"
    WRAPPER_EXTRA_LIBS="$OPAL_WRAPPER_EXTRA_LIBS"







cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_CFLAGS "$WRAPPER_EXTRA_CFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_CXXFLAGS "$WRAPPER_EXTRA_CXXFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_LDFLAGS "$WRAPPER_EXTRA_LDFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_LIBS "$WRAPPER_EXTRA_LIBS"
_ACEOF




# 1 is the variable name to be uniq-ized
ompi_name=orte_WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${orte_WRAPPER_EXTRA_LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=orte_WRAPPER_EXTRA_LIBS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${orte_WRAPPER_EXTRA_LIBS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE CPPFLAGS" >&5
$as_echo_n "checking for ORTE CPPFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE CXXFLAGS" >&5
$as_echo_n "checking for ORTE CXXFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_CXXFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_CXXFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE CFLAGS" >&5
$as_echo_n "checking for ORTE CFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_CFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE LDFLAGS" >&5
$as_echo_n "checking for ORTE LDFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE LIBS" >&5
$as_echo_n "checking for ORTE LIBS... " >&6; }
    ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_LIBS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE extra include dirs" >&5
$as_echo_n "checking for ORTE extra include dirs... " >&6; }
    if test "$WANT_INSTALL_HEADERS" = "1" ; then
        ORTE_WRAPPER_EXTRA_INCLUDES="openmpi"
    else
        ORTE_WRAPPER_EXTRA_INCLUDES=
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_INCLUDES" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_INCLUDES" >&6; }


    # For script-based wrappers that don't do relocatable binaries.
    # Don't use if you don't have to.
    exec_prefix_save="${exec_prefix}"
    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
    eval "ORTE_WRAPPER_INCLUDEDIR=\"${includedir}\""
    eval "ORTE_WRAPPER_LIBDIR=\"${libdir}\""
    exec_prefix="${exec_prefix_save}"



    # if wrapper compilers were requested, set the orte one up
    if test "$WANT_SCRIPT_WRAPPER_COMPILERS" = "1" ; then
        ac_config_files="$ac_config_files orte/tools/wrappers/orte_wrapper_script"

    fi




# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_FFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_FFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_FCFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_FCFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count


# 1 is the variable name to be uniq-ized
ompi_name=ompi_WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${ompi_WRAPPER_EXTRA_LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=ompi_WRAPPER_EXTRA_LIBS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${ompi_WRAPPER_EXTRA_LIBS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CPPFLAGS" >&5
$as_echo_n "checking for OMPI CPPFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CFLAGS" >&5
$as_echo_n "checking for OMPI CFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_CFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CXXFLAGS" >&5
$as_echo_n "checking for OMPI CXXFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI FFLAGS" >&5
$as_echo_n "checking for OMPI FFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_FFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_FFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI FCFLAGS" >&5
$as_echo_n "checking for OMPI FCFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI LDFLAGS" >&5
$as_echo_n "checking for OMPI LDFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_LDFLAGS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI LIBS" >&5
$as_echo_n "checking for OMPI LIBS... " >&6; }
    OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_LIBS" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI extra include dirs" >&5
$as_echo_n "checking for OMPI extra include dirs... " >&6; }
    OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_INCLUDES" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_INCLUDES" >&6; }


    # language binding support.  C++ is a bit different, as the
    # compiler should work even if there is no MPI C++ bindings
    # support.  However, we do want it to fail if there is no C++
    # compiler.
    if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then
        OMPI_WRAPPER_CXX_LIB="-lmpi_cxx"
        OMPI_WRAPPER_CXX_REQUIRED_FILE=""
    elif test "$CXX" = "none"; then
        OMPI_WRAPPER_CXX_LIB=""
        OMPI_WRAPPER_CXX_REQUIRED_FILE="not supported"
    else
        OMPI_WRAPPER_CXX_LIB=""
        OMPI_WRAPPER_CXX_REQUIRED_FILE=""
    fi



    if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then
        OMPI_WRAPPER_F77_REQUIRED_FILE=""
    else
        OMPI_WRAPPER_F77_REQUIRED_FILE="not supported"
    fi


    if test "$OMPI_WANT_F90_BINDINGS" = "1" ; then
        OMPI_WRAPPER_F90_REQUIRED_FILE=""
    else
        OMPI_WRAPPER_F90_REQUIRED_FILE="not supported"
    fi


    # For script-based wrappers that don't do relocatable binaries.
    # Don't use if you don't have to.
    exec_prefix_save="${exec_prefix}"
    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
    eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\""
    eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\""
    exec_prefix="${exec_prefix_save}"



    # compatibility defines that will eventually go away
    WRAPPER_EXTRA_FFLAGS="$OMPI_WRAPPER_EXTRA_FFLAGS"
    WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS"




cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_FFLAGS "$WRAPPER_EXTRA_FFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_FCFLAGS "$WRAPPER_EXTRA_FCFLAGS"
_ACEOF


    # if wrapper compilers were requested, set the ompi one up
    if test "$WANT_SCRIPT_WRAPPER_COMPILERS" = "1" ; then
        ac_config_files="$ac_config_files ompi/tools/wrappers/ompi_wrapper_script"

    fi



# Recreate some defines prefixed with OMPI_ so that there are no bare
# autoconf macro defines in mpi.h.  Since AC sometimes changes whether
# things are defined as null tokens or an integer result, two projects
# with different versions of AC can cause problems.
if test $ac_cv_header_stdc = yes; then

$as_echo "#define OPAL_STDC_HEADERS 1" >>confdefs.h

fi
if test $ac_cv_header_sys_time_h = yes ; then

$as_echo "#define OPAL_HAVE_SYS_TIME_H 1" >>confdefs.h

fi
if test $ac_cv_type_long_long = yes ; then

$as_echo "#define OPAL_HAVE_LONG_LONG 1" >>confdefs.h
 fi
if test $ac_cv_header_sys_synch_h = yes ; then

$as_echo "#define OPAL_HAVE_SYS_SYNCH_H 1" >>confdefs.h

fi

# If there is a local hook for each project, call it.  This allows 3rd
# parties to add configuration steps to OPAL, ORTE, and/or OMPI simply
# by placing a file in [opal|orte|ompi]/config/whatever.m4 that
# AC_DEFUN's the appropriate macro name -- no patching is necessary.
# If that macro is defined, we'll run it here.
#
# Unfortunately, aclocal is not smart enough to parse something like
# the following in ompi_mca.m4 (when we're already m4 looping over the
# project list):
#
# m4_foreach(mca_project, [mca_project_list],
#           [m4_ifdef(mca_project[_CONFIG_LOCAL], mca_project[_CONFIG_LOCAL])])
#
# Meaning that aclocal doesn't see that, for example,
# "ompi_CONFIG_LOCAL" is actually invoked at the bottom and therefore
# go look for an .m4 file that contains it.  Instead, we have to
# manually list the macros here.  *Then* aclocal is smart enough to go
# look for an .m4 file containing each macro, and if found,
# automatically m4_include the corresponding in aclocal.m4.  Bummer.
# :-\





############################################################################
# Party on
############################################################################

ompi_show_subtitle "Final output"

ac_config_files="$ac_config_files Makefile config/Makefile contrib/Makefile test/Makefile test/event/Makefile test/asm/Makefile test/datatype/Makefile test/class/Makefile test/support/Makefile test/threads/Makefile test/util/Makefile"



    ac_config_files="$ac_config_files opal/Makefile opal/etc/Makefile opal/include/Makefile opal/asm/Makefile opal/datatype/Makefile opal/event/Makefile opal/event/compat/Makefile opal/event/compat/sys/Makefile opal/util/Makefile opal/util/keyval/Makefile opal/mca/base/Makefile opal/tools/wrappers/Makefile opal/tools/wrappers/opalcc-wrapper-data.txt opal/tools/wrappers/opalc++-wrapper-data.txt opal/tools/wrappers/opal.pc opal/tools/opal-checkpoint/Makefile opal/tools/opal-restart/Makefile"



    ac_config_files="$ac_config_files orte/Makefile orte/include/Makefile orte/etc/Makefile orte/tools/orted/Makefile orte/tools/orterun/Makefile orte/tools/wrappers/Makefile orte/tools/wrappers/ortecc-wrapper-data.txt orte/tools/wrappers/ortec++-wrapper-data.txt orte/tools/wrappers/orte.pc orte/tools/orte-checkpoint/Makefile orte/tools/orte-iof/Makefile orte/tools/orte-restart/Makefile orte/tools/orte-ps/Makefile orte/tools/orte-clean/Makefile orte/tools/orte-top/Makefile orte/tools/orte-bootproxy/Makefile"



    ac_config_files="$ac_config_files ompi/Makefile ompi/etc/Makefile ompi/include/Makefile ompi/include/mpif.h ompi/include/mpif-config.h ompi/datatype/Makefile ompi/debuggers/Makefile ompi/mpi/c/Makefile ompi/mpi/c/profile/Makefile ompi/mpi/cxx/Makefile ompi/mpi/f77/Makefile ompi/mpi/f77/profile/Makefile ompi/mpi/f90/Makefile ompi/mpi/f90/fortran_kinds.sh ompi/mpi/f90/fortran_sizes.h ompi/mpi/f90/scripts/Makefile ompi/tools/ompi_info/Makefile ompi/tools/wrappers/Makefile ompi/tools/wrappers/mpicc-wrapper-data.txt ompi/tools/wrappers/mpic++-wrapper-data.txt ompi/tools/wrappers/mpif77-wrapper-data.txt ompi/tools/wrappers/mpif90-wrapper-data.txt ompi/tools/wrappers/ompi.pc ompi/tools/wrappers/ompi-c.pc ompi/tools/wrappers/ompi-cxx.pc ompi/tools/wrappers/ompi-f77.pc ompi/tools/wrappers/ompi-f90.pc ompi/tools/ortetools/Makefile ompi/tools/ompi-server/Makefile ompi/tools/ompi-probe/Makefile ompi/tools/ompi-profiler/Makefile"



cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${PROJECT_OMPI_TRUE}" && test -z "${PROJECT_OMPI_FALSE}"; then
  as_fn_error "conditional \"PROJECT_OMPI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${PROJECT_ORTE_TRUE}" && test -z "${PROJECT_ORTE_FALSE}"; then
  as_fn_error "conditional \"PROJECT_ORTE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then
  as_fn_error "conditional \"WANT_INSTALL_HEADERS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_FT_TRUE}" && test -z "${WANT_FT_FALSE}"; then
  as_fn_error "conditional \"WANT_FT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_INSTALL_BINARIES_TRUE}" && test -z "${OMPI_INSTALL_BINARIES_FALSE}"; then
  as_fn_error "conditional \"OMPI_INSTALL_BINARIES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE}" && test -z "${OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE}"; then
  as_fn_error "conditional \"OPAL_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ORTE_DISABLE_FULL_SUPPORT_TRUE}" && test -z "${ORTE_DISABLE_FULL_SUPPORT_FALSE}"; then
  as_fn_error "conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then
  as_fn_error "conditional \"WANT_PERUSE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_BUILD_F90_SMALL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_SMALL_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_BUILD_F90_MEDIUM_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_MEDIUM_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_BUILD_F90_LARGE_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_LARGE_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE}" && test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE}"; then
  as_fn_error "conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_MPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_BINDINGS_LAYER_FALSE}"; then
  as_fn_error "conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_PMPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_BINDINGS_LAYER_FALSE}"; then
  as_fn_error "conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${COMPILE_PROFILING_SEPARATELY_TRUE}" && test -z "${COMPILE_PROFILING_SEPARATELY_FALSE}"; then
  as_fn_error "conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_MPI_CXX_BINDINGS_TRUE}" && test -z "${WANT_MPI_CXX_BINDINGS_FALSE}"; then
  as_fn_error "conditional \"WANT_MPI_CXX_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OPAL_HAVE_ASM_FILE_TRUE}" && test -z "${OPAL_HAVE_ASM_FILE_FALSE}"; then
  as_fn_error "conditional \"OPAL_HAVE_ASM_FILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_F77_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F77_BINDINGS_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_F77_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_MPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_F77_BINDINGS_LAYER_FALSE}"; then
  as_fn_error "conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_PMPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_F77_BINDINGS_LAYER_FALSE}"; then
  as_fn_error "conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_F90_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F90_BINDINGS_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_F90_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${OPAL_HAVE_POSIX_THREADS_TRUE}" && test -z "${OPAL_HAVE_POSIX_THREADS_FALSE}"; then
  as_fn_error "conditional \"OPAL_HAVE_POSIX_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OPAL_HAVE_SOLARIS_THREADS_TRUE}" && test -z "${OPAL_HAVE_SOLARIS_THREADS_FALSE}"; then
  as_fn_error "conditional \"OPAL_HAVE_SOLARIS_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_FT_THREAD_TRUE}" && test -z "${WANT_FT_THREAD_FALSE}"; then
  as_fn_error "conditional \"WANT_FT_THREAD\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CASE_SENSITIVE_FS_TRUE}" && test -z "${CASE_SENSITIVE_FS_FALSE}"; then
  as_fn_error "conditional \"CASE_SENSITIVE_FS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_backtrace_execinfo_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_execinfo_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_backtrace_printstack_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_printstack_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_backtrace_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_darwin_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_backtrace_none_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_none_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_carto_auto_detect_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_auto_detect_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_carto_file_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_file_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_carto_file_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_crs_none_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_none_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_crs_none_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_crs_blcr_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_blcr_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_crs_self_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_self_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_crs_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_installdirs_env_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_env_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_installdirs_config_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_config_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_installdirs_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_windows_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_installdirs_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_maffinity_first_use_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_first_use_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_maffinity_libnuma_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_libnuma_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_WANT_MEMCHECKER_TRUE}" && test -z "${OMPI_WANT_MEMCHECKER_FALSE}"; then
  as_fn_error "conditional \"OMPI_WANT_MEMCHECKER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_memchecker_valgrind_DSO_TRUE}" && test -z "${OMPI_BUILD_memchecker_valgrind_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_memchecker_valgrind_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MEMORY_LINUX_PTMALLOC2_TRUE}" && test -z "${MEMORY_LINUX_PTMALLOC2_FALSE}"; then
  as_fn_error "conditional \"MEMORY_LINUX_PTMALLOC2\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MEMORY_LINUX_UMMUNOTIFY_TRUE}" && test -z "${MEMORY_LINUX_UMMUNOTIFY_FALSE}"; then
  as_fn_error "conditional \"MEMORY_LINUX_UMMUNOTIFY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_memory_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_linux_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_memory_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OPAL_PAFFINITY_HWLOC_INTERNAL_TRUE}" && test -z "${OPAL_PAFFINITY_HWLOC_INTERNAL_FALSE}"; then
  as_fn_error "conditional \"OPAL_PAFFINITY_HWLOC_INTERNAL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then
  as_fn_error "conditional \"HWLOC_BUILD_STANDALONE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_GCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_MS_LIB\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_OPENAT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_CUDA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_MYRIEXPRESS_TRUE}" && test -z "${HWLOC_HAVE_MYRIEXPRESS_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_MYRIEXPRESS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_CUDART\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_CAIRO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_XML_TRUE}" && test -z "${HWLOC_HAVE_XML_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_XML\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_SET_MEMPOLICY_TRUE}" && test -z "${HWLOC_HAVE_SET_MEMPOLICY_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_SET_MEMPOLICY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_MBIND_TRUE}" && test -z "${HWLOC_HAVE_MBIND_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_MBIND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then
  as_fn_error "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then
  as_fn_error "conditional \"HWLOC_BUILD_README\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then
  as_fn_error "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_LINUX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_DARWIN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_FREEBSD\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_SOLARIS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_AIX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_OSF_TRUE}" && test -z "${HWLOC_HAVE_OSF_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_OSF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_HPUX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_WINDOWS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_MINGW32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_X86_32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_X86_64\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_TRUE}" && test -z "${HWLOC_DOXYGEN_BROKEN_SHORT_NAMES_FALSE}"; then
  as_fn_error "conditional \"HWLOC_DOXYGEN_BROKEN_SHORT_NAMES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_HAVE_CPUID_TRUE}" && test -z "${HWLOC_HAVE_CPUID_FALSE}"; then
  as_fn_error "conditional \"HWLOC_HAVE_CPUID\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_BUILD_UTILS_TRUE}" && test -z "${HWLOC_BUILD_UTILS_FALSE}"; then
  as_fn_error "conditional \"HWLOC_BUILD_UTILS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HWLOC_BUILD_TESTS_TRUE}" && test -z "${HWLOC_BUILD_TESTS_FALSE}"; then
  as_fn_error "conditional \"HWLOC_BUILD_TESTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_paffinity_hwloc_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_hwloc_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_paffinity_hwloc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_paffinity_test_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_test_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_paffinity_test_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pstat_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_pstat_linux_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pstat_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pstat_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_pstat_darwin_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pstat_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_sysinfo_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_sysinfo_linux_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_sysinfo_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_sysinfo_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_sysinfo_solaris_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_sysinfo_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_sysinfo_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_sysinfo_darwin_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_sysinfo_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_catamount_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_catamount_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_catamount_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_aix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_aix_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_altix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_altix_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_darwin_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_solaris_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_windows_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_timer_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_linux_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_debugger_mpir_DSO_TRUE}" && test -z "${OMPI_BUILD_debugger_mpir_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_debugger_mpir_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_debugger_mpirx_DSO_TRUE}" && test -z "${OMPI_BUILD_debugger_mpirx_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_debugger_mpirx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_errmgr_default_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_default_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_errmgr_default_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_portals_utcp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_portals_utcp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_portals_utcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_cnos_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_alps_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_env_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_env_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_hnp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_hnp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_lsf_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_singleton_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_singleton_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_singleton_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_slave_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_slave_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_slave_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_slurm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_slurmd_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_slurmd_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_slurmd_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_tm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ess_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_tool_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_filem_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_filem_rsh_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_filem_rsh_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_grpcomm_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_cnos_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_grpcomm_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_grpcomm_bad_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_bad_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_grpcomm_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_basic_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_grpcomm_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_grpcomm_hier_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_hier_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_grpcomm_hier_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_iof_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_hnp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_iof_hnp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_iof_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_orted_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_iof_orted_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_iof_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_tool_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_notifier_command_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_command_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_notifier_command_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_notifier_ftb_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_ftb_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_notifier_ftb_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_notifier_smtp_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_smtp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_notifier_smtp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_notifier_syslog_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_syslog_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_notifier_syslog_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_odls_default_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_default_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_odls_default_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_odls_process_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_process_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_odls_process_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_oob_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_oob_tcp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_alps_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_ccp_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_ccp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_ccp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_lsf_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_process_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_process_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_process_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_rsh_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_rsh_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_rshd_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_rshd_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_rshd_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_slurm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_plm_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_tm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_plm_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_cm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_cm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_alps_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_ccp_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_ccp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_ccp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_gridengine_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_gridengine_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_loadleveler_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_loadleveler_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_lsf_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_slurm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_ras_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_tm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmaps_load_balance_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_load_balance_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmaps_load_balance_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmaps_rank_file_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_rank_file_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmaps_rank_file_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmaps_resilient_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_resilient_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmaps_resilient_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmaps_round_robin_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_round_robin_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmaps_seq_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_seq_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmaps_seq_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmaps_topo_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_topo_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmaps_topo_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmcast_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_rmcast_tcp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmcast_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rmcast_udp_DSO_TRUE}" && test -z "${OMPI_BUILD_rmcast_udp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rmcast_udp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rml_oob_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_oob_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rml_ftrm_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_ftrm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_routed_binomial_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_binomial_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_routed_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_cm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_routed_cm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_routed_direct_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_direct_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_routed_linear_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_linear_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_routed_radix_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_radix_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_routed_radix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_routed_slave_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_slave_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_routed_slave_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_snapc_full_DSO_TRUE}" && test -z "${OMPI_BUILD_snapc_full_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_snapc_full_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_allocator_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_basic_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_allocator_bucket_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_bucket_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_bml_r2_DSO_TRUE}" && test -z "${OMPI_BUILD_bml_r2_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_self_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_self_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_elan_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_elan_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_elan_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mx_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_ofud_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_ofud_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MCA_btl_openib_enable_failover_TRUE}" && test -z "${MCA_btl_openib_enable_failover_FALSE}"; then
  as_fn_error "conditional \"MCA_btl_openib_enable_failover\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MCA_btl_openib_have_xrc_TRUE}" && test -z "${MCA_btl_openib_have_xrc_FALSE}"; then
  as_fn_error "conditional \"MCA_btl_openib_have_xrc\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MCA_btl_openib_have_rdmacm_TRUE}" && test -z "${MCA_btl_openib_have_rdmacm_FALSE}"; then
  as_fn_error "conditional \"MCA_btl_openib_have_rdmacm\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MCA_btl_openib_have_ibcm_TRUE}" && test -z "${MCA_btl_openib_have_ibcm_FALSE}"; then
  as_fn_error "conditional \"MCA_btl_openib_have_ibcm\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MCA_btl_openib_have_dynamic_sl_TRUE}" && test -z "${MCA_btl_openib_have_dynamic_sl_FALSE}"; then
  as_fn_error "conditional \"MCA_btl_openib_have_dynamic_sl\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_openib_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_portals_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_sctp_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_sctp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_sctp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_sm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_tcp_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_btl_udapl_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_udapl_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_basic_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_hierarch_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_hierarch_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_inter_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_inter_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_inter_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_self_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_self_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_sync_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sync_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_sync_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_tuned_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_tuned_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_coll_fca_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_fca_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_coll_fca_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_common_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_common_sm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_common_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_common_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_common_mx_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_common_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_common_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_common_portals_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_common_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_crcp_bkmrk_DSO_TRUE}" && test -z "${OMPI_BUILD_crcp_bkmrk_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_dpm_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_dpm_orte_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_dpm_orte_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MCA_io_romio_SHOULD_BUILD_TRUE}" && test -z "${MCA_io_romio_SHOULD_BUILD_FALSE}"; then
  as_fn_error "conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_io_romio_DSO_TRUE}" && test -z "${OMPI_BUILD_io_romio_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_io_romio_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE}" && test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE}"; then
  as_fn_error "conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mpool_fake_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_fake_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mpool_fake_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mpool_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_rdma_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mpool_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_sm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mpool_pcie_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_pcie_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mpool_pcie_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mtl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_mx_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mtl_mxm_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_mxm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mtl_mxm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mtl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_portals_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_mtl_psm_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_psm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_osc_pt2pt_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_pt2pt_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_osc_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_rdma_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_osc_rdma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pml_bfo_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_bfo_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pml_bfo_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pml_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_cm_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pml_csum_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_csum_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pml_csum_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pml_ob1_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_ob1_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pml_crcpw_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_crcpw_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pml_v_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_v_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pml_v_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_pubsub_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_pubsub_orte_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_pubsub_orte_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_rcache_vma_DSO_TRUE}" && test -z "${OMPI_BUILD_rcache_vma_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OMPI_BUILD_topo_unity_DSO_TRUE}" && test -z "${OMPI_BUILD_topo_unity_DSO_FALSE}"; then
  as_fn_error "conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OPAL_HAVE_DLOPEN_TRUE}" && test -z "${OPAL_HAVE_DLOPEN_FALSE}"; then
  as_fn_error "conditional \"OPAL_HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Open MPI $as_me 1.5.4, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <http://www.open-mpi.org/community/help/>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
Open MPI config.status 1.5.4
configured by $0, generated by GNU Autoconf 2.65,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# Quote evaled strings.
for var in NM \
SED \
GREP \
EGREP \
FGREP \
LD \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
deplibs_check_method \
file_magic_cmd \
AR \
AR_FLAGS \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
SHELL \
ECHO \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_wl \
lt_prog_compiler_pic \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
fix_srcfile_path \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
finish_eval \
old_striplib \
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
LD_F77 \
LD_FC \
compiler_CXX \
compiler_F77 \
compiler_FC \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_no_builtin_flag_F77 \
lt_prog_compiler_no_builtin_flag_FC \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_wl_F77 \
lt_prog_compiler_wl_FC \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_pic_F77 \
lt_prog_compiler_pic_FC \
lt_prog_compiler_static_CXX \
lt_prog_compiler_static_F77 \
lt_prog_compiler_static_FC \
lt_cv_prog_compiler_c_o_CXX \
lt_cv_prog_compiler_c_o_F77 \
lt_cv_prog_compiler_c_o_FC \
export_dynamic_flag_spec_CXX \
export_dynamic_flag_spec_F77 \
export_dynamic_flag_spec_FC \
whole_archive_flag_spec_CXX \
whole_archive_flag_spec_F77 \
whole_archive_flag_spec_FC \
compiler_needs_object_CXX \
compiler_needs_object_F77 \
compiler_needs_object_FC \
with_gnu_ld_CXX \
with_gnu_ld_F77 \
with_gnu_ld_FC \
allow_undefined_flag_CXX \
allow_undefined_flag_F77 \
allow_undefined_flag_FC \
no_undefined_flag_CXX \
no_undefined_flag_F77 \
no_undefined_flag_FC \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_F77 \
hardcode_libdir_flag_spec_FC \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_flag_spec_ld_F77 \
hardcode_libdir_flag_spec_ld_FC \
hardcode_libdir_separator_CXX \
hardcode_libdir_separator_F77 \
hardcode_libdir_separator_FC \
fix_srcfile_path_CXX \
fix_srcfile_path_F77 \
fix_srcfile_path_FC \
exclude_expsyms_CXX \
exclude_expsyms_F77 \
exclude_expsyms_FC \
include_expsyms_CXX \
include_expsyms_F77 \
include_expsyms_FC \
file_list_spec_CXX \
file_list_spec_F77 \
file_list_spec_FC \
compiler_lib_search_dirs_CXX \
compiler_lib_search_dirs_F77 \
compiler_lib_search_dirs_FC \
predep_objects_CXX \
predep_objects_F77 \
predep_objects_FC \
postdep_objects_CXX \
postdep_objects_F77 \
postdep_objects_FC \
predeps_CXX \
predeps_F77 \
predeps_FC \
postdeps_CXX \
postdeps_F77 \
postdeps_FC \
compiler_lib_search_path_CXX \
compiler_lib_search_path_F77 \
compiler_lib_search_path_FC; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec \
old_archive_cmds_CXX \
old_archive_cmds_F77 \
old_archive_cmds_FC \
old_archive_from_new_cmds_CXX \
old_archive_from_new_cmds_F77 \
old_archive_from_new_cmds_FC \
old_archive_from_expsyms_cmds_CXX \
old_archive_from_expsyms_cmds_F77 \
old_archive_from_expsyms_cmds_FC \
archive_cmds_CXX \
archive_cmds_F77 \
archive_cmds_FC \
archive_expsym_cmds_CXX \
archive_expsym_cmds_F77 \
archive_expsym_cmds_FC \
module_cmds_CXX \
module_cmds_F77 \
module_cmds_FC \
module_expsym_cmds_CXX \
module_expsym_cmds_F77 \
module_expsym_cmds_FC \
export_symbols_cmds_CXX \
export_symbols_cmds_F77 \
export_symbols_cmds_FC \
prelink_cmds_CXX \
prelink_cmds_F77 \
prelink_cmds_FC; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Fix-up fallback echo if it was mangled by the above quoting rules.
case \$lt_ECHO in
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  ;;
esac

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'










_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "ompi/include/ompi/version.h") CONFIG_FILES="$CONFIG_FILES ompi/include/ompi/version.h" ;;
    "orte/include/orte/version.h") CONFIG_FILES="$CONFIG_FILES orte/include/orte/version.h" ;;
    "opal/include/opal/version.h") CONFIG_FILES="$CONFIG_FILES opal/include/opal/version.h" ;;
    "opal/include/opal_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/include/opal_config.h" ;;
    "orte/include/orte_config.h") CONFIG_HEADERS="$CONFIG_HEADERS orte/include/orte_config.h" ;;
    "ompi/include/ompi_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/ompi_config.h" ;;
    "ompi/include/mpi.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi.h" ;;
    "ompi/include/mpi_portable_platform.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi_portable_platform.h" ;;
    "opal/mca/installdirs/config/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/install_dirs.h" ;;
    "opal/mca/paffinity/hwloc/hwloc/include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/hwloc/hwloc/include/private/autogen/config.h" ;;
    "opal/mca/paffinity/hwloc/hwloc/include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/hwloc/hwloc/include/hwloc/autogen/config.h" ;;
    "opal/mca/paffinity/hwloc/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/hwloc/hwloc/Makefile" ;;
    "opal/mca/paffinity/hwloc/hwloc/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/hwloc/hwloc/include/Makefile" ;;
    "opal/mca/paffinity/hwloc/hwloc/src/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/hwloc/hwloc/src/Makefile" ;;
    "opal/mca/backtrace/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/Makefile" ;;
    "opal/mca/backtrace/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/darwin/Makefile" ;;
    "opal/mca/backtrace/execinfo/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/execinfo/Makefile" ;;
    "opal/mca/backtrace/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/none/Makefile" ;;
    "opal/mca/backtrace/printstack/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/printstack/Makefile" ;;
    "opal/mca/carto/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/Makefile" ;;
    "opal/mca/carto/auto_detect/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/auto_detect/Makefile" ;;
    "opal/mca/carto/file/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/file/Makefile" ;;
    "opal/mca/crs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/Makefile" ;;
    "opal/mca/crs/blcr/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/blcr/Makefile" ;;
    "opal/mca/crs/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/none/Makefile" ;;
    "opal/mca/crs/self/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/self/Makefile" ;;
    "opal/mca/installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/Makefile" ;;
    "opal/mca/installdirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/Makefile" ;;
    "opal/mca/installdirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/env/Makefile" ;;
    "opal/mca/installdirs/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/windows/Makefile" ;;
    "opal/mca/maffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/Makefile" ;;
    "opal/mca/maffinity/first_use/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/first_use/Makefile" ;;
    "opal/mca/maffinity/libnuma/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/libnuma/Makefile" ;;
    "opal/mca/memchecker/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/Makefile" ;;
    "opal/mca/memchecker/valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/valgrind/Makefile" ;;
    "opal/mca/memcpy/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memcpy/Makefile" ;;
    "opal/mca/memory/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/Makefile" ;;
    "opal/mca/memory/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/linux/Makefile" ;;
    "opal/mca/memory/malloc_solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_solaris/Makefile" ;;
    "opal/mca/paffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/Makefile" ;;
    "opal/mca/paffinity/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/hwloc/Makefile" ;;
    "opal/mca/paffinity/test/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/test/Makefile" ;;
    "opal/mca/pstat/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pstat/Makefile" ;;
    "opal/mca/pstat/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pstat/darwin/Makefile" ;;
    "opal/mca/pstat/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pstat/linux/Makefile" ;;
    "opal/mca/sysinfo/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/sysinfo/Makefile" ;;
    "opal/mca/sysinfo/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/sysinfo/darwin/Makefile" ;;
    "opal/mca/sysinfo/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/sysinfo/linux/Makefile" ;;
    "opal/mca/sysinfo/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/sysinfo/solaris/Makefile" ;;
    "opal/mca/timer/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/Makefile" ;;
    "opal/mca/timer/aix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/aix/Makefile" ;;
    "opal/mca/timer/altix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/altix/Makefile" ;;
    "opal/mca/timer/catamount/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/catamount/Makefile" ;;
    "opal/mca/timer/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/darwin/Makefile" ;;
    "opal/mca/timer/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/linux/Makefile" ;;
    "opal/mca/timer/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/solaris/Makefile" ;;
    "opal/mca/timer/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/windows/Makefile" ;;
    "orte/mca/debugger/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/debugger/Makefile" ;;
    "orte/mca/debugger/mpir/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/debugger/mpir/Makefile" ;;
    "orte/mca/debugger/mpirx/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/debugger/mpirx/Makefile" ;;
    "orte/mca/errmgr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;;
    "orte/mca/errmgr/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default/Makefile" ;;
    "orte/mca/ess/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/Makefile" ;;
    "orte/mca/ess/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/alps/Makefile" ;;
    "orte/mca/ess/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/cnos/Makefile" ;;
    "orte/mca/ess/env/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/env/Makefile" ;;
    "orte/mca/ess/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/hnp/Makefile" ;;
    "orte/mca/ess/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/lsf/Makefile" ;;
    "orte/mca/ess/portals_utcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/portals_utcp/Makefile" ;;
    "orte/mca/ess/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/singleton/Makefile" ;;
    "orte/mca/ess/slave/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slave/Makefile" ;;
    "orte/mca/ess/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slurm/Makefile" ;;
    "orte/mca/ess/slurmd/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slurmd/Makefile" ;;
    "orte/mca/ess/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tm/Makefile" ;;
    "orte/mca/ess/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tool/Makefile" ;;
    "orte/mca/filem/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/Makefile" ;;
    "orte/mca/filem/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/rsh/Makefile" ;;
    "orte/mca/grpcomm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/Makefile" ;;
    "orte/mca/grpcomm/bad/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/bad/Makefile" ;;
    "orte/mca/grpcomm/basic/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/basic/Makefile" ;;
    "orte/mca/grpcomm/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/cnos/Makefile" ;;
    "orte/mca/grpcomm/hier/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/hier/Makefile" ;;
    "orte/mca/iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;;
    "orte/mca/iof/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/hnp/Makefile" ;;
    "orte/mca/iof/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/orted/Makefile" ;;
    "orte/mca/iof/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/tool/Makefile" ;;
    "orte/mca/notifier/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/Makefile" ;;
    "orte/mca/notifier/command/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/command/Makefile" ;;
    "orte/mca/notifier/ftb/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/ftb/Makefile" ;;
    "orte/mca/notifier/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/smtp/Makefile" ;;
    "orte/mca/notifier/syslog/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/syslog/Makefile" ;;
    "orte/mca/odls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/Makefile" ;;
    "orte/mca/odls/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/default/Makefile" ;;
    "orte/mca/odls/process/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/process/Makefile" ;;
    "orte/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;;
    "orte/mca/oob/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;;
    "orte/mca/plm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/Makefile" ;;
    "orte/mca/plm/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/alps/Makefile" ;;
    "orte/mca/plm/ccp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/ccp/Makefile" ;;
    "orte/mca/plm/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/lsf/Makefile" ;;
    "orte/mca/plm/process/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/process/Makefile" ;;
    "orte/mca/plm/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/rsh/Makefile" ;;
    "orte/mca/plm/rshd/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/rshd/Makefile" ;;
    "orte/mca/plm/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/slurm/Makefile" ;;
    "orte/mca/plm/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/tm/Makefile" ;;
    "orte/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;;
    "orte/mca/ras/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/alps/Makefile" ;;
    "orte/mca/ras/ccp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/ccp/Makefile" ;;
    "orte/mca/ras/cm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/cm/Makefile" ;;
    "orte/mca/ras/gridengine/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/gridengine/Makefile" ;;
    "orte/mca/ras/loadleveler/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/loadleveler/Makefile" ;;
    "orte/mca/ras/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf/Makefile" ;;
    "orte/mca/ras/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/slurm/Makefile" ;;
    "orte/mca/ras/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/tm/Makefile" ;;
    "orte/mca/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;;
    "orte/mca/rmaps/load_balance/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/load_balance/Makefile" ;;
    "orte/mca/rmaps/rank_file/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/rank_file/Makefile" ;;
    "orte/mca/rmaps/resilient/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/resilient/Makefile" ;;
    "orte/mca/rmaps/round_robin/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;;
    "orte/mca/rmaps/seq/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/seq/Makefile" ;;
    "orte/mca/rmaps/topo/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/topo/Makefile" ;;
    "orte/mca/rmcast/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmcast/Makefile" ;;
    "orte/mca/rmcast/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmcast/tcp/Makefile" ;;
    "orte/mca/rmcast/udp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmcast/udp/Makefile" ;;
    "orte/mca/rml/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;;
    "orte/mca/rml/ftrm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/ftrm/Makefile" ;;
    "orte/mca/rml/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;;
    "orte/mca/routed/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/Makefile" ;;
    "orte/mca/routed/binomial/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/binomial/Makefile" ;;
    "orte/mca/routed/cm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/cm/Makefile" ;;
    "orte/mca/routed/direct/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/direct/Makefile" ;;
    "orte/mca/routed/linear/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/linear/Makefile" ;;
    "orte/mca/routed/radix/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/radix/Makefile" ;;
    "orte/mca/routed/slave/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/slave/Makefile" ;;
    "orte/mca/snapc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/Makefile" ;;
    "orte/mca/snapc/full/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/full/Makefile" ;;
    "ompi/mca/allocator/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/Makefile" ;;
    "ompi/mca/allocator/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/basic/Makefile" ;;
    "ompi/mca/allocator/bucket/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/bucket/Makefile" ;;
    "ompi/mca/bml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;;
    "ompi/mca/bml/r2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;;
    "ompi/mca/btl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/Makefile" ;;
    "ompi/mca/btl/elan/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/elan/Makefile" ;;
    "ompi/mca/btl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mx/Makefile" ;;
    "ompi/mca/btl/ofud/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/ofud/Makefile" ;;
    "ompi/mca/btl/openib/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/openib/Makefile" ;;
    "ompi/mca/btl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/portals/Makefile" ;;
    "ompi/mca/btl/sctp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/sctp/Makefile" ;;
    "ompi/mca/btl/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/self/Makefile" ;;
    "ompi/mca/btl/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/sm/Makefile" ;;
    "ompi/mca/btl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/tcp/Makefile" ;;
    "ompi/mca/btl/udapl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/udapl/Makefile" ;;
    "ompi/mca/coll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;;
    "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;;
    "ompi/mca/coll/fca/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/fca/Makefile" ;;
    "ompi/mca/coll/hierarch/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hierarch/Makefile" ;;
    "ompi/mca/coll/inter/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/inter/Makefile" ;;
    "ompi/mca/coll/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/self/Makefile" ;;
    "ompi/mca/coll/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sm/Makefile" ;;
    "ompi/mca/coll/sync/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sync/Makefile" ;;
    "ompi/mca/coll/tuned/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;;
    "ompi/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/Makefile" ;;
    "ompi/mca/common/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/mx/Makefile" ;;
    "ompi/mca/common/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/portals/Makefile" ;;
    "ompi/mca/common/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/sm/Makefile" ;;
    "ompi/mca/crcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/Makefile" ;;
    "ompi/mca/crcp/bkmrk/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/bkmrk/Makefile" ;;
    "ompi/mca/dpm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/Makefile" ;;
    "ompi/mca/dpm/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/orte/Makefile" ;;
    "ompi/mca/io/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;;
    "ompi/mca/io/romio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio/Makefile" ;;
    "ompi/mca/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/Makefile" ;;
    "ompi/mca/mpool/fake/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/fake/Makefile" ;;
    "ompi/mca/mpool/pcie/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/pcie/Makefile" ;;
    "ompi/mca/mpool/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/rdma/Makefile" ;;
    "ompi/mca/mpool/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/sm/Makefile" ;;
    "ompi/mca/mtl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/Makefile" ;;
    "ompi/mca/mtl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/mx/Makefile" ;;
    "ompi/mca/mtl/mxm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/mxm/Makefile" ;;
    "ompi/mca/mtl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/portals/Makefile" ;;
    "ompi/mca/mtl/psm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/psm/Makefile" ;;
    "ompi/mca/op/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/op/Makefile" ;;
    "ompi/mca/osc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;;
    "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;;
    "ompi/mca/osc/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/rdma/Makefile" ;;
    "ompi/mca/pml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;;
    "ompi/mca/pml/bfo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/bfo/Makefile" ;;
    "ompi/mca/pml/cm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/cm/Makefile" ;;
    "ompi/mca/pml/crcpw/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/crcpw/Makefile" ;;
    "ompi/mca/pml/csum/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/csum/Makefile" ;;
    "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;;
    "ompi/mca/pml/v/mca/vprotocol/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/Makefile" ;;
    "ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile" ;;
    "ompi/mca/pml/v/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/Makefile" ;;
    "ompi/mca/pubsub/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/Makefile" ;;
    "ompi/mca/pubsub/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/orte/Makefile" ;;
    "ompi/mca/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/Makefile" ;;
    "ompi/mca/rcache/vma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/vma/Makefile" ;;
    "ompi/mca/topo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;;
    "ompi/mca/topo/unity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;;
    "ompi/contrib/libompitrace/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/libompitrace/Makefile" ;;
    "ompi/mpiext/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/Makefile" ;;
    "ompi/mpiext/affinity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/affinity/Makefile" ;;
    "ompi/mpiext/example/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/example/Makefile" ;;
    "ompi/contrib/vt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/Makefile" ;;
    "ompi/contrib/vt/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/Makefile" ;;
    "ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt" ;;
    "ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt" ;;
    "ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt" ;;
    "ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "orte/tools/wrappers/orte_wrapper_script") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/orte_wrapper_script" ;;
    "ompi/tools/wrappers/ompi_wrapper_script") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi_wrapper_script" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    "test/event/Makefile") CONFIG_FILES="$CONFIG_FILES test/event/Makefile" ;;
    "test/asm/Makefile") CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;;
    "test/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES test/datatype/Makefile" ;;
    "test/class/Makefile") CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;;
    "test/support/Makefile") CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;;
    "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;;
    "test/util/Makefile") CONFIG_FILES="$CONFIG_FILES test/util/Makefile" ;;
    "opal/Makefile") CONFIG_FILES="$CONFIG_FILES opal/Makefile" ;;
    "opal/etc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/etc/Makefile" ;;
    "opal/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/include/Makefile" ;;
    "opal/asm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/asm/Makefile" ;;
    "opal/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES opal/datatype/Makefile" ;;
    "opal/event/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/Makefile" ;;
    "opal/event/compat/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/Makefile" ;;
    "opal/event/compat/sys/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/sys/Makefile" ;;
    "opal/util/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/Makefile" ;;
    "opal/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/keyval/Makefile" ;;
    "opal/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/base/Makefile" ;;
    "opal/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/Makefile" ;;
    "opal/tools/wrappers/opalcc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalcc-wrapper-data.txt" ;;
    "opal/tools/wrappers/opalc++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalc++-wrapper-data.txt" ;;
    "opal/tools/wrappers/opal.pc") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opal.pc" ;;
    "opal/tools/opal-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-checkpoint/Makefile" ;;
    "opal/tools/opal-restart/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-restart/Makefile" ;;
    "orte/Makefile") CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;;
    "orte/include/Makefile") CONFIG_FILES="$CONFIG_FILES orte/include/Makefile" ;;
    "orte/etc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/etc/Makefile" ;;
    "orte/tools/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orted/Makefile" ;;
    "orte/tools/orterun/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orterun/Makefile" ;;
    "orte/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/Makefile" ;;
    "orte/tools/wrappers/ortecc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortecc-wrapper-data.txt" ;;
    "orte/tools/wrappers/ortec++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortec++-wrapper-data.txt" ;;
    "orte/tools/wrappers/orte.pc") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/orte.pc" ;;
    "orte/tools/orte-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-checkpoint/Makefile" ;;
    "orte/tools/orte-iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-iof/Makefile" ;;
    "orte/tools/orte-restart/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-restart/Makefile" ;;
    "orte/tools/orte-ps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-ps/Makefile" ;;
    "orte/tools/orte-clean/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-clean/Makefile" ;;
    "orte/tools/orte-top/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-top/Makefile" ;;
    "orte/tools/orte-bootproxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-bootproxy/Makefile" ;;
    "ompi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/Makefile" ;;
    "ompi/etc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/etc/Makefile" ;;
    "ompi/include/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/include/Makefile" ;;
    "ompi/include/mpif.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif.h" ;;
    "ompi/include/mpif-config.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif-config.h" ;;
    "ompi/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/datatype/Makefile" ;;
    "ompi/debuggers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/debuggers/Makefile" ;;
    "ompi/mpi/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/Makefile" ;;
    "ompi/mpi/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/profile/Makefile" ;;
    "ompi/mpi/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/cxx/Makefile" ;;
    "ompi/mpi/f77/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/Makefile" ;;
    "ompi/mpi/f77/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/profile/Makefile" ;;
    "ompi/mpi/f90/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/Makefile" ;;
    "ompi/mpi/f90/fortran_kinds.sh") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_kinds.sh" ;;
    "ompi/mpi/f90/fortran_sizes.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_sizes.h" ;;
    "ompi/mpi/f90/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/scripts/Makefile" ;;
    "ompi/tools/ompi_info/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi_info/Makefile" ;;
    "ompi/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/Makefile" ;;
    "ompi/tools/wrappers/mpicc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpicc-wrapper-data.txt" ;;
    "ompi/tools/wrappers/mpic++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpic++-wrapper-data.txt" ;;
    "ompi/tools/wrappers/mpif77-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif77-wrapper-data.txt" ;;
    "ompi/tools/wrappers/mpif90-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif90-wrapper-data.txt" ;;
    "ompi/tools/wrappers/ompi.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi.pc" ;;
    "ompi/tools/wrappers/ompi-c.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-c.pc" ;;
    "ompi/tools/wrappers/ompi-cxx.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-cxx.pc" ;;
    "ompi/tools/wrappers/ompi-f77.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-f77.pc" ;;
    "ompi/tools/wrappers/ompi-f90.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-f90.pc" ;;
    "ompi/tools/ortetools/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ortetools/Makefile" ;;
    "ompi/tools/ompi-server/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi-server/Makefile" ;;
    "ompi/tools/ompi-probe/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi-probe/Makefile" ;;
    "ompi/tools/ompi-profiler/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi-profiler/Makefile" ;;

  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || as_fn_error "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008 Free Software Foundation, Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags="CXX F77 FC "

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Assembler program.
AS=$AS

# DLL creation program.
DLLTOOL=$DLLTOOL

# Object dumper program.
OBJDUMP=$OBJDUMP

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that does not interpret backslashes.
ECHO=$lt_ECHO

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  case $xsi_shell in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
}

# func_basename file
func_basename ()
{
  func_basename_result="${1##*/}"
}

# func_dirname_and_basename file append nondir_replacement
# perform func_basename and func_dirname in a single function
# call:
#   dirname:  Compute the dirname of FILE.  If nonempty,
#             add APPEND to the result, otherwise set result
#             to NONDIR_REPLACEMENT.
#             value returned in "$func_dirname_result"
#   basename: Compute filename of FILE.
#             value retuned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
func_dirname_and_basename ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
  func_basename_result="${1##*/}"
}

# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  # positional parameters, so assign one to ordinary parameter first.
  func_stripname_result=${3}
  func_stripname_result=${func_stripname_result#"${1}"}
  func_stripname_result=${func_stripname_result%"${2}"}
}

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=${1%%=*}
  func_opt_split_arg=${1#*=}
}

# func_lo2o object
func_lo2o ()
{
  case ${1} in
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *)    func_lo2o_result=${1} ;;
  esac
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=${1%.*}.lo
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=$(( $* ))
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=${#1}
}

_LT_EOF
    ;;
  *) # Bourne compatible functions.
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  if test "X$func_dirname_result" = "X${1}"; then
    func_dirname_result="${3}"
  else
    func_dirname_result="$func_dirname_result${2}"
  fi
}

# func_basename file
func_basename ()
{
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}


# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
  case ${2} in
    .*) func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    *)  func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  esac
}

# sed scripts:
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[^=]*=//'

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
}

# func_lo2o object
func_lo2o ()
{
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=`expr "$@"`
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
}

_LT_EOF
esac

case $lt_shell_append in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1+=\$2"
}
_LT_EOF
    ;;
  *)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1=\$$1\$2"
}

_LT_EOF
    ;;
  esac


  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: F77

# The linker used to build libraries.
LD=$lt_LD_F77

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_F77

# A language specific compiler.
CC=$lt_compiler_F77

# Is the compiler the GNU compiler?
with_gcc=$GCC_F77

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_F77

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_F77

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_F77

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_F77

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_F77

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path_F77

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_F77

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_F77

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_F77

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_F77
postdep_objects=$lt_postdep_objects_F77
predeps=$lt_predeps_F77
postdeps=$lt_postdeps_F77

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77

# ### END LIBTOOL TAG CONFIG: F77
_LT_EOF


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: FC

# The linker used to build libraries.
LD=$lt_LD_FC

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_FC

# A language specific compiler.
CC=$lt_compiler_FC

# Is the compiler the GNU compiler?
with_gcc=$GCC_FC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_FC

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_FC

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_FC

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_FC

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_FC

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_FC
archive_expsym_cmds=$lt_archive_expsym_cmds_FC

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_FC
module_expsym_cmds=$lt_module_expsym_cmds_FC

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_FC

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_FC

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_FC

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_FC

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_FC

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_FC

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_FC

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_FC

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_FC

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_FC

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path_FC

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_FC

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_FC

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_FC

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_FC

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_FC

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_FC

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_FC

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_FC
postdep_objects=$lt_postdep_objects_FC
predeps=$lt_predeps_FC
postdeps=$lt_postdeps_FC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_FC

# ### END LIBTOOL TAG CONFIG: FC
_LT_EOF

 ;;
    "orte/tools/wrappers/orte_wrapper_script":F) chmod +x orte/tools/wrappers/orte_wrapper_script ;;
    "ompi/tools/wrappers/ompi_wrapper_script":F) chmod +x ompi/tools/wrappers/ompi_wrapper_script ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit $?
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

