#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for Open MPI 4.1.4.
#
# Report bugs to .
#
#
# Copyright (C) 1992-1996, 1998-2012 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.
as_myself=
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
# Use a proper internal environment variable to ensure we don't fall
# into an infinite loop, continuously re-executing ourselves.
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
_as_can_reexec=no; export _as_can_reexec;
# 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.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
*v*x* | *x*v* ) as_opts=-vx ;;
*v* ) as_opts=-v ;;
*x* ) as_opts=-x ;;
* ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
fi
# We don't want this to propagate to other subprocesses.
{ _as_can_reexec=; unset _as_can_reexec;}
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
test -x / || 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
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
PATH=/empty FPATH=/empty; export PATH FPATH
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 :
export CONFIG_SHELL
# 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.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
*v*x* | *x*v* ) as_opts=-vx ;;
*v* ) as_opts=-v ;;
*x* ) as_opts=-x ;;
* ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
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_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
test -f "$1" && test -x "$1"
} # as_fn_executable_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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fi
$as_echo "$as_me: error: $2" >&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; }
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
# already done that, so ensure we don't try to do so again and fall
# in an infinite loop. This has already happened in practice.
_as_can_reexec=no; export _as_can_reexec
# 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 -pR'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -pR'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -pR'
fi
else
as_ln_s='cp -pR'
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
as_test_x='test -x'
as_executable_p=as_fn_executable_p
# 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'"
SHELL=${CONFIG_SHELL-/bin/sh}
test -n "$DJDIR" || exec 7<&0 &1
# Name of the host.
# hostname on some systems (SVR3.2, old GNU/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='4.1.4'
PACKAGE_STRING='Open MPI 4.1.4'
PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/'
PACKAGE_URL=''
# Factoring default headers for most tests.
ac_includes_default="\
#include
#ifdef HAVE_SYS_TYPES_H
# include
#endif
#ifdef HAVE_SYS_STAT_H
# include
#endif
#ifdef STDC_HEADERS
# include
# include
#else
# ifdef HAVE_STDLIB_H
# include
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
# include
# endif
# include
#endif
#ifdef HAVE_STRINGS_H
# include
#endif
#ifdef HAVE_INTTYPES_H
# include
#endif
#ifdef HAVE_STDINT_H
# include
#endif
#ifdef HAVE_UNISTD_H
# include
#endif"
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
oshmemincludedir
oshmemlibdir
oshmemdatadir
ompiincludedir
ompilibdir
ompidatadir
orteincludedir
ortelibdir
ortedatadir
opalincludedir
opallibdir
opaldatadir
PROJECT_OSHMEM_FALSE
PROJECT_OSHMEM_TRUE
PROJECT_ORTE_FALSE
PROJECT_ORTE_TRUE
PROJECT_OMPI_FALSE
PROJECT_OMPI_TRUE
OMPI_WRAPPER_LIBDIR
OMPI_WRAPPER_INCLUDEDIR
OMPI_WRAPPER_FORTRAN_REQUIRED_FILE
OMPI_WRAPPER_CXX_REQUIRED_FILE
OMPI_WRAPPER_CXX_LIB
OMPI_WRAPPER_EXTRA_LIBS
OMPI_PKG_CONFIG_LDFLAGS
OMPI_WRAPPER_EXTRA_FC_LDFLAGS
OMPI_WRAPPER_EXTRA_LDFLAGS
OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX
OMPI_WRAPPER_EXTRA_FCFLAGS
OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX
OMPI_WRAPPER_EXTRA_CXXFLAGS
OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX
OMPI_WRAPPER_EXTRA_CFLAGS
OMPI_WRAPPER_EXTRA_CPPFLAGS
ORTE_WRAPPER_EXTRA_LIBS
ORTE_PKG_CONFIG_LDFLAGS
ORTE_WRAPPER_EXTRA_LDFLAGS
ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX
ORTE_WRAPPER_EXTRA_CFLAGS
ORTE_WRAPPER_EXTRA_CPPFLAGS
OPAL_WRAPPER_EXTRA_LIBS
OPAL_PKG_CONFIG_LDFLAGS
OPAL_WRAPPER_EXTRA_LDFLAGS
OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX
OPAL_WRAPPER_EXTRA_CXXFLAGS
OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX
OPAL_WRAPPER_EXTRA_CFLAGS
OPAL_WRAPPER_EXTRA_CPPFLAGS
AMCA_PARAM_SETS_DIR
OMPI_LIBMPI_EXTRA_LDFLAGS
OMPI_LIBMPI_EXTRA_LIBS
FFLAGS
CXXCPPFLAGS
MPIR_UNWIND_CFLAGS
DEBUGGER_CFLAGS
CFLAGS_WITHOUT_OPTFLAGS
OPAL_DYN_LIB_SUFFIX
OPAL_DYN_LIB_PREFIX
LT_SYS_LIBRARY_PATH
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
RANLIB
ac_ct_AR
AR
LD
SED
LIBTOOL
DLLTOOL
AS
OMPI_CONTRIB_DIST_SUBDIRS
OMPI_CONTRIB_SUBDIRS
OMPI_MPIEXT_USEMPIF08_LIBS
OMPI_MPIEXT_USEMPIF08_DIRS
OMPI_MPIEXT_USEMPI_LIBS
OMPI_MPIEXT_USEMPI_DIRS
OMPI_MPIEXT_MPIFH_LIBS
OMPI_MPIEXT_MPIFH_DIRS
OMPI_MPIEXT_C_LIBS
OMPI_MPIEXT_C_DIRS
OMPI_MPIEXT_ALL_SUBDIRS
OMPI_BUILD_FORTRAN_USEMPI_OR_USEMPIF08_EXT_FALSE
OMPI_BUILD_FORTRAN_USEMPI_OR_USEMPIF08_EXT_TRUE
OMPI_BUILD_FORTRAN_USEMPIF08_EXT_FALSE
OMPI_BUILD_FORTRAN_USEMPIF08_EXT_TRUE
OMPI_BUILD_FORTRAN_USEMPI_EXT_FALSE
OMPI_BUILD_FORTRAN_USEMPI_EXT_TRUE
MCA_PROJECT_DIST_SUBDIRS
MCA_PROJECT_SUBDIRS
MCA_oshmem_FRAMEWORK_LIBS
MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_oshmem_FRAMEWORKS_SUBDIRS
MCA_oshmem_FRAMEWORKS
MCA_oshmem_sshmem_DSO_SUBDIRS
MCA_oshmem_sshmem_STATIC_SUBDIRS
MCA_oshmem_sshmem_ALL_SUBDIRS
MCA_oshmem_sshmem_STATIC_LTLIBS
MCA_oshmem_sshmem_DSO_COMPONENTS
MCA_oshmem_sshmem_STATIC_COMPONENTS
MCA_oshmem_sshmem_ALL_COMPONENTS
MCA_BUILD_oshmem_sshmem_verbs_DSO_FALSE
MCA_BUILD_oshmem_sshmem_verbs_DSO_TRUE
oshmem_verbs_LIBS
oshmem_verbs_LDFLAGS
oshmem_verbs_CPPFLAGS
oshmem_verbs_CFLAGS
MCA_BUILD_oshmem_sshmem_ucx_DSO_FALSE
MCA_BUILD_oshmem_sshmem_ucx_DSO_TRUE
sshmem_ucx_LIBS
sshmem_ucx_LDFLAGS
sshmem_ucx_CPPFLAGS
sshmem_ucx_CFLAGS
MCA_BUILD_oshmem_sshmem_sysv_DSO_FALSE
MCA_BUILD_oshmem_sshmem_sysv_DSO_TRUE
MCA_BUILD_oshmem_sshmem_mmap_DSO_FALSE
MCA_BUILD_oshmem_sshmem_mmap_DSO_TRUE
MCA_oshmem_spml_DIRECT_CALL_HEADER
MCA_oshmem_spml_DSO_SUBDIRS
MCA_oshmem_spml_STATIC_SUBDIRS
MCA_oshmem_spml_ALL_SUBDIRS
MCA_oshmem_spml_STATIC_LTLIBS
MCA_oshmem_spml_DSO_COMPONENTS
MCA_oshmem_spml_STATIC_COMPONENTS
MCA_oshmem_spml_ALL_COMPONENTS
MCA_BUILD_oshmem_spml_ucx_DSO_FALSE
MCA_BUILD_oshmem_spml_ucx_DSO_TRUE
spml_ucx_LIBS
spml_ucx_LDFLAGS
spml_ucx_CPPFLAGS
spml_ucx_CFLAGS
MCA_BUILD_oshmem_spml_ikrit_DSO_FALSE
MCA_BUILD_oshmem_spml_ikrit_DSO_TRUE
spml_ikrit_LIBS
spml_ikrit_LDFLAGS
spml_ikrit_CPPFLAGS
spml_ikrit_CFLAGS
MCA_oshmem_scoll_DSO_SUBDIRS
MCA_oshmem_scoll_STATIC_SUBDIRS
MCA_oshmem_scoll_ALL_SUBDIRS
MCA_oshmem_scoll_STATIC_LTLIBS
MCA_oshmem_scoll_DSO_COMPONENTS
MCA_oshmem_scoll_STATIC_COMPONENTS
MCA_oshmem_scoll_ALL_COMPONENTS
MCA_BUILD_oshmem_scoll_ucc_DSO_FALSE
MCA_BUILD_oshmem_scoll_ucc_DSO_TRUE
scoll_ucc_LIBS
scoll_ucc_LDFLAGS
scoll_ucc_CPPFLAGS
scoll_ucc_CFLAGS
MCA_BUILD_oshmem_scoll_fca_DSO_FALSE
MCA_BUILD_oshmem_scoll_fca_DSO_TRUE
scoll_fca_HOME
scoll_fca_LIBS
scoll_fca_LDFLAGS
scoll_fca_CPPFLAGS
scoll_fca_CFLAGS
MCA_BUILD_oshmem_scoll_mpi_DSO_FALSE
MCA_BUILD_oshmem_scoll_mpi_DSO_TRUE
MCA_BUILD_oshmem_scoll_basic_DSO_FALSE
MCA_BUILD_oshmem_scoll_basic_DSO_TRUE
MCA_oshmem_memheap_DIRECT_CALL_HEADER
MCA_oshmem_memheap_DSO_SUBDIRS
MCA_oshmem_memheap_STATIC_SUBDIRS
MCA_oshmem_memheap_ALL_SUBDIRS
MCA_oshmem_memheap_STATIC_LTLIBS
MCA_oshmem_memheap_DSO_COMPONENTS
MCA_oshmem_memheap_STATIC_COMPONENTS
MCA_oshmem_memheap_ALL_COMPONENTS
MCA_BUILD_oshmem_memheap_ptmalloc_DSO_FALSE
MCA_BUILD_oshmem_memheap_ptmalloc_DSO_TRUE
MCA_BUILD_oshmem_memheap_buddy_DSO_FALSE
MCA_BUILD_oshmem_memheap_buddy_DSO_TRUE
MCA_oshmem_atomic_DSO_SUBDIRS
MCA_oshmem_atomic_STATIC_SUBDIRS
MCA_oshmem_atomic_ALL_SUBDIRS
MCA_oshmem_atomic_STATIC_LTLIBS
MCA_oshmem_atomic_DSO_COMPONENTS
MCA_oshmem_atomic_STATIC_COMPONENTS
MCA_oshmem_atomic_ALL_COMPONENTS
MCA_BUILD_oshmem_atomic_ucx_DSO_FALSE
MCA_BUILD_oshmem_atomic_ucx_DSO_TRUE
atomic_ucx_LIBS
atomic_ucx_LDFLAGS
atomic_ucx_CPPFLAGS
atomic_ucx_CFLAGS
MCA_BUILD_oshmem_atomic_mxm_DSO_FALSE
MCA_BUILD_oshmem_atomic_mxm_DSO_TRUE
atomic_mxm_LIBS
atomic_mxm_LDFLAGS
atomic_mxm_CPPFLAGS
atomic_mxm_CFLAGS
MCA_BUILD_oshmem_atomic_basic_DSO_FALSE
MCA_BUILD_oshmem_atomic_basic_DSO_TRUE
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_ompi_vprotocol_DSO_SUBDIRS
MCA_ompi_vprotocol_STATIC_SUBDIRS
MCA_ompi_vprotocol_ALL_SUBDIRS
MCA_ompi_vprotocol_STATIC_LTLIBS
MCA_ompi_vprotocol_DSO_COMPONENTS
MCA_ompi_vprotocol_STATIC_COMPONENTS
MCA_ompi_vprotocol_ALL_COMPONENTS
MCA_BUILD_ompi_vprotocol_pessimist_DSO_FALSE
MCA_BUILD_ompi_vprotocol_pessimist_DSO_TRUE
MCA_ompi_topo_DSO_SUBDIRS
MCA_ompi_topo_STATIC_SUBDIRS
MCA_ompi_topo_ALL_SUBDIRS
MCA_ompi_topo_STATIC_LTLIBS
MCA_ompi_topo_DSO_COMPONENTS
MCA_ompi_topo_STATIC_COMPONENTS
MCA_ompi_topo_ALL_COMPONENTS
MCA_BUILD_ompi_topo_treematch_DSO_FALSE
MCA_BUILD_ompi_topo_treematch_DSO_TRUE
topo_treematch_local_FALSE
topo_treematch_local_TRUE
MCA_BUILD_ompi_topo_basic_DSO_FALSE
MCA_BUILD_ompi_topo_basic_DSO_TRUE
MCA_ompi_sharedfp_DSO_SUBDIRS
MCA_ompi_sharedfp_STATIC_SUBDIRS
MCA_ompi_sharedfp_ALL_SUBDIRS
MCA_ompi_sharedfp_STATIC_LTLIBS
MCA_ompi_sharedfp_DSO_COMPONENTS
MCA_ompi_sharedfp_STATIC_COMPONENTS
MCA_ompi_sharedfp_ALL_COMPONENTS
MCA_BUILD_ompi_sharedfp_sm_DSO_FALSE
MCA_BUILD_ompi_sharedfp_sm_DSO_TRUE
MCA_BUILD_ompi_sharedfp_lockedfile_DSO_FALSE
MCA_BUILD_ompi_sharedfp_lockedfile_DSO_TRUE
MCA_BUILD_ompi_sharedfp_individual_DSO_FALSE
MCA_BUILD_ompi_sharedfp_individual_DSO_TRUE
MCA_ompi_rte_DSO_SUBDIRS
MCA_ompi_rte_STATIC_SUBDIRS
MCA_ompi_rte_ALL_SUBDIRS
MCA_ompi_rte_STATIC_LTLIBS
MCA_ompi_rte_DSO_COMPONENTS
MCA_ompi_rte_STATIC_COMPONENTS
MCA_ompi_rte_ALL_COMPONENTS
MCA_BUILD_ompi_rte_orte_DSO_FALSE
MCA_BUILD_ompi_rte_orte_DSO_TRUE
OMPI_RTE_ORTE_FALSE
OMPI_RTE_ORTE_TRUE
MCA_BUILD_ompi_rte_pmix_DSO_FALSE
MCA_BUILD_ompi_rte_pmix_DSO_TRUE
OMPI_RTE_PMIX_FALSE
OMPI_RTE_PMIX_TRUE
MCA_ompi_pml_DIRECT_CALL_HEADER
MCA_ompi_pml_DSO_SUBDIRS
MCA_ompi_pml_STATIC_SUBDIRS
MCA_ompi_pml_ALL_SUBDIRS
MCA_ompi_pml_STATIC_LTLIBS
MCA_ompi_pml_DSO_COMPONENTS
MCA_ompi_pml_STATIC_COMPONENTS
MCA_ompi_pml_ALL_COMPONENTS
MCA_BUILD_ompi_pml_yalla_DSO_FALSE
MCA_BUILD_ompi_pml_yalla_DSO_TRUE
pml_yalla_LIBS
pml_yalla_LDFLAGS
pml_yalla_CPPFLAGS
MCA_BUILD_ompi_pml_v_DSO_FALSE
MCA_BUILD_ompi_pml_v_DSO_TRUE
MCA_BUILD_ompi_pml_ucx_DSO_FALSE
MCA_BUILD_ompi_pml_ucx_DSO_TRUE
pml_ucx_LIBS
pml_ucx_LDFLAGS
pml_ucx_CPPFLAGS
MCA_BUILD_ompi_pml_ob1_DSO_FALSE
MCA_BUILD_ompi_pml_ob1_DSO_TRUE
MCA_BUILD_ompi_pml_monitoring_DSO_FALSE
MCA_BUILD_ompi_pml_monitoring_DSO_TRUE
MCA_BUILD_ompi_pml_crcpw_DSO_FALSE
MCA_BUILD_ompi_pml_crcpw_DSO_TRUE
MCA_BUILD_ompi_pml_cm_DSO_FALSE
MCA_BUILD_ompi_pml_cm_DSO_TRUE
MCA_ompi_osc_DSO_SUBDIRS
MCA_ompi_osc_STATIC_SUBDIRS
MCA_ompi_osc_ALL_SUBDIRS
MCA_ompi_osc_STATIC_LTLIBS
MCA_ompi_osc_DSO_COMPONENTS
MCA_ompi_osc_STATIC_COMPONENTS
MCA_ompi_osc_ALL_COMPONENTS
MCA_BUILD_ompi_osc_ucx_DSO_FALSE
MCA_BUILD_ompi_osc_ucx_DSO_TRUE
osc_ucx_LIBS
osc_ucx_LDFLAGS
osc_ucx_CPPFLAGS
MCA_BUILD_ompi_osc_rdma_DSO_FALSE
MCA_BUILD_ompi_osc_rdma_DSO_TRUE
MCA_BUILD_ompi_osc_pt2pt_DSO_FALSE
MCA_BUILD_ompi_osc_pt2pt_DSO_TRUE
MCA_BUILD_ompi_osc_portals4_DSO_FALSE
MCA_BUILD_ompi_osc_portals4_DSO_TRUE
osc_portals4_LIBS
osc_portals4_LDFLAGS
osc_portals4_CPPFLAGS
MCA_BUILD_ompi_osc_monitoring_DSO_FALSE
MCA_BUILD_ompi_osc_monitoring_DSO_TRUE
MCA_BUILD_ompi_osc_sm_DSO_FALSE
MCA_BUILD_ompi_osc_sm_DSO_TRUE
MCA_ompi_op_DSO_SUBDIRS
MCA_ompi_op_STATIC_SUBDIRS
MCA_ompi_op_ALL_SUBDIRS
MCA_ompi_op_STATIC_LTLIBS
MCA_ompi_op_DSO_COMPONENTS
MCA_ompi_op_STATIC_COMPONENTS
MCA_ompi_op_ALL_COMPONENTS
MCA_BUILD_ompi_op_avx_DSO_FALSE
MCA_BUILD_ompi_op_avx_DSO_TRUE
MCA_BUILD_OP_AVX_FLAGS
MCA_BUILD_OP_AVX2_FLAGS
MCA_BUILD_OP_AVX512_FLAGS
MCA_BUILD_ompi_op_has_sse3_support_FALSE
MCA_BUILD_ompi_op_has_sse3_support_TRUE
MCA_BUILD_ompi_op_has_sse41_support_FALSE
MCA_BUILD_ompi_op_has_sse41_support_TRUE
MCA_BUILD_ompi_op_has_avx_support_FALSE
MCA_BUILD_ompi_op_has_avx_support_TRUE
MCA_BUILD_ompi_op_has_avx2_support_FALSE
MCA_BUILD_ompi_op_has_avx2_support_TRUE
MCA_BUILD_ompi_op_has_avx512_support_FALSE
MCA_BUILD_ompi_op_has_avx512_support_TRUE
MCA_ompi_mtl_DIRECT_CALL_HEADER
MCA_ompi_mtl_DSO_SUBDIRS
MCA_ompi_mtl_STATIC_SUBDIRS
MCA_ompi_mtl_ALL_SUBDIRS
MCA_ompi_mtl_STATIC_LTLIBS
MCA_ompi_mtl_DSO_COMPONENTS
MCA_ompi_mtl_STATIC_COMPONENTS
MCA_ompi_mtl_ALL_COMPONENTS
MCA_BUILD_ompi_mtl_psm2_DSO_FALSE
MCA_BUILD_ompi_mtl_psm2_DSO_TRUE
mtl_psm2_LIBS
mtl_psm2_LDFLAGS
mtl_psm2_CPPFLAGS
mtl_psm2_CFLAGS
MCA_BUILD_ompi_mtl_psm_DSO_FALSE
MCA_BUILD_ompi_mtl_psm_DSO_TRUE
mtl_psm_LIBS
mtl_psm_LDFLAGS
mtl_psm_CPPFLAGS
mtl_psm_CFLAGS
MCA_BUILD_ompi_mtl_portals4_DSO_FALSE
MCA_BUILD_ompi_mtl_portals4_DSO_TRUE
mtl_portals4_LIBS
mtl_portals4_LDFLAGS
mtl_portals4_CPPFLAGS
OMPI_MTL_PORTALS4_FLOW_CONTROL_FALSE
OMPI_MTL_PORTALS4_FLOW_CONTROL_TRUE
MCA_BUILD_ompi_mtl_ofi_DSO_FALSE
MCA_BUILD_ompi_mtl_ofi_DSO_TRUE
MCA_ompi_io_DSO_SUBDIRS
MCA_ompi_io_STATIC_SUBDIRS
MCA_ompi_io_ALL_SUBDIRS
MCA_ompi_io_STATIC_LTLIBS
MCA_ompi_io_DSO_COMPONENTS
MCA_ompi_io_STATIC_COMPONENTS
MCA_ompi_io_ALL_COMPONENTS
MCA_BUILD_ompi_io_romio321_DSO_FALSE
MCA_BUILD_ompi_io_romio321_DSO_TRUE
MCA_io_romio321_SHOULD_BUILD_FALSE
MCA_io_romio321_SHOULD_BUILD_TRUE
MCA_BUILD_ompi_io_ompio_DSO_FALSE
MCA_BUILD_ompi_io_ompio_DSO_TRUE
MCA_ompi_hook_DSO_SUBDIRS
MCA_ompi_hook_STATIC_SUBDIRS
MCA_ompi_hook_ALL_SUBDIRS
MCA_ompi_hook_STATIC_LTLIBS
MCA_ompi_hook_DSO_COMPONENTS
MCA_ompi_hook_STATIC_COMPONENTS
MCA_ompi_hook_ALL_COMPONENTS
MCA_ompi_fs_DSO_SUBDIRS
MCA_ompi_fs_STATIC_SUBDIRS
MCA_ompi_fs_ALL_SUBDIRS
MCA_ompi_fs_STATIC_LTLIBS
MCA_ompi_fs_DSO_COMPONENTS
MCA_ompi_fs_STATIC_COMPONENTS
MCA_ompi_fs_ALL_COMPONENTS
MCA_BUILD_ompi_fs_ufs_DSO_FALSE
MCA_BUILD_ompi_fs_ufs_DSO_TRUE
MCA_BUILD_ompi_fs_pvfs2_DSO_FALSE
MCA_BUILD_ompi_fs_pvfs2_DSO_TRUE
fs_pvfs2_LIBS
fs_pvfs2_LDFLAGS
fs_pvfs2_CPPFLAGS
MCA_BUILD_ompi_fs_lustre_DSO_FALSE
MCA_BUILD_ompi_fs_lustre_DSO_TRUE
fs_lustre_LIBS
fs_lustre_LDFLAGS
fs_lustre_CPPFLAGS
MCA_BUILD_ompi_fs_ime_DSO_FALSE
MCA_BUILD_ompi_fs_ime_DSO_TRUE
fs_ime_LIBS
fs_ime_LDFLAGS
fs_ime_CPPFLAGS
MCA_BUILD_ompi_fs_gpfs_DSO_FALSE
MCA_BUILD_ompi_fs_gpfs_DSO_TRUE
fs_gpfs_LIBS
fs_gpfs_LDFLAGS
fs_gpfs_CPPFLAGS
MCA_ompi_fcoll_DSO_SUBDIRS
MCA_ompi_fcoll_STATIC_SUBDIRS
MCA_ompi_fcoll_ALL_SUBDIRS
MCA_ompi_fcoll_STATIC_LTLIBS
MCA_ompi_fcoll_DSO_COMPONENTS
MCA_ompi_fcoll_STATIC_COMPONENTS
MCA_ompi_fcoll_ALL_COMPONENTS
MCA_BUILD_ompi_fcoll_vulcan_DSO_FALSE
MCA_BUILD_ompi_fcoll_vulcan_DSO_TRUE
MCA_BUILD_ompi_fcoll_two_phase_DSO_FALSE
MCA_BUILD_ompi_fcoll_two_phase_DSO_TRUE
MCA_BUILD_ompi_fcoll_individual_DSO_FALSE
MCA_BUILD_ompi_fcoll_individual_DSO_TRUE
MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_FALSE
MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_TRUE
MCA_BUILD_ompi_fcoll_dynamic_DSO_FALSE
MCA_BUILD_ompi_fcoll_dynamic_DSO_TRUE
MCA_ompi_fbtl_DSO_SUBDIRS
MCA_ompi_fbtl_STATIC_SUBDIRS
MCA_ompi_fbtl_ALL_SUBDIRS
MCA_ompi_fbtl_STATIC_LTLIBS
MCA_ompi_fbtl_DSO_COMPONENTS
MCA_ompi_fbtl_STATIC_COMPONENTS
MCA_ompi_fbtl_ALL_COMPONENTS
MCA_BUILD_ompi_fbtl_pvfs2_DSO_FALSE
MCA_BUILD_ompi_fbtl_pvfs2_DSO_TRUE
fbtl_pvfs2_LIBS
fbtl_pvfs2_LDFLAGS
fbtl_pvfs2_CPPFLAGS
MCA_BUILD_ompi_fbtl_posix_DSO_FALSE
MCA_BUILD_ompi_fbtl_posix_DSO_TRUE
MCA_BUILD_ompi_fbtl_ime_DSO_FALSE
MCA_BUILD_ompi_fbtl_ime_DSO_TRUE
fbtl_ime_LIBS
fbtl_ime_LDFLAGS
fbtl_ime_CPPFLAGS
MCA_ompi_crcp_DSO_SUBDIRS
MCA_ompi_crcp_STATIC_SUBDIRS
MCA_ompi_crcp_ALL_SUBDIRS
MCA_ompi_crcp_STATIC_LTLIBS
MCA_ompi_crcp_DSO_COMPONENTS
MCA_ompi_crcp_STATIC_COMPONENTS
MCA_ompi_crcp_ALL_COMPONENTS
MCA_BUILD_ompi_crcp_bkmrk_DSO_FALSE
MCA_BUILD_ompi_crcp_bkmrk_DSO_TRUE
MCA_ompi_coll_DSO_SUBDIRS
MCA_ompi_coll_STATIC_SUBDIRS
MCA_ompi_coll_ALL_SUBDIRS
MCA_ompi_coll_STATIC_LTLIBS
MCA_ompi_coll_DSO_COMPONENTS
MCA_ompi_coll_STATIC_COMPONENTS
MCA_ompi_coll_ALL_COMPONENTS
MCA_BUILD_ompi_coll_ucc_DSO_FALSE
MCA_BUILD_ompi_coll_ucc_DSO_TRUE
MCA_BUILD_ompi_coll_portals4_DSO_FALSE
MCA_BUILD_ompi_coll_portals4_DSO_TRUE
coll_portals4_LIBS
coll_portals4_LDFLAGS
coll_portals4_CPPFLAGS
MCA_BUILD_ompi_coll_monitoring_DSO_FALSE
MCA_BUILD_ompi_coll_monitoring_DSO_TRUE
MCA_BUILD_ompi_coll_hcoll_DSO_FALSE
MCA_BUILD_ompi_coll_hcoll_DSO_TRUE
coll_hcoll_LIBS
coll_hcoll_LDFLAGS
coll_hcoll_CPPFLAGS
coll_hcoll_CFLAGS
MCA_BUILD_ompi_coll_fca_DSO_FALSE
MCA_BUILD_ompi_coll_fca_DSO_TRUE
coll_fca_LIBS
coll_fca_LDFLAGS
coll_fca_CPPFLAGS
coll_fca_CFLAGS
coll_fca_HOME
MCA_BUILD_ompi_coll_cuda_DSO_FALSE
MCA_BUILD_ompi_coll_cuda_DSO_TRUE
MCA_BUILD_ompi_coll_tuned_DSO_FALSE
MCA_BUILD_ompi_coll_tuned_DSO_TRUE
MCA_BUILD_ompi_coll_sync_DSO_FALSE
MCA_BUILD_ompi_coll_sync_DSO_TRUE
MCA_BUILD_ompi_coll_sm_DSO_FALSE
MCA_BUILD_ompi_coll_sm_DSO_TRUE
MCA_BUILD_ompi_coll_self_DSO_FALSE
MCA_BUILD_ompi_coll_self_DSO_TRUE
MCA_BUILD_ompi_coll_libnbc_DSO_FALSE
MCA_BUILD_ompi_coll_libnbc_DSO_TRUE
MCA_BUILD_ompi_coll_inter_DSO_FALSE
MCA_BUILD_ompi_coll_inter_DSO_TRUE
MCA_BUILD_ompi_coll_han_DSO_FALSE
MCA_BUILD_ompi_coll_han_DSO_TRUE
MCA_BUILD_ompi_coll_basic_DSO_FALSE
MCA_BUILD_ompi_coll_basic_DSO_TRUE
MCA_BUILD_ompi_coll_adapt_DSO_FALSE
MCA_BUILD_ompi_coll_adapt_DSO_TRUE
MCA_ompi_bml_DSO_SUBDIRS
MCA_ompi_bml_STATIC_SUBDIRS
MCA_ompi_bml_ALL_SUBDIRS
MCA_ompi_bml_STATIC_LTLIBS
MCA_ompi_bml_DSO_COMPONENTS
MCA_ompi_bml_STATIC_COMPONENTS
MCA_ompi_bml_ALL_COMPONENTS
MCA_BUILD_ompi_bml_r2_DSO_FALSE
MCA_BUILD_ompi_bml_r2_DSO_TRUE
MCA_ompi_common_DSO_SUBDIRS
MCA_ompi_common_STATIC_SUBDIRS
MCA_ompi_common_ALL_SUBDIRS
MCA_ompi_common_STATIC_LTLIBS
MCA_ompi_common_DSO_COMPONENTS
MCA_ompi_common_STATIC_COMPONENTS
MCA_ompi_common_ALL_COMPONENTS
MCA_BUILD_ompi_common_ompio_DSO_FALSE
MCA_BUILD_ompi_common_ompio_DSO_TRUE
MCA_BUILD_ompi_common_monitoring_DSO_FALSE
MCA_BUILD_ompi_common_monitoring_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_orte_state_DSO_SUBDIRS
MCA_orte_state_STATIC_SUBDIRS
MCA_orte_state_ALL_SUBDIRS
MCA_orte_state_STATIC_LTLIBS
MCA_orte_state_DSO_COMPONENTS
MCA_orte_state_STATIC_COMPONENTS
MCA_orte_state_ALL_COMPONENTS
MCA_BUILD_orte_state_tool_DSO_FALSE
MCA_BUILD_orte_state_tool_DSO_TRUE
MCA_BUILD_orte_state_orted_DSO_FALSE
MCA_BUILD_orte_state_orted_DSO_TRUE
MCA_BUILD_orte_state_novm_DSO_FALSE
MCA_BUILD_orte_state_novm_DSO_TRUE
MCA_BUILD_orte_state_hnp_DSO_FALSE
MCA_BUILD_orte_state_hnp_DSO_TRUE
MCA_BUILD_orte_state_app_DSO_FALSE
MCA_BUILD_orte_state_app_DSO_TRUE
MCA_orte_sstore_DSO_SUBDIRS
MCA_orte_sstore_STATIC_SUBDIRS
MCA_orte_sstore_ALL_SUBDIRS
MCA_orte_sstore_STATIC_LTLIBS
MCA_orte_sstore_DSO_COMPONENTS
MCA_orte_sstore_STATIC_COMPONENTS
MCA_orte_sstore_ALL_COMPONENTS
MCA_BUILD_orte_sstore_stage_DSO_FALSE
MCA_BUILD_orte_sstore_stage_DSO_TRUE
MCA_BUILD_orte_sstore_central_DSO_FALSE
MCA_BUILD_orte_sstore_central_DSO_TRUE
MCA_orte_snapc_DSO_SUBDIRS
MCA_orte_snapc_STATIC_SUBDIRS
MCA_orte_snapc_ALL_SUBDIRS
MCA_orte_snapc_STATIC_LTLIBS
MCA_orte_snapc_DSO_COMPONENTS
MCA_orte_snapc_STATIC_COMPONENTS
MCA_orte_snapc_ALL_COMPONENTS
MCA_BUILD_orte_snapc_full_DSO_FALSE
MCA_BUILD_orte_snapc_full_DSO_TRUE
MCA_orte_schizo_DSO_SUBDIRS
MCA_orte_schizo_STATIC_SUBDIRS
MCA_orte_schizo_ALL_SUBDIRS
MCA_orte_schizo_STATIC_LTLIBS
MCA_orte_schizo_DSO_COMPONENTS
MCA_orte_schizo_STATIC_COMPONENTS
MCA_orte_schizo_ALL_COMPONENTS
MCA_BUILD_orte_schizo_slurm_DSO_FALSE
MCA_BUILD_orte_schizo_slurm_DSO_TRUE
schizo_slurm_LIBS
schizo_slurm_LDFLAGS
schizo_slurm_CPPFLAGS
MCA_BUILD_orte_schizo_singularity_DSO_FALSE
MCA_BUILD_orte_schizo_singularity_DSO_TRUE
SINGULARITY
MCA_BUILD_orte_schizo_moab_DSO_FALSE
MCA_BUILD_orte_schizo_moab_DSO_TRUE
schizo_moab_LIBS
schizo_moab_LDFLAGS
schizo_moab_CPPFLAGS
MCA_BUILD_orte_schizo_jsm_DSO_FALSE
MCA_BUILD_orte_schizo_jsm_DSO_TRUE
MCA_BUILD_orte_schizo_alps_DSO_FALSE
MCA_BUILD_orte_schizo_alps_DSO_TRUE
schizo_alps_CPPFLAGS
MCA_BUILD_orte_schizo_orte_DSO_FALSE
MCA_BUILD_orte_schizo_orte_DSO_TRUE
MCA_BUILD_orte_schizo_ompi_DSO_FALSE
MCA_BUILD_orte_schizo_ompi_DSO_TRUE
MCA_BUILD_orte_schizo_flux_DSO_FALSE
MCA_BUILD_orte_schizo_flux_DSO_TRUE
MCA_orte_rtc_DSO_SUBDIRS
MCA_orte_rtc_STATIC_SUBDIRS
MCA_orte_rtc_ALL_SUBDIRS
MCA_orte_rtc_STATIC_LTLIBS
MCA_orte_rtc_DSO_COMPONENTS
MCA_orte_rtc_STATIC_COMPONENTS
MCA_orte_rtc_ALL_COMPONENTS
MCA_BUILD_orte_rtc_hwloc_DSO_FALSE
MCA_BUILD_orte_rtc_hwloc_DSO_TRUE
MCA_orte_routed_DSO_SUBDIRS
MCA_orte_routed_STATIC_SUBDIRS
MCA_orte_routed_ALL_SUBDIRS
MCA_orte_routed_STATIC_LTLIBS
MCA_orte_routed_DSO_COMPONENTS
MCA_orte_routed_STATIC_COMPONENTS
MCA_orte_routed_ALL_COMPONENTS
MCA_BUILD_orte_routed_radix_DSO_FALSE
MCA_BUILD_orte_routed_radix_DSO_TRUE
MCA_BUILD_orte_routed_direct_DSO_FALSE
MCA_BUILD_orte_routed_direct_DSO_TRUE
MCA_BUILD_orte_routed_binomial_DSO_FALSE
MCA_BUILD_orte_routed_binomial_DSO_TRUE
MCA_orte_rml_DSO_SUBDIRS
MCA_orte_rml_STATIC_SUBDIRS
MCA_orte_rml_ALL_SUBDIRS
MCA_orte_rml_STATIC_LTLIBS
MCA_orte_rml_DSO_COMPONENTS
MCA_orte_rml_STATIC_COMPONENTS
MCA_orte_rml_ALL_COMPONENTS
MCA_BUILD_orte_rml_oob_DSO_FALSE
MCA_BUILD_orte_rml_oob_DSO_TRUE
MCA_orte_rmaps_DSO_SUBDIRS
MCA_orte_rmaps_STATIC_SUBDIRS
MCA_orte_rmaps_ALL_SUBDIRS
MCA_orte_rmaps_STATIC_LTLIBS
MCA_orte_rmaps_DSO_COMPONENTS
MCA_orte_rmaps_STATIC_COMPONENTS
MCA_orte_rmaps_ALL_COMPONENTS
MCA_BUILD_orte_rmaps_seq_DSO_FALSE
MCA_BUILD_orte_rmaps_seq_DSO_TRUE
MCA_BUILD_orte_rmaps_round_robin_DSO_FALSE
MCA_BUILD_orte_rmaps_round_robin_DSO_TRUE
MCA_BUILD_orte_rmaps_resilient_DSO_FALSE
MCA_BUILD_orte_rmaps_resilient_DSO_TRUE
MCA_BUILD_orte_rmaps_rank_file_DSO_FALSE
MCA_BUILD_orte_rmaps_rank_file_DSO_TRUE
MCA_BUILD_orte_rmaps_ppr_DSO_FALSE
MCA_BUILD_orte_rmaps_ppr_DSO_TRUE
MCA_BUILD_orte_rmaps_mindist_DSO_FALSE
MCA_BUILD_orte_rmaps_mindist_DSO_TRUE
MCA_orte_regx_DSO_SUBDIRS
MCA_orte_regx_STATIC_SUBDIRS
MCA_orte_regx_ALL_SUBDIRS
MCA_orte_regx_STATIC_LTLIBS
MCA_orte_regx_DSO_COMPONENTS
MCA_orte_regx_STATIC_COMPONENTS
MCA_orte_regx_ALL_COMPONENTS
MCA_BUILD_orte_regx_reverse_DSO_FALSE
MCA_BUILD_orte_regx_reverse_DSO_TRUE
MCA_BUILD_orte_regx_naive_DSO_FALSE
MCA_BUILD_orte_regx_naive_DSO_TRUE
MCA_BUILD_orte_regx_fwd_DSO_FALSE
MCA_BUILD_orte_regx_fwd_DSO_TRUE
MCA_orte_ras_DSO_SUBDIRS
MCA_orte_ras_STATIC_SUBDIRS
MCA_orte_ras_ALL_SUBDIRS
MCA_orte_ras_STATIC_LTLIBS
MCA_orte_ras_DSO_COMPONENTS
MCA_orte_ras_STATIC_COMPONENTS
MCA_orte_ras_ALL_COMPONENTS
MCA_BUILD_orte_ras_tm_DSO_FALSE
MCA_BUILD_orte_ras_tm_DSO_TRUE
ras_tm_LIBS
ras_tm_LDFLAGS
ras_tm_CPPFLAGS
MCA_BUILD_orte_ras_slurm_DSO_FALSE
MCA_BUILD_orte_ras_slurm_DSO_TRUE
ras_slurm_LIBS
ras_slurm_LDFLAGS
ras_slurm_CPPFLAGS
MCA_BUILD_orte_ras_lsf_DSO_FALSE
MCA_BUILD_orte_ras_lsf_DSO_TRUE
ras_lsf_LIBS
ras_lsf_LDFLAGS
ras_lsf_CPPFLAGS
MCA_BUILD_orte_ras_gridengine_DSO_FALSE
MCA_BUILD_orte_ras_gridengine_DSO_TRUE
QRSH
MCA_BUILD_orte_ras_alps_DSO_FALSE
MCA_BUILD_orte_ras_alps_DSO_TRUE
ras_alps_CPPFLAGS
MCA_BUILD_orte_ras_simulator_DSO_FALSE
MCA_BUILD_orte_ras_simulator_DSO_TRUE
MCA_orte_plm_DSO_SUBDIRS
MCA_orte_plm_STATIC_SUBDIRS
MCA_orte_plm_ALL_SUBDIRS
MCA_orte_plm_STATIC_LTLIBS
MCA_orte_plm_DSO_COMPONENTS
MCA_orte_plm_STATIC_COMPONENTS
MCA_orte_plm_ALL_COMPONENTS
MCA_BUILD_orte_plm_tm_DSO_FALSE
MCA_BUILD_orte_plm_tm_DSO_TRUE
plm_tm_LIBS
plm_tm_LDFLAGS
plm_tm_CPPFLAGS
MCA_BUILD_orte_plm_slurm_DSO_FALSE
MCA_BUILD_orte_plm_slurm_DSO_TRUE
plm_slurm_LIBS
plm_slurm_LDFLAGS
plm_slurm_CPPFLAGS
MCA_BUILD_orte_plm_rsh_DSO_FALSE
MCA_BUILD_orte_plm_rsh_DSO_TRUE
MCA_BUILD_orte_plm_lsf_DSO_FALSE
MCA_BUILD_orte_plm_lsf_DSO_TRUE
plm_lsf_LIBS
plm_lsf_LDFLAGS
plm_lsf_CPPFLAGS
MCA_BUILD_orte_plm_isolated_DSO_FALSE
MCA_BUILD_orte_plm_isolated_DSO_TRUE
MCA_BUILD_orte_plm_alps_DSO_FALSE
MCA_BUILD_orte_plm_alps_DSO_TRUE
plm_alps_LIBS
plm_alps_LDFLAGS
plm_alps_CPPFLAGS
MCA_orte_oob_DSO_SUBDIRS
MCA_orte_oob_STATIC_SUBDIRS
MCA_orte_oob_ALL_SUBDIRS
MCA_orte_oob_STATIC_LTLIBS
MCA_orte_oob_DSO_COMPONENTS
MCA_orte_oob_STATIC_COMPONENTS
MCA_orte_oob_ALL_COMPONENTS
MCA_BUILD_orte_oob_tcp_DSO_FALSE
MCA_BUILD_orte_oob_tcp_DSO_TRUE
MCA_BUILD_orte_oob_alps_DSO_FALSE
MCA_BUILD_orte_oob_alps_DSO_TRUE
oob_alps_LIBS
oob_alps_LDFLAGS
oob_alps_CPPFLAGS
MCA_orte_odls_DSO_SUBDIRS
MCA_orte_odls_STATIC_SUBDIRS
MCA_orte_odls_ALL_SUBDIRS
MCA_orte_odls_STATIC_LTLIBS
MCA_orte_odls_DSO_COMPONENTS
MCA_orte_odls_STATIC_COMPONENTS
MCA_orte_odls_ALL_COMPONENTS
MCA_BUILD_orte_odls_pspawn_DSO_FALSE
MCA_BUILD_orte_odls_pspawn_DSO_TRUE
MCA_BUILD_orte_odls_default_DSO_FALSE
MCA_BUILD_orte_odls_default_DSO_TRUE
MCA_BUILD_orte_odls_alps_DSO_FALSE
MCA_BUILD_orte_odls_alps_DSO_TRUE
odls_alps_LIBS
odls_alps_LDFLAGS
odls_alps_CPPFLAGS
MCA_orte_iof_DSO_SUBDIRS
MCA_orte_iof_STATIC_SUBDIRS
MCA_orte_iof_ALL_SUBDIRS
MCA_orte_iof_STATIC_LTLIBS
MCA_orte_iof_DSO_COMPONENTS
MCA_orte_iof_STATIC_COMPONENTS
MCA_orte_iof_ALL_COMPONENTS
MCA_BUILD_orte_iof_tool_DSO_FALSE
MCA_BUILD_orte_iof_tool_DSO_TRUE
MCA_BUILD_orte_iof_orted_DSO_FALSE
MCA_BUILD_orte_iof_orted_DSO_TRUE
MCA_BUILD_orte_iof_hnp_DSO_FALSE
MCA_BUILD_orte_iof_hnp_DSO_TRUE
MCA_orte_grpcomm_DSO_SUBDIRS
MCA_orte_grpcomm_STATIC_SUBDIRS
MCA_orte_grpcomm_ALL_SUBDIRS
MCA_orte_grpcomm_STATIC_LTLIBS
MCA_orte_grpcomm_DSO_COMPONENTS
MCA_orte_grpcomm_STATIC_COMPONENTS
MCA_orte_grpcomm_ALL_COMPONENTS
MCA_BUILD_orte_grpcomm_direct_DSO_FALSE
MCA_BUILD_orte_grpcomm_direct_DSO_TRUE
MCA_orte_filem_DSO_SUBDIRS
MCA_orte_filem_STATIC_SUBDIRS
MCA_orte_filem_ALL_SUBDIRS
MCA_orte_filem_STATIC_LTLIBS
MCA_orte_filem_DSO_COMPONENTS
MCA_orte_filem_STATIC_COMPONENTS
MCA_orte_filem_ALL_COMPONENTS
MCA_BUILD_orte_filem_raw_DSO_FALSE
MCA_BUILD_orte_filem_raw_DSO_TRUE
MCA_orte_ess_DSO_SUBDIRS
MCA_orte_ess_STATIC_SUBDIRS
MCA_orte_ess_ALL_SUBDIRS
MCA_orte_ess_STATIC_LTLIBS
MCA_orte_ess_DSO_COMPONENTS
MCA_orte_ess_STATIC_COMPONENTS
MCA_orte_ess_ALL_COMPONENTS
MCA_BUILD_orte_ess_tm_DSO_FALSE
MCA_BUILD_orte_ess_tm_DSO_TRUE
ess_tm_LIBS
ess_tm_LDFLAGS
ess_tm_CPPFLAGS
MCA_BUILD_orte_ess_slurm_DSO_FALSE
MCA_BUILD_orte_ess_slurm_DSO_TRUE
ess_slurm_LIBS
ess_slurm_LDFLAGS
ess_slurm_CPPFLAGS
MCA_BUILD_orte_ess_lsf_DSO_FALSE
MCA_BUILD_orte_ess_lsf_DSO_TRUE
ess_lsf_LIBS
ess_lsf_LDFLAGS
ess_lsf_CPPFLAGS
MCA_BUILD_orte_ess_alps_DSO_FALSE
MCA_BUILD_orte_ess_alps_DSO_TRUE
ess_alps_LIBS
ess_alps_LDFLAGS
ess_alps_CPPFLAGS
MCA_BUILD_orte_ess_tool_DSO_FALSE
MCA_BUILD_orte_ess_tool_DSO_TRUE
MCA_BUILD_orte_ess_singleton_DSO_FALSE
MCA_BUILD_orte_ess_singleton_DSO_TRUE
MCA_BUILD_orte_ess_pmi_DSO_FALSE
MCA_BUILD_orte_ess_pmi_DSO_TRUE
MCA_BUILD_orte_ess_hnp_DSO_FALSE
MCA_BUILD_orte_ess_hnp_DSO_TRUE
MCA_BUILD_orte_ess_env_DSO_FALSE
MCA_BUILD_orte_ess_env_DSO_TRUE
MCA_orte_errmgr_DSO_SUBDIRS
MCA_orte_errmgr_STATIC_SUBDIRS
MCA_orte_errmgr_ALL_SUBDIRS
MCA_orte_errmgr_STATIC_LTLIBS
MCA_orte_errmgr_DSO_COMPONENTS
MCA_orte_errmgr_STATIC_COMPONENTS
MCA_orte_errmgr_ALL_COMPONENTS
MCA_BUILD_orte_errmgr_default_tool_DSO_FALSE
MCA_BUILD_orte_errmgr_default_tool_DSO_TRUE
MCA_BUILD_orte_errmgr_default_orted_DSO_FALSE
MCA_BUILD_orte_errmgr_default_orted_DSO_TRUE
MCA_BUILD_orte_errmgr_default_hnp_DSO_FALSE
MCA_BUILD_orte_errmgr_default_hnp_DSO_TRUE
MCA_BUILD_orte_errmgr_default_app_DSO_FALSE
MCA_BUILD_orte_errmgr_default_app_DSO_TRUE
MCA_orte_common_DSO_SUBDIRS
MCA_orte_common_STATIC_SUBDIRS
MCA_orte_common_ALL_SUBDIRS
MCA_orte_common_STATIC_LTLIBS
MCA_orte_common_DSO_COMPONENTS
MCA_orte_common_STATIC_COMPONENTS
MCA_orte_common_ALL_COMPONENTS
MCA_BUILD_orte_common_alps_DSO_FALSE
MCA_BUILD_orte_common_alps_DSO_TRUE
common_alps_LIBS
common_alps_LDFLAGS
common_alps_CPPFLAGS
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_opal_timer_DSO_SUBDIRS
MCA_opal_timer_STATIC_SUBDIRS
MCA_opal_timer_ALL_SUBDIRS
MCA_opal_timer_STATIC_LTLIBS
MCA_opal_timer_DSO_COMPONENTS
MCA_opal_timer_STATIC_COMPONENTS
MCA_opal_timer_ALL_COMPONENTS
MCA_BUILD_opal_timer_solaris_DSO_FALSE
MCA_BUILD_opal_timer_solaris_DSO_TRUE
MCA_BUILD_opal_timer_linux_DSO_FALSE
MCA_BUILD_opal_timer_linux_DSO_TRUE
MCA_BUILD_opal_timer_darwin_DSO_FALSE
MCA_BUILD_opal_timer_darwin_DSO_TRUE
MCA_BUILD_opal_timer_altix_DSO_FALSE
MCA_BUILD_opal_timer_altix_DSO_TRUE
MCA_opal_shmem_DSO_SUBDIRS
MCA_opal_shmem_STATIC_SUBDIRS
MCA_opal_shmem_ALL_SUBDIRS
MCA_opal_shmem_STATIC_LTLIBS
MCA_opal_shmem_DSO_COMPONENTS
MCA_opal_shmem_STATIC_COMPONENTS
MCA_opal_shmem_ALL_COMPONENTS
MCA_BUILD_opal_shmem_sysv_DSO_FALSE
MCA_BUILD_opal_shmem_sysv_DSO_TRUE
MCA_BUILD_opal_shmem_posix_DSO_FALSE
MCA_BUILD_opal_shmem_posix_DSO_TRUE
MCA_BUILD_opal_shmem_mmap_DSO_FALSE
MCA_BUILD_opal_shmem_mmap_DSO_TRUE
MCA_opal_reachable_DSO_SUBDIRS
MCA_opal_reachable_STATIC_SUBDIRS
MCA_opal_reachable_ALL_SUBDIRS
MCA_opal_reachable_STATIC_LTLIBS
MCA_opal_reachable_DSO_COMPONENTS
MCA_opal_reachable_STATIC_COMPONENTS
MCA_opal_reachable_ALL_COMPONENTS
MCA_BUILD_opal_reachable_netlink_DSO_FALSE
MCA_BUILD_opal_reachable_netlink_DSO_TRUE
reachable_netlink_LIBS
reachable_netlink_LDFLAGS
reachable_netlink_CPPFLAGS
MCA_BUILD_opal_reachable_weighted_DSO_FALSE
MCA_BUILD_opal_reachable_weighted_DSO_TRUE
MCA_opal_rcache_DSO_SUBDIRS
MCA_opal_rcache_STATIC_SUBDIRS
MCA_opal_rcache_ALL_SUBDIRS
MCA_opal_rcache_STATIC_LTLIBS
MCA_opal_rcache_DSO_COMPONENTS
MCA_opal_rcache_STATIC_COMPONENTS
MCA_opal_rcache_ALL_COMPONENTS
MCA_BUILD_opal_rcache_udreg_DSO_FALSE
MCA_BUILD_opal_rcache_udreg_DSO_TRUE
rcache_udreg_LIBS
rcache_udreg_LDFLAGS
rcache_udreg_CPPFLAGS
CRAY_UDREG_LIBS
CRAY_UDREG_CFLAGS
MCA_BUILD_opal_rcache_rgpusm_DSO_FALSE
MCA_BUILD_opal_rcache_rgpusm_DSO_TRUE
MCA_BUILD_opal_rcache_gpusm_DSO_FALSE
MCA_BUILD_opal_rcache_gpusm_DSO_TRUE
MCA_BUILD_opal_rcache_grdma_DSO_FALSE
MCA_BUILD_opal_rcache_grdma_DSO_TRUE
MCA_opal_pstat_DSO_SUBDIRS
MCA_opal_pstat_STATIC_SUBDIRS
MCA_opal_pstat_ALL_SUBDIRS
MCA_opal_pstat_STATIC_LTLIBS
MCA_opal_pstat_DSO_COMPONENTS
MCA_opal_pstat_STATIC_COMPONENTS
MCA_opal_pstat_ALL_COMPONENTS
MCA_BUILD_opal_pstat_test_DSO_FALSE
MCA_BUILD_opal_pstat_test_DSO_TRUE
MCA_BUILD_opal_pstat_linux_DSO_FALSE
MCA_BUILD_opal_pstat_linux_DSO_TRUE
MCA_opal_pmix_DSO_SUBDIRS
MCA_opal_pmix_STATIC_SUBDIRS
MCA_opal_pmix_ALL_SUBDIRS
MCA_opal_pmix_STATIC_LTLIBS
MCA_opal_pmix_DSO_COMPONENTS
MCA_opal_pmix_STATIC_COMPONENTS
MCA_opal_pmix_ALL_COMPONENTS
MCA_BUILD_opal_pmix_s2_DSO_FALSE
MCA_BUILD_opal_pmix_s2_DSO_TRUE
MCA_BUILD_opal_pmix_s1_DSO_FALSE
MCA_BUILD_opal_pmix_s1_DSO_TRUE
MCA_BUILD_opal_pmix_pmix3x_DSO_FALSE
MCA_BUILD_opal_pmix_pmix3x_DSO_TRUE
opal_pmix_pmix3x_DEPENDENCIES
opal_pmix_pmix3x_LDFLAGS
opal_pmix_pmix3x_CPPFLAGS
opal_pmix_pmix3x_LIBS
MCA_BUILD_opal_pmix_flux_DSO_FALSE
MCA_BUILD_opal_pmix_flux_DSO_TRUE
FLUX_PMI_LIBS
FLUX_PMI_CFLAGS
MCA_BUILD_opal_pmix_ext3x_DSO_FALSE
MCA_BUILD_opal_pmix_ext3x_DSO_TRUE
opal_pmix_ext3x_LIBS
opal_pmix_ext3x_LDFLAGS
opal_pmix_ext3x_CPPFLAGS
MCA_BUILD_opal_pmix_ext2x_DSO_FALSE
MCA_BUILD_opal_pmix_ext2x_DSO_TRUE
opal_pmix_ext2x_LIBS
opal_pmix_ext2x_LDFLAGS
opal_pmix_ext2x_CPPFLAGS
MCA_BUILD_opal_pmix_ext1x_DSO_FALSE
MCA_BUILD_opal_pmix_ext1x_DSO_TRUE
opal_pmix_ext1x_LIBS
opal_pmix_ext1x_LDFLAGS
opal_pmix_ext1x_CPPFLAGS
MCA_BUILD_opal_pmix_cray_DSO_FALSE
MCA_BUILD_opal_pmix_cray_DSO_TRUE
pmix_alps_LIBS
pmix_alps_LDFLAGS
pmix_alps_CPPFLAGS
pmix_cray_LIBS
pmix_cray_LDFLAGS
pmix_cray_CPPFLAGS
CRAY_WLM_DETECT_STATIC_LIBS
CRAY_WLM_DETECT_LIBS
CRAY_WLM_DETECT_CFLAGS
CRAY_ALPS_STATIC_LIBS
CRAY_ALPS_LIBS
CRAY_ALPS_CFLAGS
CRAY_ALPSUTIL_STATIC_LIBS
CRAY_ALPSUTIL_LIBS
CRAY_ALPSUTIL_CFLAGS
CRAY_ALPSLLI_STATIC_LIBS
CRAY_ALPSLLI_LIBS
CRAY_ALPSLLI_CFLAGS
CRAY_PMI_STATIC_LIBS
CRAY_PMI_LIBS
CRAY_PMI_CFLAGS
MCA_BUILD_opal_pmix_isolated_DSO_FALSE
MCA_BUILD_opal_pmix_isolated_DSO_TRUE
MCA_opal_patcher_DSO_SUBDIRS
MCA_opal_patcher_STATIC_SUBDIRS
MCA_opal_patcher_ALL_SUBDIRS
MCA_opal_patcher_STATIC_LTLIBS
MCA_opal_patcher_DSO_COMPONENTS
MCA_opal_patcher_STATIC_COMPONENTS
MCA_opal_patcher_ALL_COMPONENTS
MCA_BUILD_opal_patcher_overwrite_DSO_FALSE
MCA_BUILD_opal_patcher_overwrite_DSO_TRUE
MCA_BUILD_opal_patcher_linux_DSO_FALSE
MCA_BUILD_opal_patcher_linux_DSO_TRUE
MCA_opal_mpool_DSO_SUBDIRS
MCA_opal_mpool_STATIC_SUBDIRS
MCA_opal_mpool_ALL_SUBDIRS
MCA_opal_mpool_STATIC_LTLIBS
MCA_opal_mpool_DSO_COMPONENTS
MCA_opal_mpool_STATIC_COMPONENTS
MCA_opal_mpool_ALL_COMPONENTS
MCA_BUILD_opal_mpool_memkind_DSO_FALSE
MCA_BUILD_opal_mpool_memkind_DSO_TRUE
mpool_memkind_LIBS
mpool_memkind_LDFLAGS
mpool_memkind_CPPFLAGS
MCA_BUILD_opal_mpool_hugepage_DSO_FALSE
MCA_BUILD_opal_mpool_hugepage_DSO_TRUE
MCA_opal_memory_DSO_SUBDIRS
MCA_opal_memory_STATIC_SUBDIRS
MCA_opal_memory_ALL_SUBDIRS
MCA_opal_memory_STATIC_LTLIBS
MCA_opal_memory_DSO_COMPONENTS
MCA_opal_memory_STATIC_COMPONENTS
MCA_opal_memory_ALL_COMPONENTS
MCA_BUILD_opal_memory_malloc_solaris_DSO_FALSE
MCA_BUILD_opal_memory_malloc_solaris_DSO_TRUE
memory_malloc_solaris_LIBS
MCA_BUILD_opal_memory_patcher_DSO_FALSE
MCA_BUILD_opal_memory_patcher_DSO_TRUE
MCA_opal_memcpy_DSO_SUBDIRS
MCA_opal_memcpy_STATIC_SUBDIRS
MCA_opal_memcpy_ALL_SUBDIRS
MCA_opal_memcpy_STATIC_LTLIBS
MCA_opal_memcpy_DSO_COMPONENTS
MCA_opal_memcpy_STATIC_COMPONENTS
MCA_opal_memcpy_ALL_COMPONENTS
MCA_opal_memchecker_DSO_SUBDIRS
MCA_opal_memchecker_STATIC_SUBDIRS
MCA_opal_memchecker_ALL_SUBDIRS
MCA_opal_memchecker_STATIC_LTLIBS
MCA_opal_memchecker_DSO_COMPONENTS
MCA_opal_memchecker_STATIC_COMPONENTS
MCA_opal_memchecker_ALL_COMPONENTS
MCA_BUILD_opal_memchecker_valgrind_DSO_FALSE
MCA_BUILD_opal_memchecker_valgrind_DSO_TRUE
opal_memchecker_valgrind_CPPFLAGS
OPAL_WANT_MEMCHECKER_FALSE
OPAL_WANT_MEMCHECKER_TRUE
MCA_opal_installdirs_DSO_SUBDIRS
MCA_opal_installdirs_STATIC_SUBDIRS
MCA_opal_installdirs_ALL_SUBDIRS
MCA_opal_installdirs_STATIC_LTLIBS
MCA_opal_installdirs_DSO_COMPONENTS
MCA_opal_installdirs_STATIC_COMPONENTS
MCA_opal_installdirs_ALL_COMPONENTS
MCA_BUILD_opal_installdirs_config_DSO_FALSE
MCA_BUILD_opal_installdirs_config_DSO_TRUE
MCA_BUILD_opal_installdirs_env_DSO_FALSE
MCA_BUILD_opal_installdirs_env_DSO_TRUE
MCA_opal_if_DSO_SUBDIRS
MCA_opal_if_STATIC_SUBDIRS
MCA_opal_if_ALL_SUBDIRS
MCA_opal_if_STATIC_LTLIBS
MCA_opal_if_DSO_COMPONENTS
MCA_opal_if_STATIC_COMPONENTS
MCA_opal_if_ALL_COMPONENTS
MCA_BUILD_opal_if_solaris_ipv6_DSO_FALSE
MCA_BUILD_opal_if_solaris_ipv6_DSO_TRUE
MCA_BUILD_opal_if_posix_ipv4_DSO_FALSE
MCA_BUILD_opal_if_posix_ipv4_DSO_TRUE
MCA_BUILD_opal_if_linux_ipv6_DSO_FALSE
MCA_BUILD_opal_if_linux_ipv6_DSO_TRUE
MCA_BUILD_opal_if_bsdx_ipv6_DSO_FALSE
MCA_BUILD_opal_if_bsdx_ipv6_DSO_TRUE
MCA_BUILD_opal_if_bsdx_ipv4_DSO_FALSE
MCA_BUILD_opal_if_bsdx_ipv4_DSO_TRUE
MCA_opal_hwloc_DSO_SUBDIRS
MCA_opal_hwloc_STATIC_SUBDIRS
MCA_opal_hwloc_ALL_SUBDIRS
MCA_opal_hwloc_STATIC_LTLIBS
MCA_opal_hwloc_DSO_COMPONENTS
MCA_opal_hwloc_STATIC_COMPONENTS
MCA_opal_hwloc_ALL_COMPONENTS
MCA_BUILD_opal_hwloc_hwloc201_DSO_FALSE
MCA_BUILD_opal_hwloc_hwloc201_DSO_TRUE
FOUND_XZ_FALSE
FOUND_XZ_TRUE
BUILD_MPITOOLS_FALSE
BUILD_MPITOOLS_TRUE
BUILD_NETLOCSCOTCH_FALSE
BUILD_NETLOCSCOTCH_TRUE
BUILD_NETLOC_FALSE
BUILD_NETLOC_TRUE
HWLOC_HAVE_CXX_FALSE
HWLOC_HAVE_CXX_TRUE
HWLOC_XML_LIBXML_BUILD_STATIC_FALSE
HWLOC_XML_LIBXML_BUILD_STATIC_TRUE
HWLOC_GL_BUILD_STATIC_FALSE
HWLOC_GL_BUILD_STATIC_TRUE
HWLOC_NVML_BUILD_STATIC_FALSE
HWLOC_NVML_BUILD_STATIC_TRUE
HWLOC_CUDA_BUILD_STATIC_FALSE
HWLOC_CUDA_BUILD_STATIC_TRUE
HWLOC_OPENCL_BUILD_STATIC_FALSE
HWLOC_OPENCL_BUILD_STATIC_TRUE
HWLOC_PCI_BUILD_STATIC_FALSE
HWLOC_PCI_BUILD_STATIC_TRUE
HWLOC_HAVE_PLUGINS_FALSE
HWLOC_HAVE_PLUGINS_TRUE
HWLOC_HAVE_X86_CPUID_FALSE
HWLOC_HAVE_X86_CPUID_TRUE
HWLOC_HAVE_X86_64_FALSE
HWLOC_HAVE_X86_64_TRUE
HWLOC_HAVE_X86_32_FALSE
HWLOC_HAVE_X86_32_TRUE
HWLOC_HAVE_X86_FALSE
HWLOC_HAVE_X86_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_AIX_FALSE
HWLOC_HAVE_AIX_TRUE
HWLOC_HAVE_SOLARIS_FALSE
HWLOC_HAVE_SOLARIS_TRUE
HWLOC_HAVE_NETBSD_FALSE
HWLOC_HAVE_NETBSD_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_BGQ_FALSE
HWLOC_HAVE_BGQ_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_USER32_FALSE
HWLOC_HAVE_USER32_TRUE
HWLOC_HAVE_BUNZIPP_FALSE
HWLOC_HAVE_BUNZIPP_TRUE
HWLOC_HAVE_NVML_FALSE
HWLOC_HAVE_NVML_TRUE
HWLOC_HAVE_OPENCL_FALSE
HWLOC_HAVE_OPENCL_TRUE
HWLOC_HAVE_PCIACCESS_FALSE
HWLOC_HAVE_PCIACCESS_TRUE
HWLOC_HAVE_CAIRO_FALSE
HWLOC_HAVE_CAIRO_TRUE
HWLOC_HAVE_LIBXML2_FALSE
HWLOC_HAVE_LIBXML2_TRUE
HWLOC_HAVE_CUDART_FALSE
HWLOC_HAVE_CUDART_TRUE
HWLOC_HAVE_GL_FALSE
HWLOC_HAVE_GL_TRUE
HWLOC_HAVE_CUDA_FALSE
HWLOC_HAVE_CUDA_TRUE
HWLOC_HAVE_LIBIBVERBS_FALSE
HWLOC_HAVE_LIBIBVERBS_TRUE
HWLOC_HAVE_LINUX_LIBNUMA_FALSE
HWLOC_HAVE_LINUX_LIBNUMA_TRUE
HWLOC_HAVE_PTHREAD_FALSE
HWLOC_HAVE_PTHREAD_TRUE
HWLOC_HAVE_SCHED_SETAFFINITY_FALSE
HWLOC_HAVE_SCHED_SETAFFINITY_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_hwloc_hwloc201_LIBS
opal_hwloc_hwloc201_LDFLAGS
opal_hwloc_hwloc201_CPPFLAGS
opal_hwloc_hwloc201_CFLAGS
HWLOC_EMBEDDED_LIBS
HWLOC_EMBEDDED_LDADD
HWLOC_EMBEDDED_CPPFLAGS
HWLOC_EMBEDDED_CFLAGS
HWLOC_LIBS_PRIVATE
HWLOC_LIBS
HWLOC_LDFLAGS
HWLOC_CPPFLAGS
HWLOC_CFLAGS
HWLOC_REQUIRES
HWLOC_PLUGINS_DIR
HWLOC_PLUGINS_PATH
HWLOC_HAVE_LIBXML2
HWLOC_LIBXML2_LIBS
HWLOC_LIBXML2_CFLAGS
HWLOC_GL_LIBS
HWLOC_X11_LIBS
HWLOC_X11_CPPFLAGS
X_EXTRA_LIBS
X_LIBS
X_PRE_LIBS
X_CFLAGS
XMKMF
HWLOC_HAVE_NVML
HWLOC_NVML_LIBS
HWLOC_CUDA_LIBS
HWLOC_HAVE_OPENCL
HWLOC_OPENCL_LDFLAGS
HWLOC_OPENCL_LIBS
HWLOC_OPENCL_CFLAGS
HWLOC_PCIACCESS_LIBS
HWLOC_PCIACCESS_CFLAGS
BASH
HWLOC_MS_LIB
HWLOC_MS_LIB_ARCH
HWLOC_RELEASE_DATE
HWLOC_VERSION
HWLOC_top_srcdir
HWLOC_top_builddir
MCA_BUILD_opal_hwloc_external_DSO_FALSE
MCA_BUILD_opal_hwloc_external_DSO_TRUE
opal_hwloc_external_LIBS
opal_hwloc_external_LDFLAGS
MCA_opal_event_DSO_SUBDIRS
MCA_opal_event_STATIC_SUBDIRS
MCA_opal_event_ALL_SUBDIRS
MCA_opal_event_STATIC_LTLIBS
MCA_opal_event_DSO_COMPONENTS
MCA_opal_event_STATIC_COMPONENTS
MCA_opal_event_ALL_COMPONENTS
MCA_BUILD_opal_event_libevent2022_DSO_FALSE
MCA_BUILD_opal_event_libevent2022_DSO_TRUE
OPAL_EVENT_HAVE_THREAD_SUPPORT_FALSE
OPAL_EVENT_HAVE_THREAD_SUPPORT_TRUE
MCA_BUILD_opal_event_external_DSO_FALSE
MCA_BUILD_opal_event_external_DSO_TRUE
opal_event_external_LIBS
opal_event_external_LDFLAGS
opal_event_external_CPPFLAGS
MCA_opal_dl_DSO_SUBDIRS
MCA_opal_dl_STATIC_SUBDIRS
MCA_opal_dl_ALL_SUBDIRS
MCA_opal_dl_STATIC_LTLIBS
MCA_opal_dl_DSO_COMPONENTS
MCA_opal_dl_STATIC_COMPONENTS
MCA_opal_dl_ALL_COMPONENTS
MCA_BUILD_opal_dl_libltdl_DSO_FALSE
MCA_BUILD_opal_dl_libltdl_DSO_TRUE
opal_dl_libltdl_LIBS
opal_dl_libltdl_LDFLAGS
opal_dl_libltdl_CPPFLAGS
MCA_BUILD_opal_dl_dlopen_DSO_FALSE
MCA_BUILD_opal_dl_dlopen_DSO_TRUE
opal_dl_dlopen_LIBS
MCA_opal_crs_DSO_SUBDIRS
MCA_opal_crs_STATIC_SUBDIRS
MCA_opal_crs_ALL_SUBDIRS
MCA_opal_crs_STATIC_LTLIBS
MCA_opal_crs_DSO_COMPONENTS
MCA_opal_crs_STATIC_COMPONENTS
MCA_opal_crs_ALL_COMPONENTS
MCA_BUILD_opal_crs_self_DSO_FALSE
MCA_BUILD_opal_crs_self_DSO_TRUE
MCA_BUILD_opal_crs_none_DSO_FALSE
MCA_BUILD_opal_crs_none_DSO_TRUE
MCA_opal_compress_DSO_SUBDIRS
MCA_opal_compress_STATIC_SUBDIRS
MCA_opal_compress_ALL_SUBDIRS
MCA_opal_compress_STATIC_LTLIBS
MCA_opal_compress_DSO_COMPONENTS
MCA_opal_compress_STATIC_COMPONENTS
MCA_opal_compress_ALL_COMPONENTS
MCA_BUILD_opal_compress_gzip_DSO_FALSE
MCA_BUILD_opal_compress_gzip_DSO_TRUE
MCA_BUILD_opal_compress_bzip_DSO_FALSE
MCA_BUILD_opal_compress_bzip_DSO_TRUE
MCA_opal_btl_DSO_SUBDIRS
MCA_opal_btl_STATIC_SUBDIRS
MCA_opal_btl_ALL_SUBDIRS
MCA_opal_btl_STATIC_LTLIBS
MCA_opal_btl_DSO_COMPONENTS
MCA_opal_btl_STATIC_COMPONENTS
MCA_opal_btl_ALL_COMPONENTS
MCA_BUILD_opal_btl_vader_DSO_FALSE
MCA_BUILD_opal_btl_vader_DSO_TRUE
btl_vader_LIBS
btl_vader_LDFLAGS
btl_vader_CPPFLAGS
btl_vader_CFLAGS
CRAY_XPMEM_STATIC_LIBS
CRAY_XPMEM_LIBS
CRAY_XPMEM_CFLAGS
MCA_BUILD_opal_btl_usnic_DSO_FALSE
MCA_BUILD_opal_btl_usnic_DSO_TRUE
OPAL_BTL_USNIC_BUILD_UNIT_TESTS_FALSE
OPAL_BTL_USNIC_BUILD_UNIT_TESTS_TRUE
MCA_BUILD_opal_btl_ugni_DSO_FALSE
MCA_BUILD_opal_btl_ugni_DSO_TRUE
btl_ugni_LIBS
btl_ugni_LDFLAGS
btl_ugni_CPPFLAGS
CRAY_UGNI_LIBS
CRAY_UGNI_CFLAGS
MCA_BUILD_opal_btl_uct_DSO_FALSE
MCA_BUILD_opal_btl_uct_DSO_TRUE
btl_uct_LIBS
btl_uct_LDFLAGS
btl_uct_CPPFLAGS
MCA_BUILD_opal_btl_tcp_DSO_FALSE
MCA_BUILD_opal_btl_tcp_DSO_TRUE
MCA_BUILD_opal_btl_smcuda_DSO_FALSE
MCA_BUILD_opal_btl_smcuda_DSO_TRUE
MCA_BUILD_opal_btl_sm_DSO_FALSE
MCA_BUILD_opal_btl_sm_DSO_TRUE
MCA_BUILD_opal_btl_portals4_DSO_FALSE
MCA_BUILD_opal_btl_portals4_DSO_TRUE
btl_portals4_LIBS
btl_portals4_LDFLAGS
btl_portals4_CPPFLAGS
OPAL_BTL_PORTALS4_FLOW_CONTROL_FALSE
OPAL_BTL_PORTALS4_FLOW_CONTROL_TRUE
MCA_BUILD_opal_btl_openib_DSO_FALSE
MCA_BUILD_opal_btl_openib_DSO_TRUE
MCA_btl_openib_have_udcm_FALSE
MCA_btl_openib_have_udcm_TRUE
MCA_btl_openib_have_dynamic_sl_FALSE
MCA_btl_openib_have_dynamic_sl_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_BUILD_opal_btl_ofi_DSO_FALSE
MCA_BUILD_opal_btl_ofi_DSO_TRUE
MCA_BUILD_opal_btl_self_DSO_FALSE
MCA_BUILD_opal_btl_self_DSO_TRUE
MCA_opal_backtrace_DSO_SUBDIRS
MCA_opal_backtrace_STATIC_SUBDIRS
MCA_opal_backtrace_ALL_SUBDIRS
MCA_opal_backtrace_STATIC_LTLIBS
MCA_opal_backtrace_DSO_COMPONENTS
MCA_opal_backtrace_STATIC_COMPONENTS
MCA_opal_backtrace_ALL_COMPONENTS
MCA_BUILD_opal_backtrace_none_DSO_FALSE
MCA_BUILD_opal_backtrace_none_DSO_TRUE
MCA_BUILD_opal_backtrace_printstack_DSO_FALSE
MCA_BUILD_opal_backtrace_printstack_DSO_TRUE
MCA_BUILD_opal_backtrace_execinfo_DSO_FALSE
MCA_BUILD_opal_backtrace_execinfo_DSO_TRUE
MCA_opal_allocator_DSO_SUBDIRS
MCA_opal_allocator_STATIC_SUBDIRS
MCA_opal_allocator_ALL_SUBDIRS
MCA_opal_allocator_STATIC_LTLIBS
MCA_opal_allocator_DSO_COMPONENTS
MCA_opal_allocator_STATIC_COMPONENTS
MCA_opal_allocator_ALL_COMPONENTS
MCA_BUILD_opal_allocator_bucket_DSO_FALSE
MCA_BUILD_opal_allocator_bucket_DSO_TRUE
MCA_BUILD_opal_allocator_basic_DSO_FALSE
MCA_BUILD_opal_allocator_basic_DSO_TRUE
MCA_opal_common_DSO_SUBDIRS
MCA_opal_common_STATIC_SUBDIRS
MCA_opal_common_ALL_SUBDIRS
MCA_opal_common_STATIC_LTLIBS
MCA_opal_common_DSO_COMPONENTS
MCA_opal_common_STATIC_COMPONENTS
MCA_opal_common_ALL_COMPONENTS
MCA_BUILD_opal_common_verbs_usnic_DSO_FALSE
MCA_BUILD_opal_common_verbs_usnic_DSO_TRUE
common_verbs_usnic_LIBS
common_verbs_usnic_LDFLAGS
common_verbs_usnic_CPPFLAGS
MCA_BUILD_opal_common_verbs_DSO_FALSE
MCA_BUILD_opal_common_verbs_DSO_TRUE
common_verbs_LIBS
common_verbs_LDFLAGS
common_verbs_CPPFLAGS
common_verbs_CFLAGS
MCA_BUILD_opal_common_ucx_DSO_FALSE
MCA_BUILD_opal_common_ucx_DSO_TRUE
common_ucx_LIBS
common_ucx_LDFLAGS
common_ucx_CPPFLAGS
common_ucx_CFLAGS
ucx_STATIC_LIBS
ucx_LIBS
ucx_CFLAGS
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
MCA_BUILD_opal_common_sm_DSO_FALSE
MCA_BUILD_opal_common_sm_DSO_TRUE
MCA_BUILD_opal_common_ofi_DSO_FALSE
MCA_BUILD_opal_common_ofi_DSO_TRUE
opal_ofi_LIBS
opal_ofi_LDFLAGS
opal_ofi_CPPFLAGS
MCA_BUILD_opal_common_cuda_DSO_FALSE
MCA_BUILD_opal_common_cuda_DSO_TRUE
common_cuda_CPPFLAGS
WANT_FT_THREAD_FALSE
WANT_FT_THREAD_TRUE
WANT_FT_CR_FALSE
WANT_FT_CR_TRUE
WANT_FT_FALSE
WANT_FT_TRUE
CASE_SENSITIVE_FS_FALSE
CASE_SENSITIVE_FS_TRUE
LEXLIB
LEX_OUTPUT_ROOT
LEX
OMPI_MPI_OFFSET_KIND
OMPI_MPI_COUNT_KIND
OMPI_MPI_ADDRESS_KIND
OMPI_MPI_INTEGER_KIND
OSHMEM_BUILD_FORTRAN_BINDINGS_FALSE
OSHMEM_BUILD_FORTRAN_BINDINGS_TRUE
MAN_PAGE_BUILD_USEMPIF08_BINDINGS_FALSE
MAN_PAGE_BUILD_USEMPIF08_BINDINGS_TRUE
MAN_PAGE_BUILD_MPIFH_BINDINGS_FALSE
MAN_PAGE_BUILD_MPIFH_BINDINGS_TRUE
OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_FALSE
OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_TRUE
OMPI_FORTRAN_HAVE_BIND_C
OMPI_FORTRAN_HAVE_C_FUNLOC
OMPI_FORTRAN_HAVE_USE_ONLY
OMPI_FORTRAN_HAVE_PROCEDURE
OMPI_FORTRAN_HAVE_ASYNCHRONOUS
OMPI_FORTRAN_HAVE_ABSTRACT
OMPI_FORTRAN_HAVE_PRIVATE
OMPI_FORTRAN_HAVE_ISO_C_BINDING
OMPI_FORTRAN_NEED_WRAPPER_ROUTINES
OMPI_F_SUFFIX
OMPI_F08_SUFFIX
OMPI_MPI_BIND_PREFIX
OMPI_MPI_PREFIX
OMPI_FORTRAN_F08_TYPE
OMPI_FORTRAN_F08_PREDECL
OMPI_FORTRAN_USEMPIF08_LIB
OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_FALSE
OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_TRUE
OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_FALSE
OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_TRUE
OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_FALSE
OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_TRUE
OMPI_FORTRAN_IGNORE_TKR_TYPE
OMPI_FORTRAN_IGNORE_TKR_PREDECL
OMPI_FORTRAN_USEMPI_LIB
OMPI_FORTRAN_USEMPI_DIR
OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_FALSE
OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_TRUE
BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE
BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE
BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE
BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE
BUILD_FORTRAN_SIZEOF_FALSE
BUILD_FORTRAN_SIZEOF_TRUE
OMPI_FC_ABSOLUTE
OMPI_FC
OMPI_FC_MODULE_FLAG
OMPI_FORTRAN_BUILD_SIZEOF
OMPI_FORTRAN_HAVE_STORAGE_SIZE
OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV
OMPI_FORTRAN_HAVE_INTERFACE
OMPI_FORTRAN_CKINDS
OMPI_FORTRAN_RKINDS
OMPI_FORTRAN_IKINDS
OMPI_FORTRAN_STATUS_SIZE
OMPI_FORTRAN_MAX_ARRAY_RANK
OMPI_ALIGNMENT_FORTRAN_DOUBLE_COMPLEX
OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX
OMPI_KIND_FORTRAN_DOUBLE_COMPLEX
OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX
OMPI_ALIGNMENT_FORTRAN_COMPLEX32
OMPI_SIZEOF_FORTRAN_COMPLEX32
OMPI_KIND_FORTRAN_COMPLEX32
OMPI_HAVE_FORTRAN_COMPLEX32
OMPI_ALIGNMENT_FORTRAN_COMPLEX16
OMPI_SIZEOF_FORTRAN_COMPLEX16
OMPI_KIND_FORTRAN_COMPLEX16
OMPI_HAVE_FORTRAN_COMPLEX16
OMPI_ALIGNMENT_FORTRAN_COMPLEX8
OMPI_SIZEOF_FORTRAN_COMPLEX8
OMPI_KIND_FORTRAN_COMPLEX8
OMPI_HAVE_FORTRAN_COMPLEX8
OMPI_ALIGNMENT_FORTRAN_COMPLEX4
OMPI_SIZEOF_FORTRAN_COMPLEX4
OMPI_KIND_FORTRAN_COMPLEX4
OMPI_HAVE_FORTRAN_COMPLEX4
OMPI_ALIGNMENT_FORTRAN_COMPLEX
OMPI_SIZEOF_FORTRAN_COMPLEX
OMPI_KIND_FORTRAN_COMPLEX
OMPI_HAVE_FORTRAN_COMPLEX
OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION
OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION
OMPI_KIND_FORTRAN_DOUBLE_PRECISION
OMPI_HAVE_FORTRAN_DOUBLE_PRECISION
OMPI_ALIGNMENT_FORTRAN_REAL16
OMPI_SIZEOF_FORTRAN_REAL16
OMPI_KIND_FORTRAN_REAL16
OMPI_HAVE_FORTRAN_REAL16
OMPI_ALIGNMENT_FORTRAN_REAL8
OMPI_SIZEOF_FORTRAN_REAL8
OMPI_KIND_FORTRAN_REAL8
OMPI_HAVE_FORTRAN_REAL8
OMPI_ALIGNMENT_FORTRAN_REAL4
OMPI_SIZEOF_FORTRAN_REAL4
OMPI_KIND_FORTRAN_REAL4
OMPI_HAVE_FORTRAN_REAL4
OMPI_ALIGNMENT_FORTRAN_REAL2
OMPI_SIZEOF_FORTRAN_REAL2
OMPI_KIND_FORTRAN_REAL2
OMPI_HAVE_FORTRAN_REAL2
OMPI_ALIGNMENT_FORTRAN_REAL
OMPI_SIZEOF_FORTRAN_REAL
OMPI_KIND_FORTRAN_REAL
OMPI_HAVE_FORTRAN_REAL
OMPI_ALIGNMENT_FORTRAN_INTEGER16
OMPI_SIZEOF_FORTRAN_INTEGER16
OMPI_KIND_FORTRAN_INTEGER16
OMPI_HAVE_FORTRAN_INTEGER16
OMPI_ALIGNMENT_FORTRAN_INTEGER8
OMPI_SIZEOF_FORTRAN_INTEGER8
OMPI_KIND_FORTRAN_INTEGER8
OMPI_HAVE_FORTRAN_INTEGER8
OMPI_ALIGNMENT_FORTRAN_INTEGER4
OMPI_SIZEOF_FORTRAN_INTEGER4
OMPI_KIND_FORTRAN_INTEGER4
OMPI_HAVE_FORTRAN_INTEGER4
OMPI_ALIGNMENT_FORTRAN_INTEGER2
OMPI_SIZEOF_FORTRAN_INTEGER2
OMPI_KIND_FORTRAN_INTEGER2
OMPI_HAVE_FORTRAN_INTEGER2
OMPI_ALIGNMENT_FORTRAN_INTEGER1
OMPI_SIZEOF_FORTRAN_INTEGER1
OMPI_KIND_FORTRAN_INTEGER1
OMPI_HAVE_FORTRAN_INTEGER1
OMPI_ALIGNMENT_FORTRAN_INTEGER
OMPI_SIZEOF_FORTRAN_INTEGER
OMPI_KIND_FORTRAN_INTEGER
OMPI_HAVE_FORTRAN_INTEGER
OMPI_ALIGNMENT_FORTRAN_LOGICAL8
OMPI_SIZEOF_FORTRAN_LOGICAL8
OMPI_KIND_FORTRAN_LOGICAL8
OMPI_HAVE_FORTRAN_LOGICAL8
OMPI_ALIGNMENT_FORTRAN_LOGICAL4
OMPI_SIZEOF_FORTRAN_LOGICAL4
OMPI_KIND_FORTRAN_LOGICAL4
OMPI_HAVE_FORTRAN_LOGICAL4
OMPI_ALIGNMENT_FORTRAN_LOGICAL2
OMPI_SIZEOF_FORTRAN_LOGICAL2
OMPI_KIND_FORTRAN_LOGICAL2
OMPI_HAVE_FORTRAN_LOGICAL2
OMPI_ALIGNMENT_FORTRAN_LOGICAL1
OMPI_SIZEOF_FORTRAN_LOGICAL1
OMPI_KIND_FORTRAN_LOGICAL1
OMPI_HAVE_FORTRAN_LOGICAL1
OMPI_ALIGNMENT_FORTRAN_LOGICAL
OMPI_SIZEOF_FORTRAN_LOGICAL
OMPI_KIND_FORTRAN_LOGICAL
OMPI_HAVE_FORTRAN_LOGICAL
OMPI_ALIGNMENT_FORTRAN_CHARACTER
OMPI_SIZEOF_FORTRAN_CHARACTER
OMPI_KIND_FORTRAN_CHARACTER
OMPI_HAVE_FORTRAN_CHARACTER
OMPI_FORTRAN_PLAIN
OMPI_FORTRAN_CAPS
OMPI_FORTRAN_SINGLE_UNDERSCORE
OMPI_FORTRAN_DOUBLE_UNDERSCORE
FCFLAGS_f90
FCFLAGS_f
OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS
ac_ct_FC
FCFLAGS
FC
LN_S
FGREP
OPAL_ASSEMBLY_BUILTIN
OPAL_ASSEMBLY_ARCH
OPAL_ASSEMBLY_FORMAT
OPAL_ASM_SUPPORT_64BIT
OPAL_ASM_TYPE
OPAL_ASM_LSYM
NM
ac_ct_DUMPBIN
DUMPBIN
OPAL_ASM_GSYM
OPAL_AS_LABEL_SUFFIX
OBJDUMP
OPAL_AS_GLOBAL
OPAL_ASM_TEXT
am__fastdepCCAS_FALSE
am__fastdepCCAS_TRUE
CCASDEPMODE
CCASFLAGS
CCAS
OSHMEM_PROFILING_FALSE
OSHMEM_PROFILING_TRUE
COMPILE_PROFILING_SEPARATELY_FALSE
COMPILE_PROFILING_SEPARATELY_TRUE
BUILD_MPI_BINDINGS_LAYER_FALSE
BUILD_MPI_BINDINGS_LAYER_TRUE
OMPI_WANT_JAVA_BINDINGS_FALSE
OMPI_WANT_JAVA_BINDINGS_TRUE
OMPI_HAVE_JAVAH_SUPPORT_FALSE
OMPI_HAVE_JAVAH_SUPPORT_TRUE
OMPI_JDK_CPPFLAGS
JAVAH
JAVADOC
JAR
JAVAC
MAN_PAGE_BUILD_MPI_CXX_BINDINGS_FALSE
MAN_PAGE_BUILD_MPI_CXX_BINDINGS_TRUE
OMPI_BUILD_MPI_CXX_BINDINGS_FALSE
OMPI_BUILD_MPI_CXX_BINDINGS_TRUE
OMPI_CXX_ABSOLUTE
OPAL_CXX_ABSOLUTE
CXXCPP
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE
WRAPPER_CC
OPAL_CC_ABSOLUTE
OMPI_LIBMPI_NAME
ORTE_LIB_PREFIX
OPAL_LIB_PREFIX
SPC_ENABLE_FALSE
SPC_ENABLE_TRUE
OSHMEM_LIBSHMEM_EXTRA_LDFLAGS
OSHMEM_LIBSHMEM_EXTRA_LIBS
OMPI_ENABLE_GREQUEST_EXTENSIONS_FALSE
OMPI_ENABLE_GREQUEST_EXTENSIONS_TRUE
OMPI_ENABLE_GREQUEST_EXTENSIONS
OMPI_ENABLE_MPI1_COMPAT_FALSE
OMPI_ENABLE_MPI1_COMPAT_TRUE
OMPI_ENABLE_MPI1_COMPAT
WANT_PERUSE_FALSE
WANT_PERUSE_TRUE
opal_pmi2_rpath
opal_pmi2_LDFLAGS
opal_pmi2_CPPFLAGS
opal_pmi2_LIBS
opal_pmi1_rpath
opal_pmi1_LDFLAGS
opal_pmi1_CPPFLAGS
opal_pmi1_LIBS
OPAL_cuda_gdr_support_FALSE
OPAL_cuda_gdr_support_TRUE
OPAL_cuda_get_attributes_FALSE
OPAL_cuda_get_attributes_TRUE
OPAL_cuda_sync_memops_FALSE
OPAL_cuda_sync_memops_TRUE
OPAL_cuda_support_FALSE
OPAL_cuda_support_TRUE
opal_datatype_cuda_CPPFLAGS
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
OPAL_INSTALL_BINARIES_FALSE
OPAL_INSTALL_BINARIES_TRUE
WANT_INSTALL_HEADERS_FALSE
WANT_INSTALL_HEADERS_TRUE
OPAL_INSTALL_TIMING_BINARIES_FALSE
OPAL_INSTALL_TIMING_BINARIES_TRUE
OPAL_COMPILE_TIMING_FALSE
OPAL_COMPILE_TIMING_TRUE
OSHMEM_TOP_BUILDDIR
OSHMEM_TOP_SRCDIR
ORTE_TOP_BUILDDIR
ORTE_TOP_SRCDIR
OPAL_TOP_BUILDDIR
OPAL_TOP_SRCDIR
ac_prefix_program
CLEANFILES
OMPI_TOP_SRCDIR
OMPI_TOP_BUILDDIR
libmca_opal_common_ucx_so_version
libmca_ompi_common_monitoring_so_version
libmca_ompi_common_ompio_so_version
libmca_orte_common_alps_so_version
libmca_opal_common_verbs_so_version
libmca_opal_common_ugni_so_version
libmca_opal_common_sm_so_version
libmca_opal_common_cuda_so_version
libmca_opal_common_ofi_so_version
libopen_pal_so_version
liboshmem_so_version
libopen_rte_so_version
libompitrace_so_version
libmpi_java_so_version
libmpi_usempif08_so_version
libmpi_usempi_ignore_tkr_so_version
libmpi_usempi_tkr_so_version
libmpi_mpifh_so_version
libmpi_cxx_so_version
libmpi_so_version
OPAL_RELEASE_DATE
OPAL_VERSION
OPAL_TARBALL_VERSION
OPAL_REPO_REV
OPAL_GREEK_VERSION
OPAL_RELEASE_VERSION
OPAL_MINOR_VERSION
OPAL_MAJOR_VERSION
OSHMEM_RELEASE_DATE
OSHMEM_VERSION
OSHMEM_TARBALL_VERSION
OSHMEM_REPO_REV
OSHMEM_GREEK_VERSION
OSHMEM_RELEASE_VERSION
OSHMEM_MINOR_VERSION
OSHMEM_MAJOR_VERSION
ORTE_RELEASE_DATE
ORTE_VERSION
ORTE_TARBALL_VERSION
ORTE_REPO_REV
ORTE_GREEK_VERSION
ORTE_RELEASE_VERSION
ORTE_MINOR_VERSION
ORTE_MAJOR_VERSION
OMPI_RELEASE_DATE
OMPI_VERSION
OMPI_TARBALL_VERSION
OMPI_REPO_REV
OMPI_GREEK_VERSION
OMPI_RELEASE_VERSION
OMPI_MINOR_VERSION
OMPI_MAJOR_VERSION
CONFIGURE_DEPENDENCIES
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
AM_DEFAULT_V
AM_V
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
am__nodep
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
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
OPAL_CONFIGURE_DATE
OPAL_CONFIGURE_HOST
OPAL_CONFIGURE_USER
PERL
OPAL_PARAM_FROM_PLATFORM
OPAL_DEFAULT_MCA_PARAM_CONF
OPAL_CONFIGURE_CLI
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
coll_ucc_LIBS
coll_ucc_LDFLAGS
coll_ucc_CPPFLAGS
coll_ucc_CFLAGS'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_platform_patches_dir
with_platform
with_libnl
enable_dependency_tracking
enable_silent_rules
enable_coverage
enable_branch_probabilities
enable_builtin_atomics_for_ppc
enable_mem_debug
enable_mem_profile
enable_picky
enable_debug
enable_timing
enable_debug_symbols
with_devel_headers
enable_pretty_print_stacktrace
enable_pty_support
enable_weak_symbols
enable_dlopen
enable_show_load_errors_by_default
enable_heterogeneous
with_cross
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
enable_getpwuid
with_zlib
with_zlib_libdir
with_cuda
with_pmi
with_pmi_libdir
with_pmix
with_pmix_libdir
enable_orterun_prefix_by_default
enable_mpirun_prefix_by_default
enable_mpi
enable_mpi_interface_warning
enable_sparse_groups
enable_peruse
enable_mpi_fortran
enable_mpi_cxx
enable_mpi_cxx_seek
enable_mpi1_compatibility
enable_grequest_extensions
with_mpi_param_check
enable_io_ompio
enable_oshmem
enable_oshmem_compat
with_oshmem_param_check
enable_oshmem_profile
enable_oshmem_fortran
enable_spc
with_libmpi_name
enable_shared
enable_static
with_wrapper_cflags
with_wrapper_cflags_prefix
with_wrapper_cxxflags
with_wrapper_cxxflags_prefix
with_wrapper_fcflags
with_wrapper_fcflags_prefix
with_wrapper_ldflags
with_wrapper_libs
enable_wrapper_rpath
enable_wrapper_runpath
enable_cxx_exceptions
with_exflags
enable_mpi_java
with_jdk_dir
with_jdk_bindir
with_jdk_headers
enable_builtin_atomics
with_broken_qsort
with_cs_fs
enable_mca_no_build
enable_mca_dso
enable_mca_static
enable_mca_direct
with_libfabric
with_libfabric_libdir
with_ofi
with_ofi_libdir
with_ucx
with_ucx_libdir
with_verbs
with_verbs_libdir
enable_openib_control_hdr_padding
enable_openib_dynamic_sl
with_verbs_usnic
enable_openib_udcm
enable_openib_rdmacm
enable_openib_rdmacm_ibaddr
with_portals4
with_portals4_libdir
with_portals4_max_md_size
with_portals4_max_va_size
enable_btl_portals4_flow_control
enable_uct_version_check
with_ugni
with_usnic
enable_opal_btl_usnic_unit_tests
with_cray_xpmem
with_xpmem
with_xpmem_libdir
with_knem
with_cma
enable_dl_dlopen
with_libltdl
with_libltdl_libdir
with_libevent
with_libevent_libdir
enable_event_rtsig
enable_event_select
enable_event_poll
enable_event_devpoll
enable_event_kqueue
enable_event_epoll
enable_event_evport
enable_event_signal
enable_event_debug
with_hwloc
enable_hwloc_pci
with_hwloc_libdir
enable_visibility
with_x
with_hwloc_plugins_path
enable_memchecker
with_valgrind
with_memory_manager
with_memkind
with_cray_pmi
with_alps
with_alps_libdir
with_flux_pmi
with_flux_pmi_library
enable_pmix_timing
with_udreg
enable_mmap_shmem
enable_posix_shmem
enable_sysv_shmem
with_timer
with_lsf
with_lsf_libdir
with_slurm
with_tm
with_sge
with_moab
with_moab_libdir
with_singularity
with_fca
with_hcoll
with_ucc
with_ime
with_pvfs2
with_gpfs
with_lustre
enable_io_romio
with_io_romio_flags
enable_mtl_portals4_flow_control
with_psm
with_psm_libdir
with_psm2
with_psm2_libdir
enable_psm2_version_check
with_mxm
with_mxm_libdir
with_ompi_pmix_rte
with_orte
with_treematch
with_treematch_include
with_treematch_libdir
enable_mmap_sshmem
enable_sysv_sshmem
enable_verbs_sshmem
enable_mpi_ext
enable_contrib_no_build
enable_libompitrace
with_pic
enable_fast_install
with_aix_soname
with_gnu_ld
with_sysroot
enable_libtool_lock
'
ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
CXXCPP
CCAS
CCASFLAGS
FC
FCFLAGS
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
ucx_CFLAGS
ucx_LIBS
ucx_STATIC_LIBS
CRAY_UGNI_CFLAGS
CRAY_UGNI_LIBS
CRAY_XPMEM_CFLAGS
CRAY_XPMEM_LIBS
CRAY_XPMEM_STATIC_LIBS
HWLOC_MS_LIB
HWLOC_PCIACCESS_CFLAGS
HWLOC_PCIACCESS_LIBS
XMKMF
HWLOC_LIBXML2_CFLAGS
HWLOC_LIBXML2_LIBS
CRAY_PMI_CFLAGS
CRAY_PMI_LIBS
CRAY_PMI_STATIC_LIBS
CRAY_ALPSLLI_CFLAGS
CRAY_ALPSLLI_LIBS
CRAY_ALPSLLI_STATIC_LIBS
CRAY_ALPSUTIL_CFLAGS
CRAY_ALPSUTIL_LIBS
CRAY_ALPSUTIL_STATIC_LIBS
CRAY_ALPS_CFLAGS
CRAY_ALPS_LIBS
CRAY_ALPS_STATIC_LIBS
CRAY_WLM_DETECT_CFLAGS
CRAY_WLM_DETECT_LIBS
CRAY_WLM_DETECT_STATIC_LIBS
FLUX_PMI_CFLAGS
FLUX_PMI_LIBS
CRAY_UDREG_CFLAGS
CRAY_UDREG_LIBS
LT_SYS_LIBRARY_PATH'
# 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= ;;
*) 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
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 4.1.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
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
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 4.1.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]
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--enable-coverage enable code coverage files to be generated
--enable-branch-probabilities
enable profile arcs and branch probability
optimization
--enable-builtin-atomics-for-ppc
POWER architectures only: Force use of builtin
atomics if available. This could either be gcc
builtins or C11 atomics, depending on what is
available on your system. Enabling this is known to
cause poor performance in atomic operations on Power
machines. (default: disabled)
--enable-mem-debug enable memory debugging (not for general MPI users!)
(default: disabled)
--enable-mem-profile enable memory profiling (not for general MPI users!)
(default: disabled)
--enable-picky enable developer-level compiler pickyness when
building Open MPI (default: disabled, unless a .git
directory is found in the build tree)
--enable-debug enable developer-level debugging code (not for
general MPI users!) (default: disabled)
--enable-timing enable developer-level timing 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-show-load-errors-by-default
Set the default value for the MCA parameter
mca_base_component_show_load_errors (but can be
overridden at run time by the usual
MCA-variable-setting mechansism). This MCA variable
controls whether warnings are displayed when an MCA
component fails to load at run time due to an error.
(default: enabled, meaning that
mca_base_component_show_load_errors is enabled by
default
--enable-heterogeneous Enable features required for heterogeneous platform
support (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 start-up. This is likely
desirable for large jobs. Note that this can also be
achieved by environment variables at run-time.
(default: enabled)
--enable-ipv6 Enable IPv6 support, but only if the underlying
system supports it (default: disabled)
--disable-getpwuid Disable getpwuid support (default: enabled)
--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
--disable-mpi Disable building the MPI layer (default:enabled)
--enable-mpi-interface-warning
enable compile-time warnings when deprecated MPI
functions are used (default: enabled)
--enable-sparse-groups enable sparse process groups (default: not enabled)
--enable-peruse enable PERUSE interface (default: disabled)
--enable-mpi-fortran specify which Fortran MPI bindings to build: yes,
none (or no), best-effort, mpifh (build only mpif.h
support), usempi (build mpif.h and the mpi module),
or usempif08 (or all, build mpifh, the mpi module,
and the mpi_f08 module) (default: "yes" if Fortran
compiler found)
--enable-mpi-cxx enable C++ MPI bindings (default: disabled)
--enable-mpi-cxx-seek enable support for MPI::SEEK_SET, MPI::SEEK_END, and
MPI::SEEK_POS in C++ bindings (default: enabled)
--enable-mpi1-compatibility
Enable support for MPI-1.x functions removed from
the current MPI standard (MPI-3.x). This option will
go away in a future release of Open MPI (default:
disabled)
--enable-grequest-extensions
Enable support for Grequest extensions (default:
disabled)
--disable-io-ompio Disable the ompio MPI-IO component
--enable-oshmem Enable building the OpenSHMEM interface (available
on Linux only, where it is enabled by default)
--enable-oshmem-compat enable compatibility mode (default: enabled)
--enable-oshmem-profile enable OSHMEM profiling (default: enabled)
--enable-oshmem-fortran enable OSHMEM Fortran bindings (default: enabled if
Fortran compiler found)
--enable-spc Enable software-based performance counters
capability (default: disabled)
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-static[=PKGS] build static libraries [default=no]
--enable-wrapper-rpath enable rpath/runpath support in the wrapper
compilers (default=yes)
--enable-wrapper-runpath
enable runpath in the wrapper compilers if linker
supports it (default: enabled, unless wrapper-rpath
is disabled).
--enable-cxx-exceptions enable support for C++ exceptions (default:
disabled)
--enable-mpi-java enable Java MPI bindings (default: disabled)
--enable-builtin-atomics
Enable use of __atomic builtin atomics (default:
enabled)
--enable-mca-no-build=LIST
Comma-separated list of - pairs
that will not be built. Example:
"--enable-mca-no-build=btl-portals4,topo-treematch"
will disable building the "portals4" btl and the
"treematch" topo 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-openib-control-hdr-padding
Add padding bytes to the openib BTL control header
(default:disabled)
--enable-openib-dynamic-sl
Enable openib BTL to query Subnet Manager for IB SL
(default: enabled)
--enable-openib-udcm Enable datagram connection support in openib BTL
(default: enabled)
--enable-openib-rdmacm Enable Open Fabrics RDMACM support in openib BTL
(default: enabled)
--enable-openib-rdmacm-ibaddr
Enable Open Fabrics RDMACM with IB addressing
support in openib BTL (default: disabled)
--enable-btl-portals4-flow-control
enable flow control for Portals 4 BTL (default:
disabled)
--enable-uct-version-check
enable UCT version check (default: enabled)
--enable-opal-btl-usnic-unit-tests
build unit tests for the usnic BTL, including the
test runner program, opal_btl_usnic_run_tests
--disable-dl-dlopen Disable the "dlopen" DL component (and probably
force the use of the "libltdl" DL component). This
option should really only be used by Open MPI
developers. You are probably actually looking for
the "--disable-dlopen" option, which disables all
dlopen-like functionality from Open MPI.
--enable-event-rtsig enable support for real time signals (experimental)
--disable-event-select disable select support
--disable-event-poll disable poll support
--disable-event-devpoll disable devpoll support
--disable-event-kqueue disable kqueue support
--disable-event-epoll disable epoll support
--enable-event-evport enable evport support
--disable-event-signal disable signal support
--enable-event-debug enable event library debug output
--enable-hwloc-pci When building the embedded hwloc, whether to
explicitly enable or disable PCI device support. By
default Open MPI will build support for PCI device
detection if libpciaccess is available (including
its header files)
--enable-visibility enable visibility feature of certain
compilers/linkers (default: enabled on platforms
that support it)
--enable-memchecker Enable memory and buffer checks. Note that disabling
will *also* add "memchecker" to the
--enable-mca-no-build list (default: disabled)
--enable-pmix-timing Enable PMIx timing measurements (default: disabled)
--disable-mmap-shmem disable mmap shared memory support (default:
enabled)
--disable-posix-shmem disable posix shared memory support (default:
enabled)
--disable-sysv-shmem disable sysv shared memory support (default:
enabled)
--disable-io-romio Disable the ROMIO MPI-IO component
--enable-mtl-portals4-flow-control
enable flow control for Portals 4 MTL (default:
disabled)
--disable-psm2-version-check
Disable PSM2 version checking. Not recommended to
disable. (default: enabled)
--disable-mmap-sshmem disable mmap shared memory support (default:
enabled)
--disable-sysv-sshmem disable sysv shared memory support (default:
enabled)
--disable-verbs-sshmem disable verbs shared memory support (default:
enabled)
--enable-mpi-ext=LIST Comma-separated list of extensions that should be
built. Possible values: affinity, cr, cuda, pcollreq. Example:
"--enable-mpi-ext=foo,bar" will enable building the
MPI extensions "foo" and "bar". If LIST is empty or
the special value "all", then all available MPI
extensions will be built (default: all).
--enable-contrib-no-build=LIST
Comma-separated list of contributed package names
that will not be built. Possible values:
libompitrace. Example:
"--enable-contrib-no-build=foo,bar" will disable
building both the "foo" and "bar" contributed
software packages (default: none -- i.e., build all
possible contrib packages)
--disable-libompitrace disable support for contributed package libompitrace
(default: enabled)
--enable-visibility enable visibility feature of certain
compilers/linkers (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-patches-dir=DIR
Location of the platform patches directory. If you
use this option, you must also use --with-platform.
--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-libnl(=DIR) Directory prefix for libnl (typically only necessary
if libnl is installed in a location that the
compiler/linker will not search by default)
--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-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-zlib=DIR Search for zlib headers and libraries in DIR
--with-zlib-libdir=DIR Search for zlib libraries in DIR
--with-cuda(=DIR) Build cuda support, optionally adding DIR/include
--with-pmi(=DIR) Build PMI support, optionally adding DIR to the
search path (default: no)
--with-pmi-libdir=DIR Look for libpmi or libpmi2 in the given directory
DIR, DIR/lib or DIR/lib64
--with-pmix(=DIR) Build PMIx 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 PMIx. "external" forces
Open MPI to use an external installation of PMIx.
Supplying a valid directory name also forces Open
MPI to use an external installation of PMIx, and
adds DIR/include, DIR/lib, and DIR/lib64 to the
search path for headers and libraries. Note that
Open MPI does not support --without-pmix.
--with-pmix-libdir=DIR Look for libpmix the given directory DIR, DIR/lib or
DIR/lib64
--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-oshmem-param-check(=VALUE)
behavior of OSHMEM API function parameter checking.
Valid values are: always, never. If
--with-oshmem-param-check is specified with no VALUE
argument, it is equivalent to a VALUE of "always";
--without-oshmem-param-check is equivalent to
"never" (default: always).
--with-libmpi-name=STRING
"Replace \"libmpi(_FOO)\" with \"libSTRING(_FOO)\"
(default=mpi)"
--with-wrapper-cflags Extra flags to add to CFLAGS when using mpicc
--with-wrapper-cflags-prefix
Extra flags (before user flags) to add to CFLAGS
when using mpicc
--with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using
mpiCC/mpic++
--with-wrapper-cxxflags-prefix
Extra flags to add to CXXFLAGS when using
mpiCC/mpic++
--with-wrapper-fcflags Extra flags to add to FCFLAGS when using mpifort
--with-wrapper-fcflags-prefix
Extra flags (before user flags) to add to FCFLAGS
when using mpifort
--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-exflags Specify flags necessary to enable C++ exceptions
--with-jdk-dir(=DIR) Location of the JDK header directory. If you use
this option, do not specify --with-jdk-bindir or
--with-jdk-headers.
--with-jdk-bindir(=DIR) Location of the JDK bin directory. If you use this
option, you must also use --with-jdk-headers (and
you must NOT use --with-jdk-dir)
--with-jdk-headers(=DIR)
Location of the JDK header directory. If you use
this option, you must also use --with-jdk-bindir
(and you must NOT use --with-jdk-dir)
--with-broken-qsort Build with FreeBSD qsort instead of native qsort
(default: no)
--with-cs-fs Destination FS is case sensitive (default: set to
value of the build FS's case sensitivity)
--with-libfabric=DIR Deprecated synonym for --with-ofi
--with-libfabric-libdir=DIR
Deprecated synonym for --with-ofi-libdir
--with-ofi=DIR Specify location of OFI libfabric installation,
adding DIR/include to the default search location
for libfabric headers, and DIR/lib or DIR/lib64 to
the default search location for libfabric libraries.
Error if libfabric support cannot be found.
--with-ofi-libdir=DIR Search for OFI libfabric libraries in DIR
--with-ucx(=DIR) Build with Unified Communication X library support
--with-ucx-libdir=DIR Search for Unified Communication X libraries in DIR
--with-verbs(=DIR) Build verbs support, optionally adding DIR/include,
DIR/lib, and DIR/lib64 to the search path for
headers and libraries
--with-verbs-libdir=DIR Search for verbs libraries in DIR
--with-verbs-usnic Add support in Open MPI to defeat a seemingly dire
warning message from libibverbs that Cisco usNIC
devices are not supported. This support is not
compiled by default because you can also avoid this
libibverbs bug by installing the libibverbs_usnic
"no no" plugin, available from
https://github.com/cisco/libusnic_verbs or in binary
form from cisco.com
--with-portals4(=DIR) Build Portals4 support, optionally adding
DIR/include, DIR/lib, and DIR/lib64 to the search
path for headers and libraries
--with-portals4-libdir=DIR
Search for Portals4 libraries in DIR
--with-portals4-max-md-size=SIZE
Log base 2 of the maximum size in bytes of a memory
descriptor. Should only be set for implementations
which do not support binding all of virtual address
space.
--with-portals4-max-va-size=SIZE
Log base 2 of the maximum size in bytes of the user
virtual address space. Should only be set for
implementations which do not support binding all of
virtual address space.
--with-ugni Build support for Cray GNI. Set PKG_CONFIG_PATH env.
variable to specify alternate path.
--with-usnic If specified, cause an error if usNIC support cannot
be built
--with-cray-xpmem(=yes/no)
Build Cray XPMEM support(default: auto)
--with-xpmem(=DIR) Build with XPMEM kernel module support, searching
for headers in DIR
--with-xpmem-libdir=DIR Search for XPMEM library in DIR
--with-knem(=DIR) Build knem Linux kernel module support, searching
for headers in DIR/include
--with-cma Build Cross Memory Attach support (default:
autodetect)
--with-libltdl(=DIR) Build libltdl support, optionally adding
DIR/include, DIR/lib, and DIR/lib64 to the search
path for headers and libraries
--with-libltdl-libdir=DIR
Search for libltdl libraries in DIR
--with-libevent=DIR Search for libevent headers and libraries in DIR.
Should only be used if an external copy of libevent
is being used.
--with-libevent-libdir=DIR
Search for libevent libraries in DIR. Should only be
used if an external copy of libevent is being used.
--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. Note that
Open MPI no longer supports --without-hwloc.
--with-hwloc-libdir=DIR Search for hwloc libraries in DIR. Should only be
used if an external copy of hwloc is being used.
--with-x use the X Window System
--with-hwloc-plugins-path=dir:...
Colon-separated list of plugin directories. Default:
"$prefix/lib/hwloc". Plugins will be installed in
the first directory. They will be loaded from all of
them, in order.
--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-memkind(=DIR) ,
Build with MEMKIND, searching for headers in DIR)
--with-cray-pmi(=DIR) Build Cray PMI support, optionally adding DIR to the
search path (default: auto)
--with-alps(=DIR|yes|no)
Build with ALPS scheduler component, optionally
adding DIR/include, DIR/lib, and DIR/lib64 to the
search path for headers and libraries (default:
auto)
--with-alps-libdir=DIR Location of alps libraries (alpslli, alpsutil)
(default: /usr/lib/alps
(/opt/cray/xe-sysroot/default/user on eslogin
nodes))
--with-flux-pmi Build Flux PMI support (default: yes)
--with-flux-pmi-library Link Flux PMI support with PMI library at build
time. Otherwise the library is opened at runtime at
location specified by FLUX_PMI_LIBRARY_PATH
environment variable. Use this option to enable Flux
support when building statically or without dlopen
support (default: no)
--with-udreg Build support for Cray udreg support. Set
PKG_CONFIG_PATH env. variable to specify alternate
path.
--with-timer=TYPE Build high resolution timer component TYPE
--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-sge Build SGE or Grid Engine support (default: no)
--with-moab Build MOAB scheduler component (default: yes)
--with-moab-libdir=DIR Search for Moab libraries in DIR
--with-singularity(=DIR)
Build support for the Singularity container,
optionally adding DIR to the search path
--with-fca(=DIR) Build fca (Mellanox Fabric Collective Accelerator)
support, optionally adding DIR/include and DIR/lib
or DIR/lib64 to the search path for headers and
libraries
--with-hcoll(=DIR) Build hcoll (Mellanox Hierarchical Collectives)
support, optionally adding DIR/include and DIR/lib
or DIR/lib64 to the search path for headers and
libraries
--with-ucc(=DIR) Build UCC (Unified Collective Communication)
--with-ime(=DIR) Build IME support, optionally adding DIR/include,
DIR/lib, and DIR/lib64 to the search path for
headers and libraries
--with-pvfs2(=DIR) Build Pvfs2 support, optionally adding DIR/include,
DIR/lib, and DIR/lib64 to the search path for
headers and libraries
--with-gpfs(=DIR) Build Gpfs support, optionally adding DIR/include,
DIR/lib, and DIR/lib64 to the search path for
headers and libraries
--with-lustre(=DIR) Build Lustre support, optionally adding DIR/include,
DIR/lib, and DIR/lib64 to the search path for
headers and libraries
--with-io-romio-flags=FLAGS
Pass FLAGS to the ROMIO distribution configuration
script
--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-psm2(=DIR) Build PSM2 (Intel PSM2) support, optionally adding
DIR/include, DIR/lib, and DIR/lib64 to the search
path for headers and libraries
--with-psm2-libdir=DIR Search for PSM (Intel PSM2) libraries in DIR
--with-mxm(=DIR) Build Mellanox Messaging support, optionally adding
DIR/include and DIR/lib or DIR/lib64 to the search
path for headers and libraries
--with-mxm-libdir=DIR Search for Mellanox MXM libraries in DIR
--with-ompi-pmix-rte Use PMIx as the OMPI run-time environment (default:
no)
--with-orte Use ORTE run-time environment (default: yes)
--with-treematch(=DIR) Build TreeMatch topology support, optionally adding
DIR/include, DIR/lib, and DIR/lib64 to the search
path for headers and libraries
--with-treematch-include(=DIR)
"Search for TreeMatch headers in DIR"
--with-treematch-libdir(=DIR)
"Search for TreeMatch libraries in DIR"
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both]
--with-aix-soname=aix|svr4|both
shared library versioning (aka "SONAME") variant to
provide on AIX, [default=aix].
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
compiler's sysroot if not specified).
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory
LIBS libraries to pass to the linker, e.g. -l
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if
you have headers in a nonstandard directory
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)
FC Fortran compiler command
FCFLAGS Fortran compiler flags
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
ucx_CFLAGS C compiler flags for ucx, overriding pkg-config
ucx_LIBS linker flags for ucx, overriding pkg-config
ucx_STATIC_LIBS
static linker flags for ucx, overriding pkg-config
CRAY_UGNI_CFLAGS
C compiler flags for CRAY_UGNI, overriding pkg-config
CRAY_UGNI_LIBS
linker flags for CRAY_UGNI, overriding pkg-config
CRAY_XPMEM_CFLAGS
C compiler flags for CRAY_XPMEM, overriding pkg-config
CRAY_XPMEM_LIBS
linker flags for CRAY_XPMEM, overriding pkg-config
CRAY_XPMEM_STATIC_LIBS
static linker flags for CRAY_XPMEM, overriding pkg-config
HWLOC_MS_LIB
Path to Microsoft's Visual Studio `lib' tool
HWLOC_PCIACCESS_CFLAGS
C compiler flags for PCIACCESS, overriding pkg-config
HWLOC_PCIACCESS_LIBS
linker flags for PCIACCESS, overriding pkg-config
XMKMF Path to xmkmf, Makefile generator for X Window System
HWLOC_LIBXML2_CFLAGS
C compiler flags for LIBXML2, overriding pkg-config
HWLOC_LIBXML2_LIBS
linker flags for LIBXML2, overriding pkg-config
CRAY_PMI_CFLAGS
C compiler flags for CRAY_PMI, overriding pkg-config
CRAY_PMI_LIBS
linker flags for CRAY_PMI, overriding pkg-config
CRAY_PMI_STATIC_LIBS
static linker flags for CRAY_PMI, overriding pkg-config
CRAY_ALPSLLI_CFLAGS
C compiler flags for CRAY_ALPSLLI, overriding pkg-config
CRAY_ALPSLLI_LIBS
linker flags for CRAY_ALPSLLI, overriding pkg-config
CRAY_ALPSLLI_STATIC_LIBS
static linker flags for CRAY_ALPSLLI, overriding pkg-config
CRAY_ALPSUTIL_CFLAGS
C compiler flags for CRAY_ALPSUTIL, overriding pkg-config
CRAY_ALPSUTIL_LIBS
linker flags for CRAY_ALPSUTIL, overriding pkg-config
CRAY_ALPSUTIL_STATIC_LIBS
static linker flags for CRAY_ALPSUTIL, overriding pkg-config
CRAY_ALPS_CFLAGS
C compiler flags for CRAY_ALPS, overriding pkg-config
CRAY_ALPS_LIBS
linker flags for CRAY_ALPS, overriding pkg-config
CRAY_ALPS_STATIC_LIBS
static linker flags for CRAY_ALPS, overriding pkg-config
CRAY_WLM_DETECT_CFLAGS
C compiler flags for CRAY_WLM_DETECT, overriding pkg-config
CRAY_WLM_DETECT_LIBS
linker flags for CRAY_WLM_DETECT, overriding pkg-config
CRAY_WLM_DETECT_STATIC_LIBS
static linker flags for CRAY_WLM_DETECT, overriding pkg-config
FLUX_PMI_CFLAGS
C compiler flags for FLUX_PMI, overriding pkg-config
FLUX_PMI_LIBS
linker flags for FLUX_PMI, overriding pkg-config
CRAY_UDREG_CFLAGS
C compiler flags for CRAY_UDREG, overriding pkg-config
CRAY_UDREG_LIBS
linker flags for CRAY_UDREG, overriding pkg-config
LT_SYS_LIBRARY_PATH
User-defined run-time library search path.
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 .
_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 4.1.4
generated by GNU Autoconf 2.69
Copyright (C) 2012 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; ${as_lineno_stack:+:} 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; } > conftest.i && {
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; ${as_lineno_stack:+:} 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 eval \${$3+:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; 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.i 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;}
( $as_echo "## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##"
) | 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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} 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; ${as_lineno_stack:+:} 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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} 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 ||
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; ${as_lineno_stack:+:} 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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_type
# 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 eval \${$4+:} false; 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; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_member
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, 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_decl_name=`echo $2|sed 's/ *(.*//'`
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
if eval \${$3+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
main ()
{
#ifndef $as_decl_name
#ifdef __cplusplus
(void) $as_decl_use;
#else
(void) $as_decl_name;
#endif
#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; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_decl
# 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 eval \${$3+:} false; 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 declares $2.
For example, HP-UX 11i declares gettimeofday. */
#define $2 innocuous_$2
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $2 (); below.
Prefer to if __STDC__ is defined, since
exists even on freestanding compilers. */
#ifdef __STDC__
# include
#else
# include
#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; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_func
# 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 test_array [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 test_array [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 test_array [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 test_array [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 test_array [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
#include
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 &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; ${as_lineno_stack:+:} 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; } > conftest.i && {
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; ${as_lineno_stack:+:} 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 ||
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; ${as_lineno_stack:+:} 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; ${as_lineno_stack:+:} 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 test_array [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 test_array [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 test_array [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 test_array [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 test_array [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
#include
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 &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; ${as_lineno_stack:+:} 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 ||
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; ${as_lineno_stack:+:} 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; ${as_lineno_stack:+:} unset as_lineno
as_fn_set_status $ac_retval
} # ac_fn_fc_try_run
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 4.1.4, which was
generated by GNU Autoconf 2.69. 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
$as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
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
$as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
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
$as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
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
$as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
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
# We do not want a PATH search for config.site.
case $CONFIG_SITE in #((
-*) ac_site_file1=./$CONFIG_SITE;;
*/*) ac_site_file1=$CONFIG_SITE;;
*) ac_site_file1=./$CONFIG_SITE;;
esac
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" \
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
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
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
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.
# Capture configure command line do the AC substitution
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in sed_quote_subst arg quoted_arg; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"sed_quote_subst arg quoted_arg\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
OPAL_CONFIGURE_CLI=
for arg in "$@"; do
sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
case "$arg" in
*[\\\`\"\$]*)
quoted_arg=\'`echo "$arg" | sed $sed_quote_subst`\' ;;
*)
quoted_arg="\'$arg\'" ;;
esac
eval "OPAL_CONFIGURE_CLI=\$OPAL_CONFIGURE_CLI\\ \$quoted_arg"
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Get our platform support file. This has to be done very, very early
# because it twiddles random bits of autoconf
# Check whether --with-platform-patches-dir was given.
if test "${with_platform_patches_dir+set}" = set; then :
withval=$with_platform_patches_dir;
fi
# Check whether --with-platform was given.
if test "${with_platform+set}" = set; then :
withval=$with_platform;
fi
if test "$with_platform" = "" ; then
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 not an absolute path, check in contrib/platform
if test ! "`echo $with_platform | cut -c1`" = "/" && test ! "`echo $with_platform | cut -c2`" = ".." ; 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:5718: 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" && test -f "$with_platform"; then
cat $with_platform >&5
fi
# setup by getting full pathname for the platform directories
platform_base="`dirname $with_platform`"
platform_file="`basename $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`
. ./"$platform_file"
# see if they left us a name
if test "$OPAL_PLATFORM_LOADED" != "" ; then
platform_loaded="$OPAL_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:5751: Loaded platform arguments for $platform_loaded" >&5
else
echo Loaded platform arguments for $platform_loaded >&5
fi
# look for default mca param file
# 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
patch_dir="${with_platform}.patches"
if test -n "$with_platform_patches_dir"; then
if test "$with_platform_patches_dir" = "yes"; then
patch_dir="${with_platform}.patches"
elif test "$with_platform_patches_dir" = "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling platform patches on user request" >&5
$as_echo "$as_me: Disabling platform patches on user request" >&6;}
patch_dir=""
elif test -d "$with_platform_patches_dir"; then
patch_dir=$with_platform_patches_dir
else
as_fn_error $? "User provided patches directory: $with_platform_patches_dir not found" "$LINENO" 5
fi
fi
patch_done="${srcdir}/.platform_patches"
patch_found=no
if test -d "${patch_dir}"; then
if test ! -f "${patch_done}"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking patches from ${patch_dir}/ directory " >&5
$as_echo "$as_me: Checking patches from ${patch_dir}/ directory " >&6;}
for one_patch in $patch_dir/*.patch ; do
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking patch: $one_patch for errors " >&5
$as_echo_n "checking patch: $one_patch for errors ... " >&6; }
patch -d ${srcdir} -p1 -t -s --dry-run < ${one_patch}
if test "$?" != "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
$as_echo "fail" >&6; }
as_fn_error $? "Platform patches failed to apply" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking patch: $one_patch for unsupported configury changes " >&5
$as_echo_n "checking patch: $one_patch for unsupported configury changes ... " >&6; }
has_configury_items=$(patch -d ${srcdir} -p1 -t --dry-run < ${one_patch} 2>&1 | egrep "^patching" | egrep '*\.(am|m4)$' | wc -l)
if test $has_configury_items -ne 0; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
$as_echo "fail" >&6; }
as_fn_error $? "Platform patches should not change configury files" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi
done
for one_patch in $patch_dir/*.patch ; do
{ $as_echo "$as_me:${as_lineno-$LINENO}: Applying patch ${one_patch}" >&5
$as_echo "$as_me: Applying patch ${one_patch}" >&6;}
patch -d ${srcdir} -p1 -t -s < ${one_patch}
if test "$?" != "0"; then
as_fn_error $? "Failed to apply patch ${one_patch}" "$LINENO" 5
fi
patch_found=yes
done
if test "$patch_found" = "yes"; then
platform_root_short="$(basename $platform_base)"
# If platform file resides under platform/ root folder - use filename as ident
if test "$platform_root_short" = "platform" ; then
platform_ident="$platform_file"
else
platform_ident="$(basename $platform_base)"
fi
# Set custom ident for platform patched OMPI
if test -z "$with_ident_string" ; then
with_ident_string="Platform: $platform_ident"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: Platform patches applied, created stamp file ${patch_done}" >&5
$as_echo "$as_me: Platform patches applied, created stamp file ${patch_done}" >&6;}
touch ${patch_done}
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: No platform patches in ${patch_dir}" >&5
$as_echo "$as_me: No platform patches in ${patch_dir}" >&6;}
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Platform patches already applied, skipping. ${patch_done} can be removed to re-apply " >&5
$as_echo "$as_me: WARNING: Platform patches already applied, skipping. ${patch_done} can be removed to re-apply " >&2;}
fi
elif test -n "${patch_dir}"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: No platform patches in ${patch_dir}" >&5
$as_echo "$as_me: No platform patches in ${patch_dir}" >&6;}
fi
else
OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf
fi
#
# Start it up
#
# 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 ${ac_cv_prog_PERL+:} false; 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 as_fn_executable_p "$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
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no"
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
if test "X$PERL" = "Xno"; then :
as_fn_error $? "\"Open MPI requires perl. Aborting\"" "$LINENO" 5
fi
# Some helper script functions. Unfortunately, we cannot use kinds
# of arguments here because of the m4 substitution. So we have to set
# special variable names before invoking the function. :-\
opal_show_title() {
cat <&5
else
echo === ${1} >&5
fi
}
opal_show_subtitle() {
cat <&5
else
echo *** ${1} >&5
fi
}
opal_show_subsubtitle() {
cat <&5
else
echo +++ ${1} >&5
fi
}
opal_show_subsubsubtitle() {
cat <&5
else
echo --- ${1} >&5
fi
}
opal_show_verbose() {
if test "$V" = "1"; then
cat <&5
else
echo --- ${1} >&5
fi
fi
}
#
# Save some stats about this build
#
OPAL_CONFIGURE_USER="${USER:-`whoami`}"
OPAL_CONFIGURE_HOST="${HOSTNAME:-`(hostname || uname -n) 2> /dev/null | sed 1q`}"
# Note: it's ok to use $srcdir here because this macro is called at
# the very beginning of configure.ac:
#
# a) before $OMPI_TOP_SRCDIR is set, and
# b) from the top-level build directory (i.e., so $srcdir actually
# points to the top source directory)
OPAL_CONFIGURE_DATE="`$srcdir/config/getdate.sh`"
opal_libnl_version=0
opal_libnlv1_libs=
opal_libnlv3_libs=
# Check whether --with-libnl was given.
if test "${with_libnl+set}" = set; then :
withval=$with_libnl;
fi
# The --with options carry two pieces of information: 1) do
# you want a specific version of libnl, and 2) where that
# version of libnl lives. For simplicity, let's separate
# those two pieces of information.
case "$with_libnl" in
no)
# Nope, don't want it
opal_want_libnl=no
;;
"")
# Just try to build with libnl
opal_want_libnl=try
opal_libnl_location=
;;
yes)
# Yes, definitely want it
opal_want_libnl=yes
opal_libnl_location=
;;
*)
# Yes, definitely want it -- at a specific location
opal_want_libnl=yes
opal_libnl_location=$with_libnl
;;
esac
#
# Save these details so that they can be used in opal_info later
#
opal_show_title "Configuring Open MPI"
#
# Setup some things that must be done before AM-INIT-AUTOMAKE
#
opal_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 ${ac_cv_build+:} false; 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 ${ac_cv_host+:} false; 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 ${ac_cv_target+:} false; 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_USE_SYSTEM_EXTENSIONS alters CFLAGS (e.g., adds -g -O2)
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in CFLAGS_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"CFLAGS_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
CFLAGS_save=$CFLAGS
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$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_error 77 "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
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 ${ac_cv_objext+:} false; 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 ${ac_cv_c_compiler_gnu+:} false; 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 ${ac_cv_prog_cc_g+:} false; 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 ${ac_cv_prog_cc_c89+:} false; 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
#include
struct stat;
/* 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 whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; 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.
# Following AC_PROG_CC_C_O, we do the test twice because some
# compilers refuse to overwrite an existing .o file with -o,
# though they will create one.
am_cv_prog_cc_c_o=yes
for am_i in 1 2; do
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } \
&& test -f conftest2.$ac_objext; then
: OK
else
am_cv_prog_cc_c_o=no
break
fi
done
rm -f core conftest*
unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != 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
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 ${ac_cv_prog_CPP+:} false; 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 to if __STDC__ is defined, since
# 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
#else
# include
#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.i 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
_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.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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 to if __STDC__ is defined, since
# 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
#else
# include
#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.i 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
_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.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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 ${ac_cv_path_GREP+:} false; 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"
as_fn_executable_p "$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 ${ac_cv_path_EGREP+:} false; 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"
as_fn_executable_p "$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 ${ac_cv_header_stdc+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include
#include
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
_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
_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
#include
#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
"
if eval test \"x\$"$as_ac_Header"\" = 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" = xyes; 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 ${ac_cv_safe_to_define___extensions__+:} false; 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
# AC_USE_SYSTEM_EXTENSIONS will modify CFLAGS if nothing was in there
# beforehand. We don't want that. So if there was nothing in
# CFLAGS, put nothing back in there.
if test -z "$CFLAGS_save"; then :
CFLAGS=
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
#
# Init automake
#
am__api_version='1.15'
# 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 ${ac_cv_path_install+:} false; 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 as_fn_executable_p "$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; }
# 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 (
am_has_slept=no
for am_try in 1 2; do
echo "timestamp, slept: $am_has_slept" > conftest.file
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
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
if test "$2" = conftest.file || test $am_try -eq 2; then
break
fi
# Just in case.
sleep 1
am_has_slept=yes
done
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; }
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
( sleep 1 ) &
am_sleep_pid=$!
fi
rm -f conftest.file
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"`
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 --is-lightweight"; then
am_missing_run="$MISSING "
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+set}" != 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 ${ac_cv_prog_STRIP+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_STRIP+:} false; 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 as_fn_executable_p "$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 ${ac_cv_path_mkdir+:} false; 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
as_fn_executable_p "$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; }
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 ${ac_cv_prog_AWK+:} false; 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 as_fn_executable_p "$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 eval \${ac_cv_prog_make_${ac_make}_set+:} false; 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='\'
am__nodep='_no'
fi
if test "x$enable_dependency_tracking" != xno; then
AMDEP_TRUE=
AMDEP_FALSE='#'
else
AMDEP_TRUE='#'
AMDEP_FALSE=
fi
# 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=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
$as_echo_n "(cached) " >&6
else
if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
am_cv_make_support_nested_variables=yes
else
am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
AM_V='$(V)'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
AM_V=$AM_DEFAULT_VERBOSITY
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'
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='4.1.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"}
# For better backward compatibility. To be removed once Automake 1.9.x
# dies out for good. For more background, see:
#
#
mkdir_p='$(MKDIR_P)'
# We need awk for the "check" target (and possibly the TAP driver). The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility. Yes, it's still used
# in the wild :-( We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'
# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar plaintar pax cpio none'
# The POSIX 1988 'ustar' format is defined with fixed-size fields.
# There is notably a 21 bits limit for the UID and the GID. In fact,
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
# and bug#13588).
am_max_uid=2097151 # 2^21 - 1
am_max_gid=$am_max_uid
# The $UID and $GID variables are not portable, so we need to resort
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
# below are definitely unexpected, so allow the users to see them
# (that is, avoid stderr redirection).
am_uid=`id -u || echo unknown`
am_gid=`id -g || echo unknown`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
if test $am_uid -le $am_max_uid; 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; }
_am_tools=none
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
if test $am_gid -le $am_max_gid; 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; }
_am_tools=none
fi
{ $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; }
# Go ahead even if we have the value already cached. We do so because we
# need to set the values for the 'am__tar' and 'am__untar' variables.
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
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 &5
($am__untar &5 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ echo "$as_me:$LINENO: cat conftest.dir/file" >&5
(cat conftest.dir/file) >&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 ${am_cv_prog_tar_ustar+:} false; 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 ${am_cv_CC_dependencies_compiler_type+:} false; 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".
rm -rf conftest.dir
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 10 /bin/sh.
echo '/* dummy */' > 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
;;
msvc7 | msvc7msys | 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
# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes. So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
cat >&2 <<'END'
Oops!
Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present. This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard:
Please tell bug-automake@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message. This
can help us improve future automake versions.
END
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
echo 'Configuration will proceed anyway, since you have set the' >&2
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
echo >&2
else
cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.
You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: .
If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.
END
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
fi
fi
# SILENT_RULES is new in AM 1.11, but we require 1.11 or higher via
# autogen. Limited testing shows that calling SILENT_RULES directly
# works in more cases than adding "silent-rules" to INIT_AUTOMAKE
# (even though they're supposed to be identical). Shrug.
# 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_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
$as_echo_n "(cached) " >&6
else
if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
am_cv_make_support_nested_variables=yes
else
am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
AM_V='$(V)'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
AM_V=$AM_DEFAULT_VERBOSITY
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'
# Make configure depend on the VERSION file, since it's used in AC_INIT
CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'
# Sanity checks
ompi_dir=`pwd`
dir="$ompi_dir"
article="a"
label="build tree"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking directory of $label" >&5
$as_echo_n "checking directory of $label... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
$as_echo "$dir" >&6; }
if test -n "`echo $dir | grep ' '`"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of Open MPI does not support $article $label" >&5
$as_echo "$as_me: WARNING: This version of Open MPI does not support $article $label" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with a path that contains spaces" >&5
$as_echo "$as_me: WARNING: with a path that contains spaces" >&2;}
as_fn_error $? "Cannot continue." "$LINENO" 5
fi
dir="$srcdir"
article="a"
label="source tree"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking directory of $label" >&5
$as_echo_n "checking directory of $label... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
$as_echo "$dir" >&6; }
if test -n "`echo $dir | grep ' '`"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of Open MPI does not support $article $label" >&5
$as_echo "$as_me: WARNING: This version of Open MPI does not support $article $label" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with a path that contains spaces" >&5
$as_echo "$as_me: WARNING: with a path that contains spaces" >&2;}
as_fn_error $? "Cannot continue." "$LINENO" 5
fi
dir="$prefix"
article="a"
label="prefix"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking directory of $label" >&5
$as_echo_n "checking directory of $label... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
$as_echo "$dir" >&6; }
if test -n "`echo $dir | grep ' '`"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of Open MPI does not support $article $label" >&5
$as_echo "$as_me: WARNING: This version of Open MPI does not support $article $label" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with a path that contains spaces" >&5
$as_echo "$as_me: WARNING: with a path that contains spaces" >&2;}
as_fn_error $? "Cannot continue." "$LINENO" 5
fi
opal_show_subtitle "Checking versions"
# Get the version of OMPI that we are installing
if test -f "$srcdir/VERSION"; then
srcdir=`dirname $srcdir/VERSION`
opal_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/^repo_rev/OMPI_REPO_REV/
s/^tarball_version/OMPI_TARBALL_VERSION/
s/^date/OMPI_RELEASE_DATE/
t print
b
: print
p" < "$srcdir/VERSION"`
eval "$opal_vers"
OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION.$OMPI_RELEASE_VERSION"
OMPI_VERSION="${OMPI_VERSION}${OMPI_GREEK_VERSION}"
if test "$OMPI_TARBALL_VERSION" = ""; then
OMPI_TARBALL_VERSION=$OMPI_VERSION
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for repo version" >&5
$as_echo_n "checking for repo version... " >&6; }
# If repo_rev was not set in the VERSION file, then get it now
if test "$OMPI_REPO_REV" = ""; then
# See if we can find the "git" command.
git_happy=0
git --version > /dev/null 2>&1
if test $? -eq 0; then
git_happy=1
fi
# If we're in a git repo and we found the git command, use
# git describe to get the repo rev
if test -r "$srcdir/.git" && test $git_happy -eq 1; then
if test "$srcdir" != "`pwd`"; then
git_save_dir=`pwd`
cd "$srcdir"
OMPI_REPO_REV=`git describe --tags --always`
cd "$git_save_dir"
unset git_save_dir
else
OMPI_REPO_REV=`git describe --tags --always`
fi
else
OMPI_REPO_REV=`$srcdir/config/getdate.sh '+%Y-%m-%d'`
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_REPO_REV" >&5
$as_echo "$OMPI_REPO_REV" >&6; }
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 repository version" >&5
$as_echo_n "checking Open MPI repository version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_REPO_REV" >&5
$as_echo "$OMPI_REPO_REV" >&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_REPO_REV "$OMPI_REPO_REV"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_TARBALL_VERSION "$OMPI_TARBALL_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"
if test -f "$srcdir/VERSION"; then
srcdir=`dirname $srcdir/VERSION`
opal_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/^repo_rev/ORTE_REPO_REV/
s/^tarball_version/ORTE_TARBALL_VERSION/
s/^date/ORTE_RELEASE_DATE/
t print
b
: print
p" < "$srcdir/VERSION"`
eval "$opal_vers"
ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_RELEASE_VERSION"
ORTE_VERSION="${ORTE_VERSION}${ORTE_GREEK_VERSION}"
if test "$ORTE_TARBALL_VERSION" = ""; then
ORTE_TARBALL_VERSION=$ORTE_VERSION
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for repo version" >&5
$as_echo_n "checking for repo version... " >&6; }
# If repo_rev was not set in the VERSION file, then get it now
if test "$ORTE_REPO_REV" = ""; then
# See if we can find the "git" command.
git_happy=0
git --version > /dev/null 2>&1
if test $? -eq 0; then
git_happy=1
fi
# If we're in a git repo and we found the git command, use
# git describe to get the repo rev
if test -r "$srcdir/.git" && test $git_happy -eq 1; then
if test "$srcdir" != "`pwd`"; then
git_save_dir=`pwd`
cd "$srcdir"
ORTE_REPO_REV=`git describe --tags --always`
cd "$git_save_dir"
unset git_save_dir
else
ORTE_REPO_REV=`git describe --tags --always`
fi
else
ORTE_REPO_REV=`$srcdir/config/getdate.sh '+%Y-%m-%d'`
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_REPO_REV" >&5
$as_echo "$ORTE_REPO_REV" >&6; }
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 repository version" >&5
$as_echo_n "checking Open MPI Run-Time Environment repository version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_REPO_REV" >&5
$as_echo "$ORTE_REPO_REV" >&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_REPO_REV "$ORTE_REPO_REV"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define ORTE_TARBALL_VERSION "$ORTE_TARBALL_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"
if test -f "$srcdir/VERSION"; then
srcdir=`dirname $srcdir/VERSION`
opal_vers=`sed -n "
t clear
: clear
s/^major/OSHMEM_MAJOR_VERSION/
s/^minor/OSHMEM_MINOR_VERSION/
s/^release/OSHMEM_RELEASE_VERSION/
s/^greek/OSHMEM_GREEK_VERSION/
s/^repo_rev/OSHMEM_REPO_REV/
s/^tarball_version/OSHMEM_TARBALL_VERSION/
s/^date/OSHMEM_RELEASE_DATE/
t print
b
: print
p" < "$srcdir/VERSION"`
eval "$opal_vers"
OSHMEM_VERSION="$OSHMEM_MAJOR_VERSION.$OSHMEM_MINOR_VERSION.$OSHMEM_RELEASE_VERSION"
OSHMEM_VERSION="${OSHMEM_VERSION}${OSHMEM_GREEK_VERSION}"
if test "$OSHMEM_TARBALL_VERSION" = ""; then
OSHMEM_TARBALL_VERSION=$OSHMEM_VERSION
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for repo version" >&5
$as_echo_n "checking for repo version... " >&6; }
# If repo_rev was not set in the VERSION file, then get it now
if test "$OSHMEM_REPO_REV" = ""; then
# See if we can find the "git" command.
git_happy=0
git --version > /dev/null 2>&1
if test $? -eq 0; then
git_happy=1
fi
# If we're in a git repo and we found the git command, use
# git describe to get the repo rev
if test -r "$srcdir/.git" && test $git_happy -eq 1; then
if test "$srcdir" != "`pwd`"; then
git_save_dir=`pwd`
cd "$srcdir"
OSHMEM_REPO_REV=`git describe --tags --always`
cd "$git_save_dir"
unset git_save_dir
else
OSHMEM_REPO_REV=`git describe --tags --always`
fi
else
OSHMEM_REPO_REV=`$srcdir/config/getdate.sh '+%Y-%m-%d'`
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSHMEM_REPO_REV" >&5
$as_echo "$OSHMEM_REPO_REV" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Open SHMEM version" >&5
$as_echo_n "checking Open SHMEM version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSHMEM_VERSION" >&5
$as_echo "$OSHMEM_VERSION" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Open SHMEM release date" >&5
$as_echo_n "checking Open SHMEM release date... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSHMEM_RELEASE_DATE" >&5
$as_echo "$OSHMEM_RELEASE_DATE" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Open SHMEM repository version" >&5
$as_echo_n "checking Open SHMEM repository version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSHMEM_REPO_REV" >&5
$as_echo "$OSHMEM_REPO_REV" >&6; }
cat >>confdefs.h <<_ACEOF
#define OSHMEM_MAJOR_VERSION $OSHMEM_MAJOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_MINOR_VERSION $OSHMEM_MINOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_RELEASE_VERSION $OSHMEM_RELEASE_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_GREEK_VERSION "$OSHMEM_GREEK_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_REPO_REV "$OSHMEM_REPO_REV"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_TARBALL_VERSION "$OSHMEM_TARBALL_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_VERSION "$OSHMEM_RELEASE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OSHMEM_RELEASE_DATE "$OSHMEM_RELEASE_DATE"
_ACEOF
ac_config_files="$ac_config_files oshmem/include/oshmem/version.h"
if test -f "$srcdir/VERSION"; then
srcdir=`dirname $srcdir/VERSION`
opal_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/^repo_rev/OPAL_REPO_REV/
s/^tarball_version/OPAL_TARBALL_VERSION/
s/^date/OPAL_RELEASE_DATE/
t print
b
: print
p" < "$srcdir/VERSION"`
eval "$opal_vers"
OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION.$OPAL_RELEASE_VERSION"
OPAL_VERSION="${OPAL_VERSION}${OPAL_GREEK_VERSION}"
if test "$OPAL_TARBALL_VERSION" = ""; then
OPAL_TARBALL_VERSION=$OPAL_VERSION
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for repo version" >&5
$as_echo_n "checking for repo version... " >&6; }
# If repo_rev was not set in the VERSION file, then get it now
if test "$OPAL_REPO_REV" = ""; then
# See if we can find the "git" command.
git_happy=0
git --version > /dev/null 2>&1
if test $? -eq 0; then
git_happy=1
fi
# If we're in a git repo and we found the git command, use
# git describe to get the repo rev
if test -r "$srcdir/.git" && test $git_happy -eq 1; then
if test "$srcdir" != "`pwd`"; then
git_save_dir=`pwd`
cd "$srcdir"
OPAL_REPO_REV=`git describe --tags --always`
cd "$git_save_dir"
unset git_save_dir
else
OPAL_REPO_REV=`git describe --tags --always`
fi
else
OPAL_REPO_REV=`$srcdir/config/getdate.sh '+%Y-%m-%d'`
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_REPO_REV" >&5
$as_echo "$OPAL_REPO_REV" >&6; }
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 repository version" >&5
$as_echo_n "checking Open Portable Access Layer repository version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_REPO_REV" >&5
$as_echo "$OPAL_REPO_REV" >&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_REPO_REV "$OPAL_REPO_REV"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_TARBALL_VERSION "$OPAL_TARBALL_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.pl
# and/or opal_mca.m4, but I don't have the cycles to do this
# right now.
#
# Get the versions of the autotools that were used to bootstrap us
# (helpful for debugging reports)
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bootstrap Autoconf version" >&5
$as_echo_n "checking for bootstrap Autoconf version... " >&6; }
acversion=`grep "Generated by GNU Autoconf" $0 | head -n 1 | awk '{ print $6 }'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acversion" >&5
$as_echo "$acversion" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bootstrap Automake version" >&5
$as_echo_n "checking for bootstrap Automake version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am__api_version" >&5
$as_echo "$am__api_version" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostrap Libtool version" >&5
$as_echo_n "checking for boostrap Libtool version... " >&6; }
ltversion=`grep VERSION= $srcdir/config/ltmain.sh | head -n 1 | cut -d= -f2`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ltversion" >&5
$as_echo "$ltversion" >&6; }
# List header files to generate
ac_config_headers="$ac_config_headers opal/include/opal_config.h"
ac_config_headers="$ac_config_headers ompi/include/mpi.h"
ac_config_headers="$ac_config_headers oshmem/include/shmem.h"
opal_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)
#
# Make automake clean emacs ~ files for "make clean"
#
CLEANFILES="*~ .\#*"
#
# See if we can find an old installation of OPAL to overwrite
#
# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if opal_clean
# is not found in the path and the user did not specify --prefix,
# we'll get a $prefix of "."
opal_prefix_save="$prefix"
if test "x$prefix" = xNONE; then
$as_echo_n "checking for prefix by " >&6
# Extract the first word of "opal_clean", so it can be a program name with args.
set dummy opal_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 ${ac_cv_path_ac_prefix_program+:} false; 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 as_fn_executable_p "$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="$opal_prefix_save"
fi
unset opal_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
# 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
OPAL_TOP_SRCDIR="$OMPI_TOP_SRCDIR"
OPAL_TOP_BUILDDIR="$OMPI_TOP_BUILDDIR"
ORTE_TOP_SRCDIR="$OMPI_TOP_SRCDIR"
ORTE_TOP_BUILDDIR="$OMPI_TOP_BUILDDIR"
OSHMEM_TOP_SRCDIR="$OMPI_TOP_SRCDIR"
OSHMEM_TOP_BUILDDIR="$OMPI_TOP_BUILDDIR"
############################################################################
# Configuration options
############################################################################
opal_show_subtitle "OPAL Configuration options"
#
# Is this a developer copy?
#
if test -d .git; then
OPAL_DEVEL=1
else
OPAL_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
# Check whether --enable-builtin-atomics-for-ppc was given.
if test "${enable_builtin_atomics_for_ppc+set}" = set; then :
enableval=$enable_builtin_atomics_for_ppc;
fi
if test "x$enable_builtin_atomics_for_ppc" = "xyes" ; then
force_gcc_atomics_ppc=1
else
force_gcc_atomics_ppc=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
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
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
#################### Developer default override ####################
if test "$WANT_PICKY_COMPILER" = "0" && test -z "$enable_picky" && test "$OPAL_DEVEL" = 1; then
WANT_PICKY_COMPILER=1
echo "--> developer override: enable picky compiler by default"
fi
#################### Developer default 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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to developer-level timing framework" >&5
$as_echo_n "checking if want to developer-level timing framework... " >&6; }
# Check whether --enable-timing was given.
if test "${enable_timing+set}" = set; then :
enableval=$enable_timing;
fi
if test "$enable_timing" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
WANT_TIMING=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
WANT_TIMING=0
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_TIMING $WANT_TIMING
_ACEOF
if test "$WANT_TIMING" = "1"; then
OPAL_COMPILE_TIMING_TRUE=
OPAL_COMPILE_TIMING_FALSE='#'
else
OPAL_COMPILE_TIMING_TRUE='#'
OPAL_COMPILE_TIMING_FALSE=
fi
if test "$WANT_TIMING" = "1" && test "$enable_binaries" != "no"; then
OPAL_INSTALL_TIMING_BINARIES_TRUE=
OPAL_INSTALL_TIMING_BINARIES_FALSE='#'
else
OPAL_INSTALL_TIMING_BINARIES_TRUE='#'
OPAL_INSTALL_TIMING_BINARIES_FALSE=
fi
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
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_DLOPEN_SUPPORT $OPAL_ENABLE_DLOPEN_SUPPORT
_ACEOF
#
# Do we want to show component load error messages by default?
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default value of mca_base_component_show_load_errors" >&5
$as_echo_n "checking for default value of mca_base_component_show_load_errors... " >&6; }
# Check whether --enable-show-load-errors-by-default was given.
if test "${enable_show_load_errors_by_default+set}" = set; then :
enableval=$enable_show_load_errors_by_default;
fi
if test "$enable_show_load_errors_by_default" = "no" ; then
OPAL_SHOW_LOAD_ERRORS_DEFAULT=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by default" >&5
$as_echo "disabled by default" >&6; }
else
OPAL_SHOW_LOAD_ERRORS_DEFAULT=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled by default" >&5
$as_echo "enabled by default" >&6; }
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_SHOW_LOAD_ERRORS_DEFAULT $OPAL_SHOW_LOAD_ERRORS_DEFAULT
_ACEOF
#
# 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; }
opal_want_heterogeneous=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
opal_want_heterogeneous=0
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_HETEROGENEOUS_SUPPORT $opal_want_heterogeneous
_ACEOF
if test "$opal_want_heterogeneous" = 1; then
ompi_cv_c_word_size_align=yes
else
{ $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 ${ompi_cv_c_word_size_align+:} false; 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
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; }
fi
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
#
# 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:9863: 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" && test -f "$with_cross"; then
cat $with_cross >&5
fi
. "$with_cross"
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
OPAL_INSTALL_BINARIES_TRUE=
OPAL_INSTALL_BINARIES_FALSE='#'
else
OPAL_INSTALL_BINARIES_TRUE='#'
OPAL_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" = "" || test "$with_package_string" = "no"; then
with_package_string="Open MPI $OPAL_CONFIGURE_USER@$OPAL_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" = "" || test "$with_ident_string" = "no"; then
with_ident_string="%VERSION%"
fi
# This is complicated, because $OPAL_VERSION may have spaces in it.
# So put the whole sed expr in single quotes -- i.e., directly
# substitute %VERSION% for (not expanded) $OPAL_VERSION.
with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/$OPAL_VERSION/'`"
# Now eval an echo of that so that the "$OPAL_VERSION" token is
# replaced with its value. Enclose the whole thing in "" so that it
# ends up as 1 token.
with_ident_string="`eval echo $with_ident_string`"
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" && test "$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 && test $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" && test "$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 && test $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" && test "$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 && test $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" && test "$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 && test $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" && test "$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 && test $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" && test "$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 && test $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" && test "$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 && test $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
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_CRDEBUG 0
_ACEOF
# some systems don't want/like getpwuid
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want getpwuid support" >&5
$as_echo_n "checking if want getpwuid support... " >&6; }
# Check whether --enable-getpwuid was given.
if test "${enable_getpwuid+set}" = set; then :
enableval=$enable_getpwuid;
fi
if test "$enable_getpwuid" = "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
opal_want_getpwuid=0
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
opal_want_getpwuid=1
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_GETPWUID $opal_want_getpwuid
_ACEOF
$as_echo "#define OPAL_ENABLE_PROGRESS_THREADS 0" >>confdefs.h
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_zlib_dir opal_zlib_libdir opal_zlib_standard_header_location opal_zlib_standard_lib_location; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_zlib_dir opal_zlib_libdir opal_zlib_standard_header_location opal_zlib_standard_lib_location\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
# Check whether --with-zlib was given.
if test "${with_zlib+set}" = set; then :
withval=$with_zlib;
fi
# Check whether --with-zlib-libdir was given.
if test "${with_zlib_libdir+set}" = set; then :
withval=$with_zlib_libdir;
fi
opal_zlib_support=0
if test "$with_zlib" != "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib in" >&5
$as_echo_n "checking for zlib in... " >&6; }
if test ! -z "$with_zlib" && test "$with_zlib" != "yes"; then
opal_zlib_dir=$with_zlib
opal_zlib_standard_header_location=no
opal_zlib_standard_lib_location=no
if test -z "$with_zlib_libdir" || test "$with_zlib_libdir" = "yes"; then :
if test -d $with_zlib/lib; then
opal_zlib_libdir=$with_zlib/lib
elif test -d $with_zlib/lib64; then
opal_zlib_libdir=$with_zlib/lib64
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_zlib/lib or $with_zlib/lib64" >&5
$as_echo "Could not find $with_zlib/lib or $with_zlib/lib64" >&6; }
as_fn_error $? "Can not continue" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_zlib_dir and $opal_zlib_libdir" >&5
$as_echo "$opal_zlib_dir and $opal_zlib_libdir" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_libdir" >&5
$as_echo "$with_zlib_libdir" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5
$as_echo "(default search paths)" >&6; }
opal_zlib_standard_header_location=yes
opal_zlib_standard_lib_location=yes
fi
if test ! -z "$with_zlib_libdir" && test "$with_zlib_libdir" != "yes"; then :
opal_zlib_libdir="$with_zlib_libdir"
opal_zlib_standard_lib_location=no
fi
opal_check_package_opal_zlib_save_CPPFLAGS="$CPPFLAGS"
opal_check_package_opal_zlib_save_LDFLAGS="$LDFLAGS"
opal_check_package_opal_zlib_save_LIBS="$LIBS"
opal_check_package_opal_zlib_orig_CPPFLAGS="$opal_zlib_CPPFLAGS"
opal_check_package_opal_zlib_orig_LDFLAGS="$opal_zlib_LDFLAGS"
opal_check_package_opal_zlib_orig_LIBS="$opal_zlib_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
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in dir_prefix; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"dir_prefix\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
# 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_zlib_h
# get rid of the trailing slash(es)
dir_prefix=$(echo $opal_zlib_dir | sed -e 'sX/*$XXg')
opal_check_package_header_happy="no"
if test "$dir_prefix" = "/usr" || \
test "$dir_prefix" = "/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; }
for ac_header in zlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_ZLIB_H 1
_ACEOF
opal_check_package_header_happy="yes"
fi
done
if test "$opal_check_package_header_happy" = "no"; then :
# no go on the as is - reset the cache and try again
unset ac_cv_header_zlib_h
fi
fi
if test "$opal_check_package_header_happy" = "no"; then :
if test "$dir_prefix" != ""; then :
opal_zlib_CPPFLAGS="$opal_zlib_CPPFLAGS -I$dir_prefix/include"
CPPFLAGS="$CPPFLAGS -I$dir_prefix/include"
fi
for ac_header in zlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_ZLIB_H 1
_ACEOF
opal_check_package_header_happy="yes"
fi
done
if test "$opal_check_package_header_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_search_deflate
opal_check_package_lib_happy="no"
if test "$opal_zlib_libdir" != ""; then :
# libdir was specified - search only there
opal_zlib_LDFLAGS="$opal_zlib_LDFLAGS -L$opal_zlib_libdir"
LDFLAGS="$LDFLAGS -L$opal_zlib_libdir"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
else
# libdir was not specified - go through search path
opal_check_package_libdir="$opal_zlib_dir"
if test "$opal_check_package_libdir" = "" || \
test "$opal_check_package_libdir" = "/usr" || \
test "$opal_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 library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
# no go on the as is.. see what happens later...
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
fi
if test "$opal_check_package_lib_happy" = "no"; then :
if test "$opal_check_package_libdir" != ""; then :
opal_zlib_LDFLAGS="$opal_zlib_LDFLAGS -L$opal_check_package_libdir/lib"
LDFLAGS="$LDFLAGS -L$opal_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 library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
# no go on the as is.. see what happens later...
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
fi
fi
if test "$opal_check_package_lib_happy" = "no"; then :
if test "$opal_check_package_libdir" != ""; then :
opal_zlib_LDFLAGS="$opal_zlib_LDFLAGS -L$opal_check_package_libdir/lib64"
LDFLAGS="$LDFLAGS -L$opal_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 library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
# no go on the as is.. see what happens later...
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
fi
fi
fi
if test "$opal_check_package_lib_happy" = "yes"; then :
# libnl v1 and libnl3 are known to *not* coexist
# harmoniously in the same process. Check to see if this
# new package will introduce such a conflict.
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_libnl_sane; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_libnl_sane\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_libnl_sane=1
case $host in
*linux*)
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in this_requires_v1 libnl_sane this_requires_v3 ldd_output result_msg; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"this_requires_v1 libnl_sane this_requires_v3 ldd_output result_msg\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
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 if libz requires libnl v1 or v3" >&5
$as_echo_n "checking if libz requires libnl v1 or v3... " >&6; }
cat > conftest_c.$ac_ext << EOF
extern void deflate (void);
int main(int argc, char *argv[]) {
deflate ();
return 0;
}
EOF
this_requires_v1=0
this_requires_v3=0
result_msg=
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10983: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lz $LIBS $opal_zlib_LIBS" >&5
$CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lz $LIBS $opal_zlib_LIBS 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:10990: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
ldd_output=`ldd conftest`
if echo $ldd_output | grep -q libnl-3.so; then :
this_requires_v3=1
result_msg="v3"
fi
if echo $ldd_output | grep -q libnl.so; then :
this_requires_v1=1
result_msg="v1 $result_msg"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_msg" >&5
$as_echo "$result_msg" >&6; }
else
unset opal_status
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link a simple program with lib z" >&5
$as_echo "$as_me: WARNING: Could not link a simple program with lib z" >&2;}
fi
# Assume that our configuration is sane; this may get reset below
libnl_sane=1
# Note: in all the checks below, only add this library to the list
# of libraries (for v1 or v3 as relevant) if we do not fail.
# I.e., assume that a higher level will refuse to use this library
# if we return failure.
# Does this library require both v1 and v3? If so, fail.
if test $this_requires_v1 -eq 1 && test $this_requires_v3 -eq 1; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unfortunately, libz links to both libnl and libnl-3." >&5
$as_echo "$as_me: WARNING: Unfortunately, libz links to both libnl and libnl-3." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configuration that is *known* to cause run-time crashes." >&5
$as_echo "$as_me: WARNING: This is a configuration that is *known* to cause run-time crashes." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an error in libz (not Open MPI)." >&5
$as_echo "$as_me: WARNING: This is an error in libz (not Open MPI)." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libz." >&5
$as_echo "$as_me: WARNING: Open MPI will therefore skip using libz." >&2;}
libnl_sane=0
fi
# Does this library require v1, but some prior library required
# v3? If so, fail.
if test $libnl_sane -eq 1 && test $this_requires_v1 -eq 1; then :
if test $opal_libnl_version -eq 3; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas z requires libnl" >&5
$as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas z requires libnl" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configuration that is *known* to cause run-time crashes." >&5
$as_echo "$as_me: WARNING: This is a configuration that is *known* to cause run-time crashes." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an error in libz (not Open MPI)." >&5
$as_echo "$as_me: WARNING: This is an error in libz (not Open MPI)." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libz." >&5
$as_echo "$as_me: WARNING: Open MPI will therefore skip using libz." >&2;}
libnl_sane=0
else
opal_libnlv1_libs="$opal_libnlv1_libs z"
# 1 is the variable name to be uniq-ized
opal_name=opal_libnlv1_libs
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${opal_libnlv1_libs}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_count
opal_libnl_version=1
fi
fi
# Does this library require v3, but some prior library required
# v1? If so, fail.
if test $libnl_sane -eq 1 && test $this_requires_v3 -eq 1; then :
if test $opal_libnl_version -eq 1; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libz requires libnl-3" >&5
$as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libz requires libnl-3" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configuration that is *known* to cause run-time crashes." >&5
$as_echo "$as_me: WARNING: This is a configuration that is *known* to cause run-time crashes." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an error in libz (not Open MPI)." >&5
$as_echo "$as_me: WARNING: This is an error in libz (not Open MPI)." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libz." >&5
$as_echo "$as_me: WARNING: Open MPI will therefore skip using libz." >&2;}
libnl_sane=0
else
opal_libnlv3_libs="$opal_libnlv3_libs z"
# 1 is the variable name to be uniq-ized
opal_name=opal_libnlv3_libs
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${opal_libnlv3_libs}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_count
opal_libnl_version=3
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
rm -f conftest conftest_c.$ac_ext
opal_libnl_sane=$libnl_sane
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
;;
esac
opal_check_package_libnl_check_ok=$opal_libnl_sane
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test $opal_check_package_libnl_check_ok -eq 0; then :
opal_check_package_lib_happy=no
fi
fi
if test "$opal_check_package_lib_happy" = "yes"; then :
# The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
if test "$ac_cv_search_deflate" != "no" &&
test "$ac_cv_search_deflate" != "none required"; then :
opal_zlib_LIBS="$ac_cv_search_deflate -lz"
else
opal_zlib_LIBS="-lz"
fi
opal_check_package_happy="yes"
else
opal_check_package_happy="no"
fi
else
opal_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_search_deflate
opal_check_package_lib_happy="no"
if test "$opal_zlib_libdir" != ""; then :
# libdir was specified - search only there
opal_zlib_LDFLAGS="$opal_zlib_LDFLAGS -L$opal_zlib_libdir"
LDFLAGS="$LDFLAGS -L$opal_zlib_libdir"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
else
# libdir was not specified - go through search path
opal_check_package_libdir="$opal_zlib_dir"
if test "$opal_check_package_libdir" = "" || \
test "$opal_check_package_libdir" = "/usr" || \
test "$opal_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 library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
# no go on the as is.. see what happens later...
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
fi
if test "$opal_check_package_lib_happy" = "no"; then :
if test "$opal_check_package_libdir" != ""; then :
opal_zlib_LDFLAGS="$opal_zlib_LDFLAGS -L$opal_check_package_libdir/lib"
LDFLAGS="$LDFLAGS -L$opal_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 library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
# no go on the as is.. see what happens later...
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
fi
fi
if test "$opal_check_package_lib_happy" = "no"; then :
if test "$opal_check_package_libdir" != ""; then :
opal_zlib_LDFLAGS="$opal_zlib_LDFLAGS -L$opal_check_package_libdir/lib64"
LDFLAGS="$LDFLAGS -L$opal_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 library containing deflate" >&5
$as_echo_n "checking for library containing deflate... " >&6; }
if ${ac_cv_search_deflate+:} false; 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 deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
for ac_lib in '' z; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_deflate=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_deflate+:} false; then :
break
fi
done
if ${ac_cv_search_deflate+:} false; then :
else
ac_cv_search_deflate=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
$as_echo "$ac_cv_search_deflate" >&6; }
ac_res=$ac_cv_search_deflate
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
opal_check_package_lib_happy="yes"
else
opal_check_package_lib_happy="no"
fi
if test "$opal_check_package_lib_happy" = "no"; then :
# no go on the as is.. see what happens later...
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
unset ac_cv_search_deflate
fi
fi
fi
fi
if test "$opal_check_package_lib_happy" = "yes"; then :
# libnl v1 and libnl3 are known to *not* coexist
# harmoniously in the same process. Check to see if this
# new package will introduce such a conflict.
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_libnl_sane; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_libnl_sane\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_libnl_sane=1
case $host in
*linux*)
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in this_requires_v1 libnl_sane this_requires_v3 ldd_output result_msg; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"this_requires_v1 libnl_sane this_requires_v3 ldd_output result_msg\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
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 if libz requires libnl v1 or v3" >&5
$as_echo_n "checking if libz requires libnl v1 or v3... " >&6; }
cat > conftest_c.$ac_ext << EOF
extern void deflate (void);
int main(int argc, char *argv[]) {
deflate ();
return 0;
}
EOF
this_requires_v1=0
this_requires_v3=0
result_msg=
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:11708: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lz $LIBS $opal_zlib_LIBS" >&5
$CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lz $LIBS $opal_zlib_LIBS 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:11715: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
ldd_output=`ldd conftest`
if echo $ldd_output | grep -q libnl-3.so; then :
this_requires_v3=1
result_msg="v3"
fi
if echo $ldd_output | grep -q libnl.so; then :
this_requires_v1=1
result_msg="v1 $result_msg"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_msg" >&5
$as_echo "$result_msg" >&6; }
else
unset opal_status
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link a simple program with lib z" >&5
$as_echo "$as_me: WARNING: Could not link a simple program with lib z" >&2;}
fi
# Assume that our configuration is sane; this may get reset below
libnl_sane=1
# Note: in all the checks below, only add this library to the list
# of libraries (for v1 or v3 as relevant) if we do not fail.
# I.e., assume that a higher level will refuse to use this library
# if we return failure.
# Does this library require both v1 and v3? If so, fail.
if test $this_requires_v1 -eq 1 && test $this_requires_v3 -eq 1; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unfortunately, libz links to both libnl and libnl-3." >&5
$as_echo "$as_me: WARNING: Unfortunately, libz links to both libnl and libnl-3." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configuration that is *known* to cause run-time crashes." >&5
$as_echo "$as_me: WARNING: This is a configuration that is *known* to cause run-time crashes." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an error in libz (not Open MPI)." >&5
$as_echo "$as_me: WARNING: This is an error in libz (not Open MPI)." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libz." >&5
$as_echo "$as_me: WARNING: Open MPI will therefore skip using libz." >&2;}
libnl_sane=0
fi
# Does this library require v1, but some prior library required
# v3? If so, fail.
if test $libnl_sane -eq 1 && test $this_requires_v1 -eq 1; then :
if test $opal_libnl_version -eq 3; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas z requires libnl" >&5
$as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas z requires libnl" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configuration that is *known* to cause run-time crashes." >&5
$as_echo "$as_me: WARNING: This is a configuration that is *known* to cause run-time crashes." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an error in libz (not Open MPI)." >&5
$as_echo "$as_me: WARNING: This is an error in libz (not Open MPI)." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libz." >&5
$as_echo "$as_me: WARNING: Open MPI will therefore skip using libz." >&2;}
libnl_sane=0
else
opal_libnlv1_libs="$opal_libnlv1_libs z"
# 1 is the variable name to be uniq-ized
opal_name=opal_libnlv1_libs
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${opal_libnlv1_libs}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_count
opal_libnl_version=1
fi
fi
# Does this library require v3, but some prior library required
# v1? If so, fail.
if test $libnl_sane -eq 1 && test $this_requires_v3 -eq 1; then :
if test $opal_libnl_version -eq 1; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libz requires libnl-3" >&5
$as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libz requires libnl-3" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configuration that is *known* to cause run-time crashes." >&5
$as_echo "$as_me: WARNING: This is a configuration that is *known* to cause run-time crashes." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an error in libz (not Open MPI)." >&5
$as_echo "$as_me: WARNING: This is an error in libz (not Open MPI)." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libz." >&5
$as_echo "$as_me: WARNING: Open MPI will therefore skip using libz." >&2;}
libnl_sane=0
else
opal_libnlv3_libs="$opal_libnlv3_libs z"
# 1 is the variable name to be uniq-ized
opal_name=opal_libnlv3_libs
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${opal_libnlv3_libs}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_count
opal_libnl_version=3
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
rm -f conftest conftest_c.$ac_ext
opal_libnl_sane=$libnl_sane
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
;;
esac
opal_check_package_libnl_check_ok=$opal_libnl_sane
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test $opal_check_package_libnl_check_ok -eq 0; then :
opal_check_package_lib_happy=no
fi
fi
if test "$opal_check_package_lib_happy" = "yes"; then :
# The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
if test "$ac_cv_search_deflate" != "no" &&
test "$ac_cv_search_deflate" != "none required"; then :
opal_zlib_LIBS="$ac_cv_search_deflate -lz"
else
opal_zlib_LIBS="-lz"
fi
opal_check_package_happy="yes"
else
opal_check_package_happy="no"
fi
fi
unset opal_check_package_header_happy
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test "$opal_check_package_happy" = "yes"; then :
opal_zlib_support=1
else
opal_zlib_CPPFLAGS="$opal_check_package_opal_zlib_orig_CPPFLAGS"
opal_zlib_LDFLAGS="$opal_check_package_opal_zlib_orig_LDFLAGS"
opal_zlib_LIBS="$opal_check_package_opal_zlib_orig_LIBS"
opal_zlib_support=0
fi
CPPFLAGS="$opal_check_package_opal_zlib_save_CPPFLAGS"
LDFLAGS="$opal_check_package_opal_zlib_save_LDFLAGS"
LIBS="$opal_check_package_opal_zlib_save_LIBS"
if test $opal_zlib_support = "1"; then
LIBS="$LIBS -lz"
if test "$opal_zlib_standard_header_location" != "yes"; then
CPPFLAGS="$CPPFLAGS $opal_zlib_CPPFLAGS"
fi
if test "$opal_zlib_standard_lib_location" != "yes"; then
LDFLAGS="$LDFLAGS $opal_zlib_LDFLAGS"
fi
fi
fi
if test ! -z "$with_zlib" && test "$with_zlib" != "no" && test "$opal_zlib_support" != "1"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&5
$as_echo "$as_me: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&2;}
as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking will zlib support be built" >&5
$as_echo_n "checking will zlib support be built... " >&6; }
if test "$opal_zlib_support" != "1"; 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; }
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ZLIB $opal_zlib_support
_ACEOF
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
{ $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 is not __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 is not __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 is not __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 is not __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 is not __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 is not __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 is not __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 is not __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 is not __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; }
if test "$opal_found_sun" = "no"; then :
{ $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 is not __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; }
fi
if test "$opal_found_sun" = "yes"; then :
opal_have_solaris=1
CFLAGS="$CFLAGS -D_REENTRANT"
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
else
opal_have_solaris=0
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_SOLARIS $opal_have_solaris
_ACEOF
# check for sockaddr_in (a good sign we have TCP)
for ac_header in netdb.h netinet/in.h netinet/tcp.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"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include
#endif
"
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF
opal_found_sockaddr=yes
else
opal_found_sockaddr=no
fi
#
# Check to see if user wants CUDA support
#
# Check whether --with-cuda was given.
if test "${with_cuda+set}" = set; then :
withval=$with_cuda;
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-cuda is set" >&5
$as_echo_n "checking if --with-cuda is set... " >&6; }
# Note that CUDA support is off by default. To turn it on, the user has to
# request it. The user can just ask for --with-cuda and it that case we
# look for the cuda.h file in /usr/local/cuda. Otherwise, they can give
# us a directory. If they provide a directory, we will look in that directory
# as well as the directory with the "include" string appended to it. The fact
# that we check in two directories precludes us from using the OMPI_CHECK_DIR
# macro as that would error out after not finding it in the first directory.
# Note that anywhere CUDA aware code is in the Open MPI repository requires
# us to make use of AC_REQUIRE to ensure this check has been done.
if test "$with_cuda" = "no" || test "x$with_cuda" = "x"; then :
opal_check_cuda_happy="no"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set (--with-cuda=$with_cuda)" >&5
$as_echo "not set (--with-cuda=$with_cuda)" >&6; }
else
if test "$with_cuda" = "yes"; then :
if test "x`ls /usr/local/cuda/include/cuda.h 2> /dev/null`" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in standard location" >&5
$as_echo "not found in standard location" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file /usr/local/cuda/include/cuda.h not found" >&5
$as_echo "$as_me: WARNING: Expected file /usr/local/cuda/include/cuda.h not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_cuda_happy=yes
opal_cuda_incdir=/usr/local/cuda/include
fi
else
if test ! -d "$with_cuda"; 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_cuda not found" >&5
$as_echo "$as_me: WARNING: Directory $with_cuda not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
if test "x`ls $with_cuda/include/cuda.h 2> /dev/null`" = "x"; then :
if test "x`ls $with_cuda/cuda.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: Could not find cuda.h in $with_cuda/include or $with_cuda" >&5
$as_echo "$as_me: WARNING: Could not find cuda.h in $with_cuda/include or $with_cuda" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
opal_check_cuda_happy=yes
opal_cuda_incdir=$with_cuda
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($with_cuda/cuda.h)" >&5
$as_echo "found ($with_cuda/cuda.h)" >&6; }
fi
else
opal_check_cuda_happy=yes
opal_cuda_incdir="$with_cuda/include"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($opal_cuda_incdir/cuda.h)" >&5
$as_echo "found ($opal_cuda_incdir/cuda.h)" >&6; }
fi
fi
fi
fi
# We require CUDA IPC support which started in CUDA 4.1. Error
# out if the support is not there.
if test "$opal_check_cuda_happy" = "yes"; then :
ac_fn_c_check_member "$LINENO" "struct CUipcMemHandle_st" "reserved" "ac_cv_member_struct_CUipcMemHandle_st_reserved" "#include <$opal_cuda_incdir/cuda.h>
"
if test "x$ac_cv_member_struct_CUipcMemHandle_st_reserved" = xyes; then :
else
as_fn_error $? "Cannot continue because CUDA 4.1 or later is required" "$LINENO" 5
fi
fi
# If we have CUDA support, check to see if we have support for SYNC_MEMOPS
# which was first introduced in CUDA 6.0.
if test "$opal_check_cuda_happy"="yes"; then :
ac_fn_c_check_decl "$LINENO" "CU_POINTER_ATTRIBUTE_SYNC_MEMOPS" "ac_cv_have_decl_CU_POINTER_ATTRIBUTE_SYNC_MEMOPS" "#include <$opal_cuda_incdir/cuda.h>
"
if test "x$ac_cv_have_decl_CU_POINTER_ATTRIBUTE_SYNC_MEMOPS" = xyes; then :
CUDA_SYNC_MEMOPS=1
else
CUDA_SYNC_MEMOPS=0
fi
fi
# If we have CUDA support, check to see if we have CUDA 6.0 or later.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <$opal_cuda_incdir/cuda.h>
int
main ()
{
#if CUDA_VERSION < 6000
#error "CUDA_VERSION is less than 6000"
#endif
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
CUDA_VERSION_60_OR_GREATER=1
else
CUDA_VERSION_60_OR_GREATER=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# If we have CUDA support, check to see if we have support for cuPointerGetAttributes
# which was first introduced in CUDA 7.0.
if test "$opal_check_cuda_happy"="yes"; then :
ac_fn_c_check_decl "$LINENO" "cuPointerGetAttributes" "ac_cv_have_decl_cuPointerGetAttributes" "#include <$opal_cuda_incdir/cuda.h>
"
if test "x$ac_cv_have_decl_cuPointerGetAttributes" = xyes; then :
CUDA_GET_ATTRIBUTES=1
else
CUDA_GET_ATTRIBUTES=0
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if have cuda support" >&5
$as_echo_n "checking if have cuda support... " >&6; }
if test "$opal_check_cuda_happy" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (-I$opal_cuda_incdir)" >&5
$as_echo "yes (-I$opal_cuda_incdir)" >&6; }
CUDA_SUPPORT=1
opal_datatype_cuda_CPPFLAGS="-I$opal_cuda_incdir"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
CUDA_SUPPORT=0
fi
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_summary_section ompi_summary_line ompi_summary_section_current; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_summary_section ompi_summary_line ompi_summary_section_current\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
ompi_summary_section=$(echo Miscellaneous | tr ' ' '_')
ompi_summary_line="CUDA support: $opal_check_cuda_happy"
ompi_summary_section_current=$(eval echo \$ompi_summary_values_$ompi_summary_section)
if test -z "$ompi_summary_section_current" ; then
if test -z "$ompi_summary_sections" ; then
ompi_summary_sections=$ompi_summary_section
else
ompi_summary_sections="$ompi_summary_sections $ompi_summary_section"
fi
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_line\"
else
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_section_current,$ompi_summary_line\"
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test "x$CUDA_SUPPORT" = "x1"; then
OPAL_cuda_support_TRUE=
OPAL_cuda_support_FALSE='#'
else
OPAL_cuda_support_TRUE='#'
OPAL_cuda_support_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_CUDA_SUPPORT $CUDA_SUPPORT
_ACEOF
if test "x$CUDA_SYNC_MEMOPS" = "x1"; then
OPAL_cuda_sync_memops_TRUE=
OPAL_cuda_sync_memops_FALSE='#'
else
OPAL_cuda_sync_memops_TRUE='#'
OPAL_cuda_sync_memops_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_CUDA_SYNC_MEMOPS $CUDA_SYNC_MEMOPS
_ACEOF
if test "x$CUDA_GET_ATTRIBUTES" = "x1"; then
OPAL_cuda_get_attributes_TRUE=
OPAL_cuda_get_attributes_FALSE='#'
else
OPAL_cuda_get_attributes_TRUE='#'
OPAL_cuda_get_attributes_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_CUDA_GET_ATTRIBUTES $CUDA_GET_ATTRIBUTES
_ACEOF
# There is nothing specific we can check for to see if GPU Direct RDMA is available.
# Therefore, we check to see whether we have CUDA 6.0 or later.
if test "x$CUDA_VERSION_60_OR_GREATER" = "x1"; then
OPAL_cuda_gdr_support_TRUE=
OPAL_cuda_gdr_support_FALSE='#'
else
OPAL_cuda_gdr_support_TRUE='#'
OPAL_cuda_gdr_support_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_CUDA_GDR_SUPPORT $CUDA_VERSION_60_OR_GREATER
_ACEOF
# Check whether --with-pmi was given.
if test "${with_pmi+set}" = set; then :
withval=$with_pmi;
else
with_pmi=no
fi
# Check whether --with-pmi-libdir was given.
if test "${with_pmi_libdir+set}" = set; then :
withval=$with_pmi_libdir;
fi
# Check whether --with-pmix was given.
if test "${with_pmix+set}" = set; then :
withval=$with_pmix;
fi
# Check whether --with-pmix-libdir was given.
if test "${with_pmix_libdir+set}" = set; then :
withval=$with_pmix_libdir;
fi
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in check_pmi_install_dir check_pmi_lib_dir default_pmi_libloc slurm_pmi_found; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"check_pmi_install_dir check_pmi_lib_dir default_pmi_libloc slurm_pmi_found\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
check_pmi_install_dir=
check_pmi_lib_dir=
default_pmi_libloc=
slurm_pmi_found=
opal_enable_pmix=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if user requested PMI support" >&5
$as_echo_n "checking if user requested PMI support... " >&6; }
if test "$with_pmi" = "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: yes" >&5
$as_echo "yes" >&6; }
# cannot use OPAL_CHECK_PACKAGE as its backend header
# support appends "include" to the path, which won't
# work with slurm :-(
if test -n "$with_pmi" && test "$with_pmi" != "yes"; then :
check_pmi_install_dir=$with_pmi
fi
if test -n "$with_pmi_libdir"; then :
check_pmi_lib_dir=$with_pmi_libdir
fi
# check for pmi-1 lib */
slurm_pmi_found=no
# save flags
opal_check_pmi_save_CPPFLAGS=$CPPFLAGS
opal_check_pmi_save_LDFLAGS=$LDFLAGS
opal_check_pmi_save_LIBS=$LIBS
opal_check_pmi_hdr_happy=
opal_check_pmi_mycppflags=
# check for the header
if test -n "$check_pmi_install_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi.h in $check_pmi_install_dir" >&5
$as_echo_n "checking for pmi.h in $check_pmi_install_dir... " >&6; }
if test -f $check_pmi_install_dir/pmi.h && test -r $check_pmi_install_dir/pmi.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi_mycppflags="-I$check_pmi_install_dir"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi.h in $check_pmi_install_dir/include" >&5
$as_echo_n "checking for pmi.h in $check_pmi_install_dir/include... " >&6; }
if test -f $check_pmi_install_dir/include/pmi.h && test -r $check_pmi_install_dir/include/pmi.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi_mycppflags="-I$check_pmi_install_dir/include"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi.h in $check_pmi_install_dir/include/slurm" >&5
$as_echo_n "checking for pmi.h in $check_pmi_install_dir/include/slurm... " >&6; }
if test -f $check_pmi_install_dir/include/slurm/pmi.h && test -r $check_pmi_install_dir/include/slurm/pmi.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi_mycppflags="-I$check_pmi_install_dir/include/slurm"
slurm_pmi_found=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
opal_check_pmi_hdr_happy=no
fi
fi
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi.h in /usr/include" >&5
$as_echo_n "checking for pmi.h in /usr/include... " >&6; }
if test -f /usr/include/pmi.h && test -r /usr/include/pmi.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi.h in /usr/include/slurm" >&5
$as_echo_n "checking for pmi.h in /usr/include/slurm... " >&6; }
if test -f /usr/include/slurm/pmi.h && test -r /usr/include/slurm/pmi.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi_mycppflags="-I/usr/include/slurm"
slurm_pmi_found=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
opal_check_pmi_hdr_happy=no
fi
fi
fi
if test "$opal_check_pmi_hdr_happy" != "no"; then :
CPPFLAGS="$CPPFLAGS $opal_check_pmi_mycppflags"
ac_fn_c_check_header_mongrel "$LINENO" "pmi.h" "ac_cv_header_pmi_h" "$ac_includes_default"
if test "x$ac_cv_header_pmi_h" = xyes; then :
opal_check_pmi_hdr_happy=yes
pmi_CPPFLAGS="$opal_check_pmi_mycppflags"
else
opal_check_pmi_hdr_happy=no
fi
fi
# check for library and function
opal_check_pmi_lib_happy=
LIBS="$LIBS -lpmi"
# check for the library in the given location in case
# an exact path was given
if test -z "$check_pmi_install_dir" && test -z "$check_pmi_lib_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5
$as_echo_n "checking for PMI_Init in -lpmi... " >&6; }
if ${ac_cv_lib_pmi_PMI_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi $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 PMI_Init ();
int
main ()
{
return PMI_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi_PMI_Init=yes
else
ac_cv_lib_pmi_PMI_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_pmi_PMI_Init" >&5
$as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; }
if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then :
opal_check_pmi_lib_happy=yes
else
opal_check_pmi_lib_happy=no
fi
else
if test -n "$check_pmi_lib_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpmi in $check_pmi_lib_dir" >&5
$as_echo_n "checking for libpmi in $check_pmi_lib_dir... " >&6; }
files=`ls $check_pmi_lib_dir/libpmi.* 2> /dev/null | wc -l`
if test "$files" -gt "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
LDFLAGS="$LDFLAGS -L$check_pmi_lib_dir"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5
$as_echo_n "checking for PMI_Init in -lpmi... " >&6; }
if ${ac_cv_lib_pmi_PMI_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi $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 PMI_Init ();
int
main ()
{
return PMI_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi_PMI_Init=yes
else
ac_cv_lib_pmi_PMI_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_pmi_PMI_Init" >&5
$as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; }
if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then :
opal_check_pmi_lib_happy=yes
pmi_LDFLAGS=-L$check_pmi_lib_dir
pmi_rpath=$check_pmi_lib_dir
else
opal_check_pmi_lib_happy=no
fi
else
opal_check_pmi_lib_happy=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpmi in $check_pmi_install_dir/lib" >&5
$as_echo_n "checking for libpmi in $check_pmi_install_dir/lib... " >&6; }
files=`ls $check_pmi_install_dir/lib/libpmi.* 2> /dev/null | wc -l`
if test "$files" -gt "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
LDFLAGS="$LDFLAGS -L$check_pmi_install_dir/lib"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5
$as_echo_n "checking for PMI_Init in -lpmi... " >&6; }
if ${ac_cv_lib_pmi_PMI_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi $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 PMI_Init ();
int
main ()
{
return PMI_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi_PMI_Init=yes
else
ac_cv_lib_pmi_PMI_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_pmi_PMI_Init" >&5
$as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; }
if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then :
opal_check_pmi_lib_happy=yes
pmi_LDFLAGS=-L$check_pmi_install_dir/lib
pmi_rpath=$check_pmi_install_dir/lib
else
opal_check_pmi_lib_happy=no
fi
else
# check for presence of lib64 directory - if found, see if the
# desired library is present and matches our build requirements
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpmi in $check_pmi_install_dir/lib64" >&5
$as_echo_n "checking for libpmi in $check_pmi_install_dir/lib64... " >&6; }
files=`ls $check_pmi_install_dir/lib64/libpmi.* 2> /dev/null | wc -l`
if test "$files" -gt "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
LDFLAGS="$LDFLAGS -L$check_pmi_install_dir/lib64"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5
$as_echo_n "checking for PMI_Init in -lpmi... " >&6; }
if ${ac_cv_lib_pmi_PMI_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi $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 PMI_Init ();
int
main ()
{
return PMI_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi_PMI_Init=yes
else
ac_cv_lib_pmi_PMI_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_pmi_PMI_Init" >&5
$as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; }
if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then :
opal_check_pmi_lib_happy=yes
pmi_LDFLAGS=-L$check_pmi_install_dir/lib64
pmi_rpath=$check_pmi_install_dir/lib64
else
opal_check_pmi_lib_happy=no
fi
else
opal_check_pmi_lib_happy=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
fi
fi
fi
# restore flags
CPPFLAGS=$opal_check_pmi_save_CPPFLAGS
LDFLAGS=$opal_check_pmi_save_LDFLAGS
LIBS=$opal_check_pmi_save_LIBS
if test "$opal_check_pmi_hdr_happy" = "yes" && test "$opal_check_pmi_lib_happy" = "yes"; then :
opal_enable_pmi1=yes
opal_pmi1_LIBS="-lpmi"
else
opal_enable_pmi1=no
fi
if test "$opal_enable_pmi1" = "yes"; then :
if test "$slurm_pmi_found" = "yes"; then :
opal_pmi1_CPPFLAGS="$pmi_CPPFLAGS"
fi
if test "$slurm_pmi_found" = "yes"; then :
opal_pmi1_LDFLAGS="$pmi_LDFLAGS"
opal_pmi1_rpath="$pmi_rpath"
fi
fi
# check for pmi2 lib */
slurm_pmi_found=no
# save flags
opal_check_pmi2_save_CPPFLAGS=$CPPFLAGS
opal_check_pmi2_save_LDFLAGS=$LDFLAGS
opal_check_pmi2_save_LIBS=$LIBS
opal_check_pmi2_hdr_happy=
opal_check_pmi2_mycppflags=
# check for the header
if test -n "$check_pmi_install_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi2.h in $check_pmi_install_dir" >&5
$as_echo_n "checking for pmi2.h in $check_pmi_install_dir... " >&6; }
if test -f $check_pmi_install_dir/pmi2.h && test -r $check_pmi_install_dir/pmi2.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi2_mycppflags="-I$check_pmi_install_dir"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi2.h in $check_pmi_install_dir/include" >&5
$as_echo_n "checking for pmi2.h in $check_pmi_install_dir/include... " >&6; }
if test -f $check_pmi_install_dir/include/pmi2.h && test -r $check_pmi_install_dir/include/pmi2.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi2_mycppflags="-I$check_pmi_install_dir/include"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi2.h in $check_pmi_install_dir/include/slurm" >&5
$as_echo_n "checking for pmi2.h in $check_pmi_install_dir/include/slurm... " >&6; }
if test -f $check_pmi_install_dir/include/slurm/pmi2.h && test -r $check_pmi_install_dir/include/slurm/pmi2.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi2_mycppflags="-I$check_pmi_install_dir/include/slurm"
slurm_pmi_found=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
opal_check_pmi2_hdr_happy=no
fi
fi
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi2.h in /usr/include" >&5
$as_echo_n "checking for pmi2.h in /usr/include... " >&6; }
if test -f /usr/include/pmi2.h && test -r /usr/include/pmi2.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmi2.h in /usr/include/slurm" >&5
$as_echo_n "checking for pmi2.h in /usr/include/slurm... " >&6; }
if test -f /usr/include/slurm/pmi2.h && test -r /usr/include/slurm/pmi2.h; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_check_pmi2_mycppflags="-I/usr/include/slurm"
slurm_pmi_found=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
opal_check_pmi2_hdr_happy=no
fi
fi
fi
if test "$opal_check_pmi2_hdr_happy" != "no"; then :
CPPFLAGS="$CPPFLAGS $opal_check_pmi2_mycppflags"
ac_fn_c_check_header_mongrel "$LINENO" "pmi2.h" "ac_cv_header_pmi2_h" "$ac_includes_default"
if test "x$ac_cv_header_pmi2_h" = xyes; then :
opal_check_pmi2_hdr_happy=yes
pmi2_CPPFLAGS="$opal_check_pmi2_mycppflags"
else
opal_check_pmi2_hdr_happy=no
fi
fi
# check for library and function
opal_check_pmi2_lib_happy=
LIBS="$LIBS -lpmi2"
# check for the library in the given location in case
# an exact path was given
if test -z "$check_pmi_install_dir" && test -z "$check_pmi_lib_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI2_Init in -lpmi2" >&5
$as_echo_n "checking for PMI2_Init in -lpmi2... " >&6; }
if ${ac_cv_lib_pmi2_PMI2_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi2 $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 PMI2_Init ();
int
main ()
{
return PMI2_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi2_PMI2_Init=yes
else
ac_cv_lib_pmi2_PMI2_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_pmi2_PMI2_Init" >&5
$as_echo "$ac_cv_lib_pmi2_PMI2_Init" >&6; }
if test "x$ac_cv_lib_pmi2_PMI2_Init" = xyes; then :
opal_check_pmi2_lib_happy=yes
else
opal_check_pmi2_lib_happy=no
fi
else
if test -n "$check_pmi_lib_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpmi2 in $check_pmi_lib_dir" >&5
$as_echo_n "checking for libpmi2 in $check_pmi_lib_dir... " >&6; }
files=`ls $check_pmi_lib_dir/libpmi2.* 2> /dev/null | wc -l`
if test "$files" -gt "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
LDFLAGS="$LDFLAGS -L$check_pmi_lib_dir"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI2_Init in -lpmi2" >&5
$as_echo_n "checking for PMI2_Init in -lpmi2... " >&6; }
if ${ac_cv_lib_pmi2_PMI2_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi2 $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 PMI2_Init ();
int
main ()
{
return PMI2_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi2_PMI2_Init=yes
else
ac_cv_lib_pmi2_PMI2_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_pmi2_PMI2_Init" >&5
$as_echo "$ac_cv_lib_pmi2_PMI2_Init" >&6; }
if test "x$ac_cv_lib_pmi2_PMI2_Init" = xyes; then :
opal_check_pmi2_lib_happy=yes
pmi2_LDFLAGS=-L$check_pmi_lib_dir
pmi2_rpath=$check_pmi_lib_dir
else
opal_check_pmi2_lib_happy=no
fi
else
opal_check_pmi2_lib_happy=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpmi2 in $check_pmi_install_dir/lib" >&5
$as_echo_n "checking for libpmi2 in $check_pmi_install_dir/lib... " >&6; }
files=`ls $check_pmi_install_dir/lib/libpmi2.* 2> /dev/null | wc -l`
if test "$files" -gt "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
LDFLAGS="$LDFLAGS -L$check_pmi_install_dir/lib"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI2_Init in -lpmi2" >&5
$as_echo_n "checking for PMI2_Init in -lpmi2... " >&6; }
if ${ac_cv_lib_pmi2_PMI2_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi2 $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 PMI2_Init ();
int
main ()
{
return PMI2_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi2_PMI2_Init=yes
else
ac_cv_lib_pmi2_PMI2_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_pmi2_PMI2_Init" >&5
$as_echo "$ac_cv_lib_pmi2_PMI2_Init" >&6; }
if test "x$ac_cv_lib_pmi2_PMI2_Init" = xyes; then :
opal_check_pmi2_lib_happy=yes
pmi2_LDFLAGS=-L$check_pmi_install_dir/lib
pmi2_rpath=$check_pmi_install_dir/lib
else
opal_check_pmi2_lib_happy=no
fi
else
# check for presence of lib64 directory - if found, see if the
# desired library is present and matches our build requirements
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpmi2 in $check_pmi_install_dir/lib64" >&5
$as_echo_n "checking for libpmi2 in $check_pmi_install_dir/lib64... " >&6; }
files=`ls $check_pmi_install_dir/lib64/libpmi2.* 2> /dev/null | wc -l`
if test "$files" -gt "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
LDFLAGS="$LDFLAGS -L$check_pmi_install_dir/lib64"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI2_Init in -lpmi2" >&5
$as_echo_n "checking for PMI2_Init in -lpmi2... " >&6; }
if ${ac_cv_lib_pmi2_PMI2_Init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmi2 $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 PMI2_Init ();
int
main ()
{
return PMI2_Init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_pmi2_PMI2_Init=yes
else
ac_cv_lib_pmi2_PMI2_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_pmi2_PMI2_Init" >&5
$as_echo "$ac_cv_lib_pmi2_PMI2_Init" >&6; }
if test "x$ac_cv_lib_pmi2_PMI2_Init" = xyes; then :
opal_check_pmi2_lib_happy=yes
pmi2_LDFLAGS=-L$check_pmi_install_dir/lib64
pmi2_rpath=$check_pmi_install_dir/lib64
else
opal_check_pmi2_lib_happy=no
fi
else
opal_check_pmi2_lib_happy=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
fi
fi
fi
# restore flags
CPPFLAGS=$opal_check_pmi2_save_CPPFLAGS
LDFLAGS=$opal_check_pmi2_save_LDFLAGS
LIBS=$opal_check_pmi2_save_LIBS
if test "$opal_check_pmi2_hdr_happy" = "yes" && test "$opal_check_pmi2_lib_happy" = "yes"; then :
opal_enable_pmi2=yes
opal_pmi2_LIBS="-lpmi2"
else
opal_enable_pmi2=no
fi
if test "$opal_enable_pmi2" = "yes"; then :
if test "$slurm_pmi_found" = "yes"; then :
opal_pmi2_CPPFLAGS="$pmi2_CPPFLAGS"
fi
if test "$slurm_pmi_found" = "yes"; then :
opal_pmi2_LDFLAGS="$pmi2_LDFLAGS"
opal_pmi2_rpath="$pmi2_rpath"
fi
fi
# check for pmix lib installed by slurm unless an other PMIx library is requested
if test -z "$with_pmix" || test "$with_pmix" = "yes" || test "$with_pmix" = "external"; then :
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_external_pmix_save_CPPFLAGS opal_external_pmix_save_LDFLAGS opal_external_pmix_save_LIBS; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_external_pmix_save_CPPFLAGS opal_external_pmix_save_LDFLAGS opal_external_pmix_save_LIBS\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_external_pmix_happy=no
# Make sure we have the headers and libs in the correct location
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix.h in $check_pmi_install_dir" >&5
$as_echo_n "checking for pmix.h in $check_pmi_install_dir... " >&6; }
files=`ls $check_pmi_install_dir/pmix.h 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_header_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix.h in $check_pmi_install_dir/include" >&5
$as_echo_n "checking for pmix.h in $check_pmi_install_dir/include... " >&6; }
files=`ls $check_pmi_install_dir/include/pmix.h 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_header_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
opal_external_pmix_header_happy=no
fi
fi
if test "$opal_external_pmix_header_happy" = "yes"; then :
if test -n "$check_pmi_lib_dir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $check_pmi_lib_dir" >&5
$as_echo_n "checking libpmix.* in $check_pmi_lib_dir... " >&6; }
files=`ls $check_pmi_lib_dir/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$check_pmi_lib_dir
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $check_pmi_lib_dir/lib64" >&5
$as_echo_n "checking libpmix.* in $check_pmi_lib_dir/lib64... " >&6; }
files=`ls $check_pmi_lib_dir/lib64/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$check_pmi_lib_dir/lib64
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $check_pmi_lib_dir/lib" >&5
$as_echo_n "checking libpmix.* in $check_pmi_lib_dir/lib... " >&6; }
files=`ls $check_pmi_lib_dir/lib/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$check_pmi_lib_dir/lib
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
fi
else
# check for presence of lib64 directory - if found, see if the
# desired library is present and matches our build requirements
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $check_pmi_install_dir/lib64" >&5
$as_echo_n "checking libpmix.* in $check_pmi_install_dir/lib64... " >&6; }
files=`ls $check_pmi_install_dir/lib64/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$check_pmi_install_dir/lib64
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $check_pmi_install_dir/lib" >&5
$as_echo_n "checking libpmix.* in $check_pmi_install_dir/lib... " >&6; }
files=`ls $check_pmi_install_dir/lib/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$check_pmi_install_dir/lib
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
fi
# check the version
opal_external_pmix_save_CPPFLAGS=$CPPFLAGS
opal_external_pmix_save_LDFLAGS=$LDFLAGS
opal_external_pmix_save_LIBS=$LIBS
# if the pmix_version.h file does not exist, then
# this must be from a pre-1.1.5 version OMPI does
# NOT support anything older than v1.2.5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PMIx version" >&5
$as_echo_n "checking PMIx version... " >&6; }
CPPFLAGS="-I$check_pmi_install_dir/include $CPPFLAGS"
if test "x`ls $check_pmi_install_dir/include/pmix_version.h 2> /dev/null`" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: version file not found - assuming v1.1.4" >&5
$as_echo "version file not found - assuming v1.1.4" >&6; }
opal_external_pmix_version_found=1
opal_external_pmix_happy=no
opal_external_pmix_version=internal
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: version file found" >&5
$as_echo "version file found" >&6; }
opal_external_pmix_version_found=0
fi
# if it does exist, then we need to parse it to find
# the actual release series
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 4x" >&5
$as_echo_n "checking version 4x... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR < 4L)
#error "not version 4 or above"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=4x
opal_external_pmix_version_major=4
opal_external_pmix_version_found=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 3x or above" >&5
$as_echo_n "checking version 3x or above... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR != 3L)
#error "not version 3"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=3x
opal_external_pmix_version_major=3
opal_external_pmix_version_found=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 2x" >&5
$as_echo_n "checking version 2x... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR != 2L)
#error "not version 2"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=2x
opal_external_pmix_version_major=2
opal_external_pmix_version_found=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 1x" >&5
$as_echo_n "checking version 1x... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR != 1L && PMIX_VERSION_MINOR != 2L)
#error "not version 1.2.x"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=1x
opal_external_pmix_version_major=1
opal_external_pmix_version_found=1
opal_external_have_pmix1=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "x$opal_external_pmix_version" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External PMIx support detected, but version" >&5
$as_echo "$as_me: WARNING: External PMIx support detected, but version" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: information of the external lib could not" >&5
$as_echo "$as_me: WARNING: information of the external lib could not" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: be detected" >&5
$as_echo "$as_me: WARNING: be detected" >&2;}
opal_external_pmix_happy=no
fi
CPPFLAGS=$opal_external_pmix_save_CPPFLAGS
LDFLAGS=$opal_external_pmix_save_LDFLAGS
LIBS=$opal_external_pmix_save_LIBS
fi
if test "$opal_external_pmix_happy" = "yes"; then :
opal_enable_pmix=yes
else
opal_enable_pmix=no
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
# since support was explicitly requested, then we should error out
# if we didn't find the required support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking can PMI support be built" >&5
$as_echo_n "checking can PMI support be built... " >&6; }
if test "$opal_enable_pmi1" != "yes" && test "$opal_enable_pmi2" != "yes" && test "$opal_enable_pmix" != "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMI support requested (via --with-pmi) but neither pmi.h," >&5
$as_echo "$as_me: WARNING: PMI support requested (via --with-pmi) but neither pmi.h," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pmi2.h or pmix.h were found under locations:" >&5
$as_echo "$as_me: WARNING: pmi2.h or pmix.h were found under locations:" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $check_pmi_install_dir" >&5
$as_echo "$as_me: WARNING: $check_pmi_install_dir" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $check_pmi_install_dir/slurm" >&5
$as_echo "$as_me: WARNING: $check_pmi_install_dir/slurm" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified path: $with_pmi" >&5
$as_echo "$as_me: WARNING: Specified path: $with_pmi" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OR neither libpmi, libpmi2, or libpmix were found under:" >&5
$as_echo "$as_me: WARNING: OR neither libpmi, libpmi2, or libpmix were found under:" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $check_pmi_lib_dir/lib" >&5
$as_echo "$as_me: WARNING: $check_pmi_lib_dir/lib" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $check_pmi_lib_dir/lib64" >&5
$as_echo "$as_me: WARNING: $check_pmi_lib_dir/lib64" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified path: $with_pmi_libdir" >&5
$as_echo "$as_me: WARNING: Specified path: $with_pmi_libdir" >&2;}
as_fn_error $? "Aborting" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test "$with_pmix" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires PMIx support. It can be built" >&5
$as_echo "$as_me: WARNING: Open MPI requires PMIx support. It can be built" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with either its own internal copy of PMIx, or with" >&5
$as_echo "$as_me: WARNING: with either its own internal copy of PMIx, or with" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: an external copy that you supply." >&5
$as_echo "$as_me: WARNING: an external copy that you supply." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
opal_external_have_pmix1=0
if test "$opal_enable_pmix" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if user requested internal PMIx support($with_pmix)" >&5
$as_echo_n "checking if user requested internal PMIx support($with_pmix)... " >&6; }
opal_external_pmix_happy=no
pmix_ext_install_libdir=
pmix_ext_install_dir=
if test "$with_pmix" = "internal"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
opal_external_pmix_happy=no
opal_external_pmix_version=internal
opal_enable_pmix=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
# check for external pmix lib */
if test -z "$with_pmix" || test "$with_pmix" = "yes" || test "$with_pmix" = "external"; then :
pmix_ext_install_dir=/usr
else
pmix_ext_install_dir=$with_pmix
fi
if test -n "$with_pmix_libdir"; then :
pmix_ext_install_libdir=$with_pmix_libdir
fi
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_external_pmix_save_CPPFLAGS opal_external_pmix_save_LDFLAGS opal_external_pmix_save_LIBS; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_external_pmix_save_CPPFLAGS opal_external_pmix_save_LDFLAGS opal_external_pmix_save_LIBS\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_external_pmix_happy=no
# Make sure we have the headers and libs in the correct location
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix.h in $pmix_ext_install_dir" >&5
$as_echo_n "checking for pmix.h in $pmix_ext_install_dir... " >&6; }
files=`ls $pmix_ext_install_dir/pmix.h 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_header_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix.h in $pmix_ext_install_dir/include" >&5
$as_echo_n "checking for pmix.h in $pmix_ext_install_dir/include... " >&6; }
files=`ls $pmix_ext_install_dir/include/pmix.h 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_header_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
opal_external_pmix_header_happy=no
fi
fi
if test "$opal_external_pmix_header_happy" = "yes"; then :
if test -n "$pmix_ext_install_libdir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $pmix_ext_install_libdir" >&5
$as_echo_n "checking libpmix.* in $pmix_ext_install_libdir... " >&6; }
files=`ls $pmix_ext_install_libdir/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$pmix_ext_install_libdir
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $pmix_ext_install_libdir/lib64" >&5
$as_echo_n "checking libpmix.* in $pmix_ext_install_libdir/lib64... " >&6; }
files=`ls $pmix_ext_install_libdir/lib64/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$pmix_ext_install_libdir/lib64
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $pmix_ext_install_libdir/lib" >&5
$as_echo_n "checking libpmix.* in $pmix_ext_install_libdir/lib... " >&6; }
files=`ls $pmix_ext_install_libdir/lib/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$pmix_ext_install_libdir/lib
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
fi
else
# check for presence of lib64 directory - if found, see if the
# desired library is present and matches our build requirements
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $pmix_ext_install_dir/lib64" >&5
$as_echo_n "checking libpmix.* in $pmix_ext_install_dir/lib64... " >&6; }
files=`ls $pmix_ext_install_dir/lib64/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$pmix_ext_install_dir/lib64
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpmix.* in $pmix_ext_install_dir/lib" >&5
$as_echo_n "checking libpmix.* in $pmix_ext_install_dir/lib... " >&6; }
files=`ls $pmix_ext_install_dir/lib/libpmix.* 2> /dev/null | wc -l`
if test "$files" -gt 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
pmix_ext_install_libdir=$pmix_ext_install_dir/lib
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
fi
# check the version
opal_external_pmix_save_CPPFLAGS=$CPPFLAGS
opal_external_pmix_save_LDFLAGS=$LDFLAGS
opal_external_pmix_save_LIBS=$LIBS
# if the pmix_version.h file does not exist, then
# this must be from a pre-1.1.5 version OMPI does
# NOT support anything older than v1.2.5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PMIx version" >&5
$as_echo_n "checking PMIx version... " >&6; }
CPPFLAGS="-I$pmix_ext_install_dir/include $CPPFLAGS"
if test "x`ls $pmix_ext_install_dir/include/pmix_version.h 2> /dev/null`" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: version file not found - assuming v1.1.4" >&5
$as_echo "version file not found - assuming v1.1.4" >&6; }
opal_external_pmix_version_found=1
opal_external_pmix_happy=no
opal_external_pmix_version=internal
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: version file found" >&5
$as_echo "version file found" >&6; }
opal_external_pmix_version_found=0
fi
# if it does exist, then we need to parse it to find
# the actual release series
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 4x" >&5
$as_echo_n "checking version 4x... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR < 4L)
#error "not version 4 or above"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=4x
opal_external_pmix_version_major=4
opal_external_pmix_version_found=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 3x or above" >&5
$as_echo_n "checking version 3x or above... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR != 3L)
#error "not version 3"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=3x
opal_external_pmix_version_major=3
opal_external_pmix_version_found=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 2x" >&5
$as_echo_n "checking version 2x... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR != 2L)
#error "not version 2"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=2x
opal_external_pmix_version_major=2
opal_external_pmix_version_found=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "$opal_external_pmix_version_found" = "0"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version 1x" >&5
$as_echo_n "checking version 1x... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#if (PMIX_VERSION_MAJOR != 1L && PMIX_VERSION_MINOR != 2L)
#error "not version 1.2.x"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
opal_external_pmix_version=1x
opal_external_pmix_version_major=1
opal_external_pmix_version_found=1
opal_external_have_pmix1=1
opal_external_pmix_happy=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi
if test "x$opal_external_pmix_version" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External PMIx support detected, but version" >&5
$as_echo "$as_me: WARNING: External PMIx support detected, but version" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: information of the external lib could not" >&5
$as_echo "$as_me: WARNING: information of the external lib could not" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: be detected" >&5
$as_echo "$as_me: WARNING: be detected" >&2;}
opal_external_pmix_happy=no
fi
CPPFLAGS=$opal_external_pmix_save_CPPFLAGS
LDFLAGS=$opal_external_pmix_save_LDFLAGS
LIBS=$opal_external_pmix_save_LIBS
fi
if test "$opal_external_pmix_happy" = "yes"; then :
opal_external_pmix_happy=yes
opal_enable_pmix=yes
else
opal_external_pmix_happy=no
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
# Final check - if they explicitly pointed us at an external
# installation that wasn't acceptable, then error out
if test -n "$with_pmix" && test "$with_pmix" != "yes" && test "$with_pmix" != "external" && test "$with_pmix" != "internal" && test "$opal_external_pmix_happy" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External PMIx support requested, but either the version" >&5
$as_echo "$as_me: WARNING: External PMIx support requested, but either the version" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: of the external lib was not supported or the required" >&5
$as_echo "$as_me: WARNING: of the external lib was not supported or the required" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header/library files were not found" >&5
$as_echo "$as_me: WARNING: header/library files were not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
# Final check - if they didn't point us explicitly at an external version
# but we found one anyway, use the internal version if it is higher
if test "$opal_external_pmix_version" != "internal" && (test -z "$with_pmix" || test "$with_pmix" = "yes"); then :
if test "$opal_external_pmix_version" != "3x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: discovered external PMIx version is less than internal version 3.x" >&5
$as_echo "$as_me: WARNING: discovered external PMIx version is less than internal version 3.x" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal PMIx" >&5
$as_echo "$as_me: WARNING: using internal PMIx" >&2;}
opal_external_pmix_version=internal
opal_external_pmix_happy=no
fi
fi
fi
if test "$opal_enable_pmix" = "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PMIx version to be used" >&5
$as_echo_n "checking PMIx version to be used... " >&6; }
if test "$opal_external_pmix_happy" = "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: external($opal_external_pmix_version)" >&5
$as_echo "external($opal_external_pmix_version)" >&6; }
if test "$pmix_ext_install_dir" != "/usr"; then :
opal_external_pmix_CPPFLAGS="-I$pmix_ext_install_dir/include"
opal_external_pmix_LDFLAGS=-L$pmix_ext_install_libdir
fi
opal_external_pmix_LIBS=-lpmix
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
$as_echo "internal" >&6; }
fi
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_PMIX_V1 $opal_external_have_pmix1
_ACEOF
if test "$opal_external_pmix_happy" = "yes"; then :
if test "$opal_external_pmix_version" = "1x"; then :
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_summary_section ompi_summary_line ompi_summary_section_current; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_summary_section ompi_summary_line ompi_summary_section_current\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
ompi_summary_section=$(echo Miscellaneous | tr ' ' '_')
ompi_summary_line="PMIx support: External (1.2.5) WARNING - DYNAMIC OPS NOT SUPPORTED"
ompi_summary_section_current=$(eval echo \$ompi_summary_values_$ompi_summary_section)
if test -z "$ompi_summary_section_current" ; then
if test -z "$ompi_summary_sections" ; then
ompi_summary_sections=$ompi_summary_section
else
ompi_summary_sections="$ompi_summary_sections $ompi_summary_section"
fi
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_line\"
else
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_section_current,$ompi_summary_line\"
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
else
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_summary_section ompi_summary_line ompi_summary_section_current; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_summary_section ompi_summary_line ompi_summary_section_current\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
ompi_summary_section=$(echo Miscellaneous | tr ' ' '_')
ompi_summary_line="PMIx support: External ($opal_external_pmix_version)"
ompi_summary_section_current=$(eval echo \$ompi_summary_values_$ompi_summary_section)
if test -z "$ompi_summary_section_current" ; then
if test -z "$ompi_summary_sections" ; then
ompi_summary_sections=$ompi_summary_section
else
ompi_summary_sections="$ompi_summary_sections $ompi_summary_section"
fi
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_line\"
else
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_section_current,$ompi_summary_line\"
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
else
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_summary_section ompi_summary_line ompi_summary_section_current; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_summary_section ompi_summary_line ompi_summary_section_current\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
ompi_summary_section=$(echo Miscellaneous | tr ' ' '_')
ompi_summary_line="PMIx support: Internal"
ompi_summary_section_current=$(eval echo \$ompi_summary_values_$ompi_summary_section)
if test -z "$ompi_summary_section_current" ; then
if test -z "$ompi_summary_sections" ; then
ompi_summary_sections=$ompi_summary_section
else
ompi_summary_sections="$ompi_summary_sections $ompi_summary_section"
fi
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_line\"
else
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_section_current,$ompi_summary_line\"
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
opal_show_subtitle "ORTE Configuration options"
#
# 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
opal_show_subtitle "OMPI Configuration options"
#
# Disable MPI layer?
#
# Check whether --enable-mpi was given.
if test "${enable_mpi+set}" = set; then :
enableval=$enable_mpi;
fi
#
# Do we want to enable MPI interface warnings (e.g. deprecated
# functionality and others)?
#
# This was disabled by default in v1.5, but will be enabled by default
# in 1.7 and beyond.
#
{ $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" != "no"; 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 MPI bindings
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want Fortran MPI bindings" >&5
$as_echo_n "checking if want Fortran MPI bindings... " >&6; }
# Check whether --enable-mpi-fortran was given.
if test "${enable_mpi_fortran+set}" = set; then :
enableval=$enable_mpi_fortran;
fi
# These are the 4 monotonically-rising values indicating levels of
# Fortran bindings support.
OMPI_FORTRAN_NO_BINDINGS=0
OMPI_FORTRAN_MPIFH_BINDINGS=1
OMPI_FORTRAN_USEMPI_BINDINGS=2
OMPI_FORTRAN_USEMPIF08_BINDINGS=3
# Set this variable to minimum the level of Fortran bindings support
# that is *required* (i.e., if we can't achieve this level, then
# configure should abort).
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS
# Set this variable to the highest level of Fortran bindings support
# that should be attempted. This value will never be <=
# $OMPI_MIN_REQUIRED_FORTRAN_BINDINGS.
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS
case "x$enable_mpi_fortran" in
x|xbest-effort)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (try)" >&5
$as_echo " (try)" >&6; }
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPIF08_BINDINGS
;;
xyes)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
$as_echo "yes (default)" >&6; }
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_MPIFH_BINDINGS
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPIF08_BINDINGS
;;
xall|xusempif08)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: all (usempif08)" >&5
$as_echo "all (usempif08)" >&6; }
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPIF08_BINDINGS
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPIF08_BINDINGS
;;
xno|xnone)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (none)" >&5
$as_echo "no (none)" >&6; }
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS
;;
xmpifh)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (mpif.h)" >&5
$as_echo "yes (mpif.h)" >&6; }
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_MPIFH_BINDINGS
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_MPIFH_BINDINGS
;;
xusempi)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (mpif.h, mpi module)" >&5
$as_echo "yes (mpif.h, mpi module)" >&6; }
OMPI_MIN_REQUIRED_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS
OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS
;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown: $binding" >&5
$as_echo "unknown: $binding" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mpi-fortran supports only one of the following values: yes, all, none, best-effort, mpifh, usempi, or usempif08" >&5
$as_echo "$as_me: WARNING: --enable-mpi-fortran supports only one of the following values: yes, all, none, best-effort, mpifh, usempi, or usempif08" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
;;
esac
#
# 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" = "yes"; 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
# Remove these when we finally kill them once and for all
# Check whether --enable-mpi1-compatibility was given.
if test "${enable_mpi1_compatibility+set}" = set; then :
enableval=$enable_mpi1_compatibility;
fi
if test "x$enable_mpi1_compatibility" = "xyes" ; then
ompi_mpi1_support=1
else
ompi_mpi1_support=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_MPI1_COMPAT $ompi_mpi1_support
_ACEOF
OMPI_ENABLE_MPI1_COMPAT=$ompi_mpi1_support
if test $ompi_mpi1_support = 1; then
OMPI_ENABLE_MPI1_COMPAT_TRUE=
OMPI_ENABLE_MPI1_COMPAT_FALSE='#'
else
OMPI_ENABLE_MPI1_COMPAT_TRUE='#'
OMPI_ENABLE_MPI1_COMPAT_FALSE=
fi
# Check whether --enable-grequest-extensions was given.
if test "${enable_grequest_extensions+set}" = set; then :
enableval=$enable_grequest_extensions;
fi
if test "x$enable_grequest_extensions" = "xyes" ; then
ompi_grequest_extensions=1
else
ompi_grequest_extensions=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_GREQUEST_EXTENSIONS $ompi_grequest_extensions
_ACEOF
OMPI_ENABLE_GREQUEST_EXTENSIONS=$ompi_grequest_extensions
if test $ompi_grequest_extensions = 1; then
OMPI_ENABLE_GREQUEST_EXTENSIONS_TRUE=
OMPI_ENABLE_GREQUEST_EXTENSIONS_FALSE='#'
else
OMPI_ENABLE_GREQUEST_EXTENSIONS_TRUE='#'
OMPI_ENABLE_GREQUEST_EXTENSIONS_FALSE=
fi
#
# 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" || \
test "$with_mpi_param_check" = "never"; then
mpi_param_check=0
ompi_param_check=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
$as_echo "never" >&6; }
elif test "$with_mpi_param_check" = "yes" || \
test "$with_mpi_param_check" = "always"; then
mpi_param_check=1
ompi_param_check=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
$as_echo "always" >&6; }
elif test "$with_mpi_param_check" = "runtime" || \
test -z "$with_mpi_params_check"; then
ompi_param_check=1
{ $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
cat >>confdefs.h <<_ACEOF
#define OMPI_PARAM_CHECK $ompi_param_check
_ACEOF
# Check whether --enable-io-ompio was given.
if test "${enable_io_ompio+set}" = set; then :
enableval=$enable_io_ompio;
fi
opal_show_subtitle "OSHMEM Configuration options"
#
# Disable Open SHMEM?
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want oshmem" >&5
$as_echo_n "checking if want oshmem... " >&6; }
# Check whether --enable-oshmem was given.
if test "${enable_oshmem+set}" = set; then :
enableval=$enable_oshmem;
fi
if test "$enable_oshmem" = "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
elif test "$enable_oshmem" = ""; then
if test "$opal_found_linux" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
enable_oshmem=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported on this platform" >&5
$as_echo "not supported on this platform" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
if test "$opal_found_linux" != "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSHMEM support was requested, but currently" >&5
$as_echo "$as_me: WARNING: OpenSHMEM support was requested, but currently" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: only supports Linux." >&5
$as_echo "$as_me: WARNING: only supports Linux." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
#
# Enable compatibility mode
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want SGI/Quadrics compatibility mode" >&5
$as_echo_n "checking if want SGI/Quadrics compatibility mode... " >&6; }
# Check whether --enable-oshmem-compat was given.
if test "${enable_oshmem_compat+set}" = set; then :
enableval=$enable_oshmem_compat;
fi
if test "$enable_oshmem_compat" != "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
OSHMEM_SPEC_COMPAT=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
OSHMEM_SPEC_COMPAT=0
fi
cat >>confdefs.h <<_ACEOF
#define OSHMEM_SPEC_COMPAT $OSHMEM_SPEC_COMPAT
_ACEOF
#
# Do we want to disable OSHMEM parameter checking at run-time?
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want OSHMEM API parameter checking" >&5
$as_echo_n "checking if want OSHMEM API parameter checking... " >&6; }
# Check whether --with-oshmem-param-check was given.
if test "${with_oshmem_param_check+set}" = set; then :
withval=$with_oshmem_param_check;
fi
if test "$with_oshmem_param_check" = "no" || \
test "$with_oshmem_param_check" = "never"; then
shmem_param_check=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
$as_echo "never" >&6; }
elif test "$with_oshmem_param_check" = "yes" || \
test "$with_oshmem_param_check" = "always" || \
test -z "$with_oshmem_param_check"; then
shmem_param_check=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
$as_echo "always" >&6; }
else
shmem_param_check=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unrecognized --with-oshmem-param-check value" >&5
$as_echo "$as_me: WARNING: *** Unrecognized --with-oshmem-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 \"always\"" >&5
$as_echo "$as_me: WARNING: *** Defaulting to \"always\"" >&2;}
fi
cat >>confdefs.h <<_ACEOF
#define OSHMEM_PARAM_CHECK $shmem_param_check
_ACEOF
#
# check for on_exit
#
for ac_func in on_exit
do :
ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
if test "x$ac_cv_func_on_exit" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_ON_EXIT 1
_ACEOF
fi
done
#
# OSHMEM profiling support
#
# Check whether --enable-oshmem-profile was given.
if test "${enable_oshmem_profile+set}" = set; then :
enableval=$enable_oshmem_profile;
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pshmem" >&5
$as_echo_n "checking if want pshmem... " >&6; }
if test "$enable_oshmem_profile" != "no"; 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
# Bozo check
if test "$enable_oshmem" = "no" && \
test "$enable_oshmem_profile" = "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSHMEM profiling was requested, but OpenSHMEM has been explicitly disabled" >&5
$as_echo "$as_me: WARNING: OpenSHMEM profiling was requested, but OpenSHMEM has been explicitly disabled" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
# Cannot check if we can enable profiling because it is not yet
# known whether the compiler supports weak symbols.
#
# Fortran bindings
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to build OSHMEM fortran bindings" >&5
$as_echo_n "checking if want to build OSHMEM fortran bindings... " >&6; }
# Check whether --enable-oshmem-fortran was given.
if test "${enable_oshmem_fortran+set}" = set; then :
enableval=$enable_oshmem_fortran;
fi
if test "$enable_oshmem_fortran" != "no"; then
# If no OMPI FORTRAN, bail
if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS && \
test "$enable_oshmem_fortran" = "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value OMPI_TRY_FORTRAN_BINDINGS: ($OMPI_TRY_FORTRAN_BINDINGS)" >&5
$as_echo "bad value OMPI_TRY_FORTRAN_BINDINGS: ($OMPI_TRY_FORTRAN_BINDINGS)" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your request to --enable-oshmem-fortran can only be satisfied if fortran support is enabled in OMPI.
You see this message because OMPI fortran support has been explicitly disabled via --disable-mpi-fortran and OSHMEM fortran support was explicitly enabled with --enable-oshmem-fortran.
Configure will abort because you, a human, have asked for something that cannot be provided." >&5
$as_echo "$as_me: WARNING: Your request to --enable-oshmem-fortran can only be satisfied if fortran support is enabled in OMPI.
You see this message because OMPI fortran support has been explicitly disabled via --disable-mpi-fortran and OSHMEM fortran support was explicitly enabled with --enable-oshmem-fortran.
Configure will abort because you, a human, have asked for something that cannot be provided." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; 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
else
enable_oshmem_fortran=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
#
# We can't set am_conditional here since it's yet unknown if there is
# valid Fortran compiler available
#
# Set up project specific AM_CONDITIONALs
if test "$enable_ompi" != "no"; then :
project_ompi_amc=true
else
project_ompi_amc=false
fi
if test "$enable_orte" != "no"; then :
project_orte_amc=true
else
project_orte_amc=false
fi
if test "$enable_oshmem" != "no"; then :
project_oshmem_amc=true
else
project_oshmem_amc="no (disabled)"
fi
# Enable/Disable Software-Based Performance Counters Capability
# Check whether --enable-spc was given.
if test "${enable_spc+set}" = set; then :
enableval=$enable_spc;
fi
if test "$enable_spc" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
SPC_ENABLE=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
SPC_ENABLE=0
fi
cat >>confdefs.h <<_ACEOF
#define SPC_ENABLE $SPC_ENABLE
_ACEOF
if test "$SPC_ENABLE" = "1"; then
SPC_ENABLE_TRUE=
SPC_ENABLE_FALSE='#'
else
SPC_ENABLE_TRUE='#'
SPC_ENABLE_FALSE=
fi
if test "$enable_spc" != "no"; then :
project_spc_amc=true
else
project_spc_amc=false
fi
if test "$enable_binaries" = "no" && test "$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
# The library prefixes must be set before we call OPAL MCA. Here is
# as good a place as any.
if test "$opal_lib_prefix_set" = "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL lib prefix was already set!" >&5
$as_echo "$as_me: WARNING: OPAL lib prefix was already set!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configury programming error" >&5
$as_echo "$as_me: WARNING: This is a configury programming error" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
OPAL_LIB_PREFIX=
opal_lib_prefix_set=yes
if test "$orte_lib_prefix_set" = "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ORTE lib prefix was already set!" >&5
$as_echo "$as_me: WARNING: ORTE lib prefix was already set!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configury programming error" >&5
$as_echo "$as_me: WARNING: This is a configury programming error" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
ORTE_LIB_PREFIX=
orte_lib_prefix_set=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want custom libmpi(_FOO) name" >&5
$as_echo_n "checking if want custom libmpi(_FOO) name... " >&6; }
# Check whether --with-libmpi-name was given.
if test "${with_libmpi_name+set}" = set; then :
withval=$with_libmpi_name;
fi
if test "$with_libmpi_name" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
$as_echo "Error" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid to specify --without-libmpi-name" >&5
$as_echo "$as_me: WARNING: Invalid to specify --without-libmpi-name" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
if test "$with_libmpi_name" = "" || test "$with_libmpi_name" = "yes"; then :
with_libmpi_name="mpi"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libmpi_name" >&5
$as_echo "$with_libmpi_name" >&6; }
OMPI_LIBMPI_NAME=$with_libmpi_name
############################################################################
# Libtool: part one
# (before C compiler setup)
############################################################################
#
# Part one of libtool magic. Default to: enable shared, disable 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
# 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" || test "$with_wrapper_cflags" = "no"; then :
as_fn_error $? "--with-wrapper-cflags must have an argument." "$LINENO" 5
fi
# Check whether --with-wrapper-cflags-prefix was given.
if test "${with_wrapper_cflags_prefix+set}" = set; then :
withval=$with_wrapper_cflags_prefix;
fi
if test "$with_wrapper_cflags_prefix" = "yes" || test "$with_wrapper_cflags_prefix" = "no"; then :
as_fn_error $? "--with-wrapper-cflags-prefix must have an argument." "$LINENO" 5
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" || test "$with_wrapper_cxxflags" = "no"; then :
as_fn_error $? "--with-wrapper-cxxflags must have an argument." "$LINENO" 5
fi
# Check whether --with-wrapper-cxxflags-prefix was given.
if test "${with_wrapper_cxxflags_prefix+set}" = set; then :
withval=$with_wrapper_cxxflags_prefix;
fi
if test "$with_wrapper_cxxflags_prefix" = "yes" || test "$with_wrapper_cxxflags_prefix" = "no"; then :
as_fn_error $? "--with-wrapper-cxxflags-prefix must have an argument." "$LINENO" 5
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" || test "$with_wrapper_fcflags" = "no"; then :
as_fn_error $? "--with-wrapper-fcflags must have an argument." "$LINENO" 5
fi
# Check whether --with-wrapper-fcflags-prefix was given.
if test "${with_wrapper_fcflags_prefix+set}" = set; then :
withval=$with_wrapper_fcflags_prefix;
fi
if test "$with_wrapper_fcflags_prefix" = "yes" || test "$with_wrapper_fcflags_prefix" = "no"; then :
as_fn_error $? "--with-wrapper-fcflags-prefix must have an argument." "$LINENO" 5
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" || test "$with_wrapper_ldflags" = "no"; then :
as_fn_error $? "--with-wrapper-ldflags must have an argument." "$LINENO" 5
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" || test "$with_wrapper_libs" = "no"; then :
as_fn_error $? "--with-wrapper-libs must have an argument." "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want wrapper compiler rpath support" >&5
$as_echo_n "checking if want wrapper compiler rpath support... " >&6; }
# Check whether --enable-wrapper-rpath was given.
if test "${enable_wrapper_rpath+set}" = set; then :
enableval=$enable_wrapper_rpath;
fi
if test "$enable_wrapper_rpath" != "no"; then :
enable_wrapper_rpath=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_wrapper_rpath" >&5
$as_echo "$enable_wrapper_rpath" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want wrapper compiler runpath support" >&5
$as_echo_n "checking if want wrapper compiler runpath support... " >&6; }
# Check whether --enable-wrapper-runpath was given.
if test "${enable_wrapper_runpath+set}" = set; then :
enableval=$enable_wrapper_runpath;
fi
if test "$enable_wrapper_runpath" != "no"; then :
enable_wrapper_runpath=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_wrapper_runpath" >&5
$as_echo "$enable_wrapper_runpath" >&6; }
if test "$enable_wrapper_rpath" = "no" && test "$enable_wrapper_runpath" = "yes"; then :
as_fn_error $? "--enable-wrapper-runpath cannot be selected with --disable-wrapper-rpath" "$LINENO" 5
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.
# OS X name OS X Version $host_os value
# OS X Tiger 10.4.x darwin8.x
# OS X Leopard 10.5.x darwin9.x
# OS X Snow Leopard 10.6.x darwin10.x
# OS X Lion 10.7.x darwin11.x
# We do not support OS X before version 10.5 (Leopard)
case $host_os in
# Corresponds to OS X 10.0 - 10.4 (additional [] quoting for m4)
darwin[45678]*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI does not support OS X prior to version 10.5 (Leopard)" >&5
$as_echo "$as_me: WARNING: Open MPI does not support OS X prior to version 10.5 (Leopard)" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
esac
############################################################################
# Check for compilers and preprocessors
############################################################################
opal_show_title "Compiler and preprocessor tests"
##################################
# C compiler characteristics
##################################
opal_show_subtitle "C compiler and preprocessor"
# $%@#!@#% AIX!! This has to be called before anything invokes the C
# compiler.
#
# Check for the compiler
#
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cflags_save dummy opal_cc_arvgv0; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cflags_save dummy opal_cc_arvgv0\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_c_compiler_gnu+:} false; 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 ${ac_cv_prog_cc_g+:} false; 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 ${ac_cv_prog_cc_c89+:} false; 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
#include
struct stat;
/* 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 whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; 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.
# Following AC_PROG_CC_C_O, we do the test twice because some
# compilers refuse to overwrite an existing .o file with -o,
# though they will create one.
am_cv_prog_cc_c_o=yes
for am_i in 1 2; do
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } \
&& test -f conftest2.$ac_objext; then
: OK
else
am_cv_prog_cc_c_o=no
break
fi
done
rm -f core conftest*
unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != 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
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="$opal_cflags_save"
cat >>confdefs.h <<_ACEOF
#define OPAL_CC "$CC"
_ACEOF
set dummy $CC
opal_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$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog opal_file opal_dir opal_sentinel; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog opal_file opal_dir opal_sentinel\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog=$opal_cc_argv0
IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for opal_dir in $PATH; do
if test -x "$opal_dir/$opal_prog"; then
OPAL_CC_ABSOLUTE="$opal_dir/$opal_prog"
break
fi
done
IFS=$IFS_SAVE
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# 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.
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog_cc_c11_helper__Thread_local_available opal_prog_cc_c11_helper_atomic_var_available opal_prog_cc_c11_helper__Atomic_available opal_prog_cc_c11_helper__static_assert_available opal_prog_cc_c11_helper__Generic_available opal_prog_cc__thread_available opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog_cc_c11_helper__Thread_local_available opal_prog_cc_c11_helper_atomic_var_available opal_prog_cc_c11_helper__Atomic_available opal_prog_cc_c11_helper__static_assert_available opal_prog_cc_c11_helper__Generic_available opal_prog_cc__thread_available opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
# AC_PROG_CC_C99 changes CC (instead of CFLAGS) so save CC (without c99
# flags) for use in our wrappers.
WRAPPER_CC="$CC"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog_cc_c11_flags; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog_cc_c11_flags\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
if test -z "$opal_cv_c11_supported" ; then
opal_cv_c11_supported=no
opal_cv_c11_flag_required=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC requires a flag for C11" >&5
$as_echo_n "checking if $CC requires a flag for C11... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if __STDC_VERSION__ < 201112L
#error "Without any CLI flags, this compiler does not support C11"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
opal_cv_c11_flag_required=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_c11_flag_required" >&5
$as_echo "$opal_cv_c11_flag_required" >&6; }
if test "x$opal_cv_c11_flag_required" = "xno" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying $CC supports C11 without a flag" >&5
$as_echo "$as_me: verifying $CC supports C11 without a flag" >&6;}
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog_cc_c11_helper_CFLAGS_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog_cc_c11_helper_CFLAGS_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog_cc_c11_helper_CFLAGS_save=$CFLAGS
CFLAGS="$CFLAGS "
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Thread_local" >&5
$as_echo_n "checking if $CC supports C11 _Thread_local... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
static _Thread_local int foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Thread_local_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Thread_local_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic variables" >&5
$as_echo_n "checking if $CC supports C11 atomic variables... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
static atomic_long foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper_atomic_var_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper_atomic_var_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Atomic keyword" >&5
$as_echo_n "checking if $CC supports C11 _Atomic keyword... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
static _Atomic long foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Atomic_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Atomic_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Generic keyword" >&5
$as_echo_n "checking if $CC supports C11 _Generic keyword... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define FOO(x) (_Generic (x, int: 1))
int
main ()
{
static int x, y; y = FOO(x);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Generic_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Generic_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Static_assert" >&5
$as_echo_n "checking if $CC supports C11 _Static_assert... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
_Static_assert(sizeof(int64_t) == 8, "WTH");
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__static_assert_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__static_assert_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic_fetch_xor_explicit" >&5
$as_echo_n "checking if $CC supports C11 atomic_fetch_xor_explicit... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
int
main ()
{
_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test $opal_prog_cc_c11_helper__Thread_local_available -eq 1 && test $opal_prog_cc_c11_helper_atomic_var_available -eq 1 && test $opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then :
else
opal_cv_c11_flag_required=yes
fi
CFLAGS=$opal_prog_cc_c11_helper_CFLAGS_save
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
if test "x$opal_cv_c11_flag_required" = "xyes" ; then
opal_prog_cc_c11_flags="-std=gnu11 -std=c11 -c11"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 with a flag" >&5
$as_echo "$as_me: checking if $CC supports C11 with a flag" >&6;}
opal_cv_c11_flag=
for flag in $(echo $opal_prog_cc_c11_flags | tr ' ' '\n') ; do
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog_cc_c11_helper_CFLAGS_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog_cc_c11_helper_CFLAGS_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog_cc_c11_helper_CFLAGS_save=$CFLAGS
CFLAGS="$CFLAGS $flag"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Thread_local" >&5
$as_echo_n "checking if $CC $flag supports C11 _Thread_local... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
static _Thread_local int foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Thread_local_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Thread_local_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 atomic variables" >&5
$as_echo_n "checking if $CC $flag supports C11 atomic variables... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
static atomic_long foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper_atomic_var_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper_atomic_var_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Atomic keyword" >&5
$as_echo_n "checking if $CC $flag supports C11 _Atomic keyword... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
static _Atomic long foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Atomic_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Atomic_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Generic keyword" >&5
$as_echo_n "checking if $CC $flag supports C11 _Generic keyword... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define FOO(x) (_Generic (x, int: 1))
int
main ()
{
static int x, y; y = FOO(x);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Generic_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Generic_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Static_assert" >&5
$as_echo_n "checking if $CC $flag supports C11 _Static_assert... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
_Static_assert(sizeof(int64_t) == 8, "WTH");
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__static_assert_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__static_assert_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 atomic_fetch_xor_explicit" >&5
$as_echo_n "checking if $CC $flag supports C11 atomic_fetch_xor_explicit... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
int
main ()
{
_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test $opal_prog_cc_c11_helper__Thread_local_available -eq 1 && test $opal_prog_cc_c11_helper_atomic_var_available -eq 1 && test $opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then :
opal_cv_c11_flag=$flag
fi
CFLAGS=$opal_prog_cc_c11_helper_CFLAGS_save
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test "x$opal_cv_c11_flag" != "x" ; then
CFLAGS="$CFLAGS $opal_cv_c11_flag"
{ $as_echo "$as_me:${as_lineno-$LINENO}: using $flag to enable C11 support" >&5
$as_echo "$as_me: using $flag to enable C11 support" >&6;}
opal_cv_c11_supported=yes
break
fi
done
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: no flag required for C11 support" >&5
$as_echo "$as_me: no flag required for C11 support" >&6;}
opal_cv_c11_supported=yes
fi
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test $opal_cv_c11_supported = no ; then
# It is not currently an error if C11 support is not available. Uncomment the
# following lines and update the warning when we require a C11 compiler.
# AC_MSG_WARNING([Open MPI requires a C11 (or newer) compiler])
# AC_MSG_ERROR([Aborting.])
# From Open MPI 1.7 on we require a C99 compiant compiler
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include
#include
#include
// Check varargs macros. These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
int x = 1234;
int y = 5678;
debug ("Flag");
debug ("X = %d\n", x);
showlist (The first, second, and third items.);
report (x>y, "x is %d but y is %d", x, y);
}
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
your preprocessor is broken;
#endif
#if BIG_OK
#else
your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
struct incomplete_array
{
int datasize;
double data[];
};
struct named_init {
int number;
const wchar_t *name;
double average;
};
typedef const char *ccp;
static inline int
test_restrict (ccp restrict text)
{
// See if C++-style comments work.
// Iterate through items via the restricted pointer.
// Also check for declarations in for loops.
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
continue;
return 0;
}
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
va_list args;
va_start (args, format);
va_list args_copy;
va_copy (args_copy, args);
const char *str;
int number;
float fnumber;
while (*format)
{
switch (*format++)
{
case 's': // string
str = va_arg (args_copy, const char *);
break;
case 'd': // int
number = va_arg (args_copy, int);
break;
case 'f': // float
fnumber = va_arg (args_copy, double);
break;
default:
break;
}
}
va_end (args_copy);
va_end (args);
}
int
main ()
{
// Check bool.
_Bool success = false;
// Check restrict.
if (test_restrict ("String literal") == 0)
success = true;
char *restrict newvar = "Another string";
// Check varargs.
test_varargs ("s, d' f .", "string", 65, 34.234);
test_varargs_macros ();
// Check flexible array members.
struct incomplete_array *ia =
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
ia->datasize = 10;
for (int i = 0; i < ia->datasize; ++i)
ia->data[i] = i * 1.234;
// Check named initializers.
struct named_init ni = {
.number = 34,
.name = L"Test wide string",
.average = 543.34343,
};
ni.number = 58;
int dynamic_array[ni.number];
dynamic_array[ni.number - 1] = 543;
// work around unused variable warnings
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
|| dynamic_array[ni.number - 1] != 543);
;
return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
CC="$ac_save_CC $ac_arg"
if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" 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_c99"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :
fi
# The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
if test "x$ac_cv_prog_cc_c99" = xno ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires a C99 (or newer) compiler. C11 is recommended." >&5
$as_echo "$as_me: WARNING: Open MPI requires a C99 (or newer) compiler. C11 is recommended." >&2;}
as_fn_error $? "Aborting." "$LINENO" 5
fi
# Get the correct result for C11 support flags now that the compiler flags have
# changed
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog_cc_c11_helper_CFLAGS_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog_cc_c11_helper_CFLAGS_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog_cc_c11_helper_CFLAGS_save=$CFLAGS
CFLAGS="$CFLAGS "
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Thread_local" >&5
$as_echo_n "checking if $CC supports C11 _Thread_local... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
static _Thread_local int foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Thread_local_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Thread_local_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic variables" >&5
$as_echo_n "checking if $CC supports C11 atomic variables... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
static atomic_long foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper_atomic_var_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper_atomic_var_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Atomic keyword" >&5
$as_echo_n "checking if $CC supports C11 _Atomic keyword... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
static _Atomic long foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Atomic_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Atomic_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Generic keyword" >&5
$as_echo_n "checking if $CC supports C11 _Generic keyword... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define FOO(x) (_Generic (x, int: 1))
int
main ()
{
static int x, y; y = FOO(x);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Generic_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Generic_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Static_assert" >&5
$as_echo_n "checking if $CC supports C11 _Static_assert... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
_Static_assert(sizeof(int64_t) == 8, "WTH");
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__static_assert_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__static_assert_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 atomic_fetch_xor_explicit" >&5
$as_echo_n "checking if $CC supports C11 atomic_fetch_xor_explicit... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
int
main ()
{
_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test $opal_prog_cc_c11_helper__Thread_local_available -eq 1 && test $opal_prog_cc_c11_helper_atomic_var_available -eq 1 && test $opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then :
fi
CFLAGS=$opal_prog_cc_c11_helper_CFLAGS_save
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
# Check if compiler support __thread
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __thread" >&5
$as_echo_n "checking if $CC supports __thread... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
static __thread int foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc__thread_available=1
opal_cc_helper_result=yes
else
opal_prog_cc__thread_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cc_helper_result; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cc_helper_result\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 _Thread_local" >&5
$as_echo_n "checking if $CC supports C11 _Thread_local... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
static _Thread_local int foo = 1;++foo;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_prog_cc_c11_helper__Thread_local_available=1
opal_cc_helper_result=yes
else
opal_prog_cc_c11_helper__Thread_local_available=0
opal_cc_helper_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: $opal_cc_helper_result" >&5
$as_echo "$opal_cc_helper_result" >&6; }
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE__THREAD_LOCAL $opal_prog_cc_c11_helper__Thread_local_available
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE_ATOMIC_CONV_VAR $opal_prog_cc_c11_helper_atomic_var_available
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE__ATOMIC $opal_prog_cc_c11_helper__Atomic_available
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE__GENERIC $opal_prog_cc_c11_helper__Generic_available
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE__STATIC_ASSERT $opal_prog_cc_c11_helper__static_assert_available
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE___THREAD $opal_prog_cc__thread_available
_ACEOF
{ $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 ${opal_cv_c_compiler_vendor+:} false; 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
opal_check_compiler_vendor_result="unknown"
# GNU is probably the most common, so check that one as soon as
# possible. Intel and PGI18 pretends to be GNU, so need to check Intel
# and PGI before checking for GNU.
# Intel
if test "$opal_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 :
opal_check_compiler_vendor_result="intel"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Portland Group
if test "$opal_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 :
opal_check_compiler_vendor_result="portland group"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Fujitsu
if test "$opal_check_compiler_vendor_result" = "unknown"; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if !( defined(__FUJITSU) )
#error "condition defined(__FUJITSU) not met"
choke me
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
opal_check_compiler_vendor_result="fujitsu"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# IBM XL C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="ibm"
xlc_major_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 1`
xlc_minor_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 2`
if (test "$xlc_major_version" -lt "13" ) || (test "$xlc_major_version" -eq "13" && test "$xlc_minor_version" -lt "1" ); then :
as_fn_error $? "\"XL Compiler versions less than 13.1 not supported. Detected $xlc_major_version.$xlc_minor_version\"" "$LINENO" 5
fi
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 :
opal_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
# GNU
if test "$opal_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 :
opal_check_compiler_vendor_result="gnu"
# We do not support gccfss as a compiler so die if
# someone tries to use said compiler. gccfss (gcc
# for SPARC Systems) is a compiler that is no longer
# supported by Oracle and it has some major flaws
# that prevents it from actually compiling OMPI code.
# So if we detect it we automatically bail.
if ($CC --version | grep gccfss) >/dev/null 2>&1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gccfss" >&5
$as_echo "gccfss" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected gccfss being used to compile Open MPI." >&5
$as_echo "$as_me: WARNING: Detected gccfss being used to compile Open MPI." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Because of several issues Open MPI does not support" >&5
$as_echo "$as_me: WARNING: Because of several issues Open MPI does not support" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the gccfss compiler. Please use a different compiler." >&5
$as_echo "$as_me: WARNING: the gccfss compiler. Please use a different compiler." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not think you used gccfss you may want to" >&5
$as_echo "$as_me: WARNING: If you did not think you used gccfss you may want to" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check to see if the compiler you think you used is" >&5
$as_echo "$as_me: WARNING: check to see if the compiler you think you used is" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: actually a link to gccfss." >&5
$as_echo "$as_me: WARNING: actually a link to gccfss." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland Turbo C
if test "$opal_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 :
opal_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland C++
if test "$opal_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 :
opal_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Comeau C++
if test "$opal_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 :
opal_check_compiler_vendor_result="comeau"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Compaq C/C++
if test "$opal_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 :
opal_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 :
opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="cray"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Diab C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="diab"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Digital Mars
if test "$opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="hp"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# KAI C++ (rest in peace)
if test "$opal_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 :
opal_check_compiler_vendor_result="kai"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# LCC
if test "$opal_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 :
opal_check_compiler_vendor_result="lcc"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MetaWare High C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="metaware high"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Metrowerks Codewarrior
if test "$opal_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 :
opal_check_compiler_vendor_result="metrowerks"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MIPSpro (SGI)
if test "$opal_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 :
opal_check_compiler_vendor_result="sgi"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MPW C++
if test "$opal_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 :
opal_check_compiler_vendor_result="mpw"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Microsoft
if test "$opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="norcroft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Pelles C
if test "$opal_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 :
opal_check_compiler_vendor_result="pelles"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# SAS/C
if test "$opal_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 :
opal_check_compiler_vendor_result="sas"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Sun Workshop C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="sun"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# TenDRA C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="tendra"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Tiny C
if test "$opal_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 :
opal_check_compiler_vendor_result="tiny"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# USL C
if test "$opal_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 :
opal_check_compiler_vendor_result="usl"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Watcom C++
if test "$opal_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 :
opal_check_compiler_vendor_result="watcom"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
opal_cv_c_compiler_vendor="$opal_check_compiler_vendor_result"
unset opal_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: $opal_cv_c_compiler_vendor" >&5
$as_echo "$opal_cv_c_compiler_vendor" >&6; }
opal_c_vendor="$opal_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 ${ac_cv_header_stdc+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include
#include
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
_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
_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
#include
#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 "$opal_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 "$opal_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"
OPAL_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 ${opal_cv_cc_coverage+:} false; 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_cc_coverage="yes"
else
opal_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: $opal_cv_cc_coverage" >&5
$as_echo "$opal_cv_cc_coverage" >&6; }
if test "$opal_cv_cc_coverage" = "yes" ; then
OPAL_COVERAGE_FLAGS="--coverage"
CLEANFILES="*.gcno ${CLEANFILES}"
CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}"
else
OPAL_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs"
CLEANFILES="*.bb *.bbg ${CLEANFILES}"
CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}"
fi
CFLAGS="$CFLAGS_orig $OPAL_COVERAGE_FLAGS"
LDFLAGS="$LDFLAGS_orig $OPAL_COVERAGE_FLAGS"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OPAL_COVERAGE_FLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_cflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_cflags"; then :
wrapper_extra_cflags=$arg
else
wrapper_extra_cflags="$wrapper_extra_cflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OPAL_COVERAGE_FLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_ldflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_ldflags"; then :
wrapper_extra_ldflags=$arg
else
wrapper_extra_ldflags="$wrapper_extra_ldflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# 1 is the variable name to be uniq-ized
opal_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_count
# 1 is the variable name to be uniq-ized
opal_name=LDFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${LDFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_count
{ $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
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" && test "$enable_debug_symbols" != "no" ; then
CFLAGS="$CFLAGS -g"
# 1 is the variable name to be uniq-ized
opal_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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.
OPAL_CFLAGS_BEFORE_PICKY="$CFLAGS"
if test $WANT_PICKY_COMPILER -eq 1; then
CFLAGS_orig=$CFLAGS
add=
# These flags are likely GCC-specific (or, more specifically,
# we don't have general tests for each one, and we know they
# work with all versions of GCC that we have used throughout
# the years, so we'll keep them limited just to GCC).
if test "$opal_c_vendor" = "gnu" ; then
add="$add -Wall -Wundef -Wno-long-long -Wsign-compare"
add="$add -Wmissing-prototypes -Wstrict-prototypes"
add="$add -Wcomment -pedantic"
fi
# see if -Wno-long-double works...
# 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_orig $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 ${opal_cv_cc_wno_long_double+:} false; 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 :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
long double test;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
opal_cv_cc_wno_long_double="yes"
if test -s conftest.err ; then
for i in unknown invalid ignor unrecognized 'not supported'; do
$GREP -iq $i conftest.err
if test "$?" = "0" ; then
opal_cv_cc_wno_long_double="no"
break;
fi
done
fi
else
opal_cv_cc_wno_long_double="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
opal_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: $opal_cv_cc_wno_long_double" >&5
$as_echo "$opal_cv_cc_wno_long_double" >&6; }
if test "$opal_cv_cc_wno_long_double" = "yes" ; then
add="$add -Wno-long-double"
fi
# Per above, we know that this flag works with GCC / haven't
# really tested it elsewhere.
if test "$opal_c_vendor" = "gnu" ; then
add="$add -Werror-implicit-function-declaration "
fi
CFLAGS="$CFLAGS_orig $add"
# 1 is the variable name to be uniq-ized
opal_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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"
# Note: Some versions of clang (at least >= 3.5 -- perhaps
# older versions, too?) will *warn* about -finline-functions,
# but still allow it. This is very annoying, so check for
# that warning, too. The clang warning looks like this:
# clang: warning: optimization flag '-finline-functions' is not supported
# clang: warning: argument unused during compilation: '-finline-functions'
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 ${opal_cv_cc_finline_functions+:} false; 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_cc_finline_functions="yes"
if test -s conftest.err ; then
for i in unused 'not supported' ; do
if $GREP -iq "$i" conftest.err; then
opal_cv_cc_finline_functions="no"
break;
fi
done
fi
else
opal_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: $opal_cv_cc_finline_functions" >&5
$as_echo "$opal_cv_cc_finline_functions" >&6; }
if test "$opal_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 ${opal_cv_cc_fno_strict_aliasing+:} false; 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_cc_fno_strict_aliasing="yes"
else
opal_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: $opal_cv_cc_fno_strict_aliasing" >&5
$as_echo "$opal_cv_cc_fno_strict_aliasing" >&6; }
if test "$opal_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
opal_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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 "$opal_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 ${opal_cv_cc_restrict_cflags+:} false; 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_cc_restrict_cflags="yes"
else
opal_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: $opal_cv_cc_restrict_cflags" >&5
$as_echo "$opal_cv_cc_restrict_cflags" >&6; }
if test "$opal_cv_cc_restrict_cflags" = "yes" ; then
add=" $RESTRICT_CFLAGS"
fi
CFLAGS="${CFLAGS_orig}${add}"
# 1 is the variable name to be uniq-ized
opal_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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 ${opal_cv_cc_supports___builtin_expect+:} false; 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 :
opal_cv_cc_supports___builtin_expect="yes"
else
opal_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: $opal_cv_cc_supports___builtin_expect" >&5
$as_echo "$opal_cv_cc_supports___builtin_expect" >&6; }
if test "$opal_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 ${opal_cv_cc_supports___builtin_prefetch+:} false; 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 :
opal_cv_cc_supports___builtin_prefetch="yes"
else
opal_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: $opal_cv_cc_supports___builtin_prefetch" >&5
$as_echo "$opal_cv_cc_supports___builtin_prefetch" >&6; }
if test "$opal_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
# see if the C compiler supports __builtin_clz
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_clz" >&5
$as_echo_n "checking if $CC supports __builtin_clz... " >&6; }
if ${opal_cv_cc_supports___builtin_clz+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
int value = 0xffff; /* we know we have 16 bits set */
if ((8*sizeof(int)-16) != __builtin_clz(value)) return 0;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
opal_cv_cc_supports___builtin_clz="yes"
else
opal_cv_cc_supports___builtin_clz="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: $opal_cv_cc_supports___builtin_clz" >&5
$as_echo "$opal_cv_cc_supports___builtin_clz" >&6; }
if test "$opal_cv_cc_supports___builtin_clz" = "yes" ; then
have_cc_builtin_clz=1
else
have_cc_builtin_clz=0
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_C_HAVE_BUILTIN_CLZ $have_cc_builtin_clz
_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=""$OPAL_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
OPAL_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"
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# 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 "$opal_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
opal_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 opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:20650: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_ident_happy=1
opal_message="#pragma ident"
else
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:20693: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_ident_happy=1
opal_message="#ident"
else
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:20736: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:20758: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:20786: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:20824: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:20846: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:20897: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:20919: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:20956: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:20994: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_ident_happy=1
opal_message="#ident"
else
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21037: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:21059: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:21087: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21125: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:21147: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21198: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:21220: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21280: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_ident_happy=1
opal_message="#ident"
else
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21323: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:21345: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:21373: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21411: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:21433: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CC"
eval opal_flags="\$CFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.c <&5
$opal_compiler $opal_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21484: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:21506: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" && test -f "conftest.c"; then
cat conftest.c >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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: $opal_message" >&5
$as_echo "$opal_message" >&6; }
unset opal_pragma_ident_happy opal_ident_happy opal_static_const_char_happy opal_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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_INT128_T 1
_ACEOF
fi
ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
if test "x$ac_cv_type___int128" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE___INT128 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" = xyes; 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" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF
fi
ac_fn_c_check_type "$LINENO" "__float128" "ac_cv_type___float128" "$ac_includes_default"
if test "x$ac_cv_type___float128" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE___FLOAT128 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" = xyes; 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.
for ac_header in complex.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
if test "x$ac_cv_header_complex_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_COMPLEX_H 1
_ACEOF
fi
done
ac_fn_c_check_type "$LINENO" "float _Complex" "ac_cv_type_float__Complex" "$ac_includes_default"
if test "x$ac_cv_type_float__Complex" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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" = xyes; 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 _Bool" >&5
$as_echo_n "checking size of _Bool... " >&6; }
if ${ac_cv_sizeof__Bool+:} false; 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_error 77 "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
# 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 ${ac_cv_sizeof_char+:} false; 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_error 77 "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 ${ac_cv_sizeof_short+:} false; 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_error 77 "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 ${ac_cv_sizeof_int+:} false; 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_error 77 "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 ${ac_cv_sizeof_long+:} false; 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_error 77 "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 ${ac_cv_sizeof_long_long+:} false; 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_error 77 "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 ${ac_cv_sizeof_float+:} false; 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_error 77 "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 ${ac_cv_sizeof_double+:} false; 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_error 77 "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 ${ac_cv_sizeof_long_double+:} false; 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_error 77 "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
if test "$ac_cv_type___float128" = 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 __float128" >&5
$as_echo_n "checking size of __float128... " >&6; }
if ${ac_cv_sizeof___float128+:} false; then :
$as_echo_n "(cached) " >&6
else
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__float128))" "ac_cv_sizeof___float128" "$ac_includes_default"; then :
else
if test "$ac_cv_type___float128" = 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 77 "cannot compute sizeof (__float128)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof___float128=0
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___float128" >&5
$as_echo "$ac_cv_sizeof___float128" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF___FLOAT128 $ac_cv_sizeof___float128
_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 ${ac_cv_sizeof_float__Complex+:} false; 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_error 77 "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 ${ac_cv_sizeof_double__Complex+:} false; 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_error 77 "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 ${ac_cv_sizeof_long_double__Complex+:} false; 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_error 77 "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 ${ac_cv_sizeof_void_p+:} false; 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_error 77 "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 ${ac_cv_sizeof_size_t+:} false; 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_error 77 "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 ${ac_cv_sizeof_ssize_t+:} false; 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_error 77 "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 ${ac_cv_sizeof_ptrdiff_t+:} false; 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_error 77 "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
else
as_fn_error $? "ptrdiff_t type is not available, this is required by C99 standard. Cannot continue" "$LINENO" 5
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 ${ac_cv_sizeof_wchar_t+:} false; 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_error 77 "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
# 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 ${ac_cv_sizeof_pid_t+:} false; 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_error 77 "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
# Check sizes of atomic types so we can define fixed-width types in OPAL
# 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 atomic_short" >&5
$as_echo_n "checking size of atomic_short... " >&6; }
if ${ac_cv_sizeof_atomic_short+:} false; then :
$as_echo_n "(cached) " >&6
else
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (atomic_short))" "ac_cv_sizeof_atomic_short" "#include
"; then :
else
if test "$ac_cv_type_atomic_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_error 77 "cannot compute sizeof (atomic_short)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_atomic_short=0
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_atomic_short" >&5
$as_echo "$ac_cv_sizeof_atomic_short" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_ATOMIC_SHORT $ac_cv_sizeof_atomic_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 atomic_int" >&5
$as_echo_n "checking size of atomic_int... " >&6; }
if ${ac_cv_sizeof_atomic_int+:} false; then :
$as_echo_n "(cached) " >&6
else
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (atomic_int))" "ac_cv_sizeof_atomic_int" "#include
"; then :
else
if test "$ac_cv_type_atomic_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_error 77 "cannot compute sizeof (atomic_int)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_atomic_int=0
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_atomic_int" >&5
$as_echo "$ac_cv_sizeof_atomic_int" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_ATOMIC_INT $ac_cv_sizeof_atomic_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 atomic_long" >&5
$as_echo_n "checking size of atomic_long... " >&6; }
if ${ac_cv_sizeof_atomic_long+:} false; then :
$as_echo_n "(cached) " >&6
else
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (atomic_long))" "ac_cv_sizeof_atomic_long" "#include
"; then :
else
if test "$ac_cv_type_atomic_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_error 77 "cannot compute sizeof (atomic_long)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_atomic_long=0
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_atomic_long" >&5
$as_echo "$ac_cv_sizeof_atomic_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_ATOMIC_LONG $ac_cv_sizeof_atomic_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 atomic_llong" >&5
$as_echo_n "checking size of atomic_llong... " >&6; }
if ${ac_cv_sizeof_atomic_llong+:} false; then :
$as_echo_n "(cached) " >&6
else
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (atomic_llong))" "ac_cv_sizeof_atomic_llong" "#include
"; then :
else
if test "$ac_cv_type_atomic_llong" = 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 77 "cannot compute sizeof (atomic_llong)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_atomic_llong=0
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_atomic_llong" >&5
$as_echo "$ac_cv_sizeof_atomic_llong" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_ATOMIC_LLONG $ac_cv_sizeof_atomic_llong
_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 ${opal_cv_c_align_bool+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_bool" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_bool" >&5
$as_echo "$opal_cv_c_align_bool" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_BOOL $opal_cv_c_align_bool
_ACEOF
eval "OPAL_ALIGNMENT_BOOL=$opal_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 ${opal_cv_c_align_int8_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_int8_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int8_t y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_int8_t" >&5
$as_echo "$opal_cv_c_align_int8_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT8 $opal_cv_c_align_int8_t
_ACEOF
eval "OPAL_ALIGNMENT_INT8=$opal_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 ${opal_cv_c_align_int16_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_int16_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int16_t y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_int16_t" >&5
$as_echo "$opal_cv_c_align_int16_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT16 $opal_cv_c_align_int16_t
_ACEOF
eval "OPAL_ALIGNMENT_INT16=$opal_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 ${opal_cv_c_align_int32_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_int32_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int32_t y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_int32_t" >&5
$as_echo "$opal_cv_c_align_int32_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT32 $opal_cv_c_align_int32_t
_ACEOF
eval "OPAL_ALIGNMENT_INT32=$opal_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 ${opal_cv_c_align_int64_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_int64_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int64_t y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_int64_t" >&5
$as_echo "$opal_cv_c_align_int64_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT64 $opal_cv_c_align_int64_t
_ACEOF
eval "OPAL_ALIGNMENT_INT64=$opal_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 ${opal_cv_c_align_int128_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_int128_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int128_t y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_int128_t" >&5
$as_echo "$opal_cv_c_align_int128_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT128 $opal_cv_c_align_int128_t
_ACEOF
eval "OPAL_ALIGNMENT_INT128=$opal_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 ${opal_cv_c_align_char+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_char" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_char" >&5
$as_echo "$opal_cv_c_align_char" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_CHAR $opal_cv_c_align_char
_ACEOF
eval "OPAL_ALIGNMENT_CHAR=$opal_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 ${opal_cv_c_align_short+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_short" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_short" >&5
$as_echo "$opal_cv_c_align_short" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_SHORT $opal_cv_c_align_short
_ACEOF
eval "OPAL_ALIGNMENT_SHORT=$opal_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 ${opal_cv_c_align_wchar_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_wchar_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_wchar_t" >&5
$as_echo "$opal_cv_c_align_wchar_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_WCHAR $opal_cv_c_align_wchar_t
_ACEOF
eval "OPAL_ALIGNMENT_WCHAR=$opal_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 ${opal_cv_c_align_int+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_int" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_int" >&5
$as_echo "$opal_cv_c_align_int" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_INT $opal_cv_c_align_int
_ACEOF
eval "OPAL_ALIGNMENT_INT=$opal_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 ${opal_cv_c_align_long+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_long" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_long" >&5
$as_echo "$opal_cv_c_align_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG $opal_cv_c_align_long
_ACEOF
eval "OPAL_ALIGNMENT_LONG=$opal_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 ${opal_cv_c_align_long_long+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_long_long" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_long_long" >&5
$as_echo "$opal_cv_c_align_long_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG_LONG $opal_cv_c_align_long_long
_ACEOF
eval "OPAL_ALIGNMENT_LONG_LONG=$opal_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 ${opal_cv_c_align_float+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_float" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_float" >&5
$as_echo "$opal_cv_c_align_float" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_FLOAT $opal_cv_c_align_float
_ACEOF
eval "OPAL_ALIGNMENT_FLOAT=$opal_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 ${opal_cv_c_align_double+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_double" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_double" >&5
$as_echo "$opal_cv_c_align_double" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_DOUBLE $opal_cv_c_align_double
_ACEOF
eval "OPAL_ALIGNMENT_DOUBLE=$opal_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 ${opal_cv_c_align_long_double+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_long_double" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_long_double" >&5
$as_echo "$opal_cv_c_align_long_double" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG_DOUBLE $opal_cv_c_align_long_double
_ACEOF
eval "OPAL_ALIGNMENT_LONG_DOUBLE=$opal_cv_c_align_long_double"
rm -rf conftest*
fi
if test "$ac_cv_type___float128" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of __float128" >&5
$as_echo_n "checking alignment of __float128... " >&6; }
if ${opal_cv_c_align___float128+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align___float128" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; __float128 y; } opal__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
#include
int
main ()
{
struct foo { char c; __float128 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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_cv_c_align___float128=`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: $opal_cv_c_align___float128" >&5
$as_echo "$opal_cv_c_align___float128" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT___FLOAT128 $opal_cv_c_align___float128
_ACEOF
eval "OPAL_ALIGNMENT___FLOAT128=$opal_cv_c_align___float128"
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 ${opal_cv_c_align_float__Complex+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_float__Complex" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float _Complex y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_float__Complex" >&5
$as_echo "$opal_cv_c_align_float__Complex" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_FLOAT_COMPLEX $opal_cv_c_align_float__Complex
_ACEOF
eval "OPAL_ALIGNMENT_FLOAT_COMPLEX=$opal_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 ${opal_cv_c_align_double__Complex+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_double__Complex" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double _Complex y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_double__Complex" >&5
$as_echo "$opal_cv_c_align_double__Complex" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_DOUBLE_COMPLEX $opal_cv_c_align_double__Complex
_ACEOF
eval "OPAL_ALIGNMENT_DOUBLE_COMPLEX=$opal_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 ${opal_cv_c_align_long_double__Complex+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_long_double__Complex" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double _Complex y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_long_double__Complex" >&5
$as_echo "$opal_cv_c_align_long_double__Complex" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_LONG_DOUBLE_COMPLEX $opal_cv_c_align_long_double__Complex
_ACEOF
eval "OPAL_ALIGNMENT_LONG_DOUBLE_COMPLEX=$opal_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 ${opal_cv_c_align_void_p+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_void_p" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_void_p" >&5
$as_echo "$opal_cv_c_align_void_p" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_VOID_P $opal_cv_c_align_void_p
_ACEOF
eval "OPAL_ALIGNMENT_VOID_P=$opal_cv_c_align_void_p"
rm -rf conftest*
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
$as_echo_n "checking alignment of size_t... " >&6; }
if ${opal_cv_c_align_size_t+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_size_t" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; size_t y; } opal__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
#include
int
main ()
{
struct foo { char c; size_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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
opal_cv_c_align_size_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: $opal_cv_c_align_size_t" >&5
$as_echo "$opal_cv_c_align_size_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_SIZE_T $opal_cv_c_align_size_t
_ACEOF
eval "OPAL_ALIGNMENT_SIZE_T=$opal_cv_c_align_size_t"
rm -rf conftest*
#
# Check for other compiler characteristics
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for weak symbol support" >&5
$as_echo_n "checking for weak symbol support... " >&6; }
if ${opal_cv_c_weak_symbols+:} false; 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 < conftest_weak.c < conftest.c <&5
$CC $CFLAGS -c conftest_weak.c 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:24249: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:24259: $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
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:24266: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
opal_c_weak_symbols_happy=1
else
unset opal_status
opal_c_weak_symbols_happy=0
fi
else
unset opal_status
opal_c_weak_symbols_happy=0
fi
if test "$opal_c_weak_symbols_happy" = "1"; then :
opal_cv_c_weak_symbols="yes"
else
opal_cv_c_weak_symbols="no"
fi
unset opal_c_weak_symbols_happy
rm -f conftest_weak.h conftest_weak.c conftest.c conftest
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_c_weak_symbols" >&5
$as_echo "$opal_cv_c_weak_symbols" >&6; }
if test "$opal_cv_c_weak_symbols" = "yes"; then :
OPAL_C_HAVE_WEAK_SYMBOLS=1
else
OPAL_C_HAVE_WEAK_SYMBOLS=0
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro weak symbol support" >&5
$as_echo_n "checking for macro weak symbol support... " >&6; }
if ${opal_cv_c_macro_weak_symbols+:} false; 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 < conftest_weak.c < conftest.c <&5
$CC $CFLAGS -c conftest_weak.c 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:24346: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:24356: $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
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:24363: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
opal_c_macro_weak_symbols_happy=1
else
unset opal_status
opal_c_macro_weak_symbols_happy=0
fi
else
unset opal_status
opal_c_macro_weak_symbols_happy=0
fi
if test "$opal_c_macro_weak_symbols_happy" = "1"; then :
opal_cv_c_macro_weak_symbols="yes"
else
opal_cv_c_macro_weak_symbols="no"
fi
unset opal_c_macro_weak_symbols_happy
rm -f conftest_weak.h conftest_weak.c conftest.c conftest
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_c_macro_weak_symbols" >&5
$as_echo "$opal_cv_c_macro_weak_symbols" >&6; }
if test "$opal_cv_c_macro_weak_symbols" = "yes"; then :
OPAL_C_HAVE_MACRO_WEAK_SYMBOLS=1
else
OPAL_C_HAVE_MACRO_WEAK_SYMBOLS=0
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 :
opal_ac_icc_varargs=1
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include
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 :
opal_ac_icc_varargs=`test -f conftestval`
else
opal_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 "$opal_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 "$OPAL_C_HAVE_WEAK_SYMBOLS" = "1"; then
OMPI_PROFILING_COMPILE_SEPARATELY=0
else
OMPI_PROFILING_COMPILE_SEPARATELY=1
fi
# Check if we support the offsetof compiler directive
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in have_offsetof_msg; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"have_offsetof_msg\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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
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
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
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
##################################
# C++ compiler characteristics
##################################
# We don't need C++ unless we're building Open MPI; ORTE and OPAL do
# not use C++ at all. The OPAL macro name appears to be a bit of a
# misnomer; I'm not sure why it was split into a second macro and put
# into OPAL...? All it does is setup the C++ compiler (the OMPI macro
# sets up the C++ MPI bindings, etc.). Perhaps it was moved to OPAL
# just on the rationale that all compiler setup should be done in
# OPAL...? Shrug.
opal_show_subtitle "C++ compiler and preprocessor"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cxxflags_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cxxflags_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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 ${ac_cv_prog_CXX+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CXX+:} false; 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 as_fn_executable_p "$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 ${ac_cv_cxx_compiler_gnu+:} false; 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 ${ac_cv_prog_cxx_g+:} false; 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 ${am_cv_CXX_dependencies_compiler_type+:} false; 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".
rm -rf conftest.dir
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 10 /bin/sh.
echo '/* dummy */' > 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
;;
msvc7 | msvc7msys | 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 ${ac_cv_prog_CXXCPP+:} false; 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 to if __STDC__ is defined, since
# 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
#else
# include
#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.i 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
_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.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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 to if __STDC__ is defined, since
# 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
#else
# include
#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.i 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
_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.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_cxx_compiler_works; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_cxx_compiler_works\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog opal_file opal_dir opal_sentinel; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog opal_file opal_dir opal_sentinel\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog=$opal_cxx_argv0
IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for opal_dir in $PATH; do
if test -x "$opal_dir/$opal_prog"; then
OPAL_CXX_ABSOLUTE="$opal_dir/$opal_prog"
break
fi
done
IFS=$IFS_SAVE
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_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
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_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 ${opal_cv_cxx_compiler_vendor+:} false; 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
opal_check_compiler_vendor_result="unknown"
# GNU is probably the most common, so check that one as soon as
# possible. Intel and PGI18 pretends to be GNU, so need to check Intel
# and PGI before checking for GNU.
# Intel
if test "$opal_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 :
opal_check_compiler_vendor_result="intel"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Portland Group
if test "$opal_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 :
opal_check_compiler_vendor_result="portland group"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Fujitsu
if test "$opal_check_compiler_vendor_result" = "unknown"; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if !( defined(__FUJITSU) )
#error "condition defined(__FUJITSU) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_check_compiler_vendor_result="fujitsu"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# IBM XL C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="ibm"
xlc_major_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 1`
xlc_minor_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 2`
if (test "$xlc_major_version" -lt "13" ) || (test "$xlc_major_version" -eq "13" && test "$xlc_minor_version" -lt "1" ); then :
as_fn_error $? "\"XL Compiler versions less than 13.1 not supported. Detected $xlc_major_version.$xlc_minor_version\"" "$LINENO" 5
fi
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 :
opal_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
# GNU
if test "$opal_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 :
opal_check_compiler_vendor_result="gnu"
# We do not support gccfss as a compiler so die if
# someone tries to use said compiler. gccfss (gcc
# for SPARC Systems) is a compiler that is no longer
# supported by Oracle and it has some major flaws
# that prevents it from actually compiling OMPI code.
# So if we detect it we automatically bail.
if ($CC --version | grep gccfss) >/dev/null 2>&1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gccfss" >&5
$as_echo "gccfss" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected gccfss being used to compile Open MPI." >&5
$as_echo "$as_me: WARNING: Detected gccfss being used to compile Open MPI." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Because of several issues Open MPI does not support" >&5
$as_echo "$as_me: WARNING: Because of several issues Open MPI does not support" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the gccfss compiler. Please use a different compiler." >&5
$as_echo "$as_me: WARNING: the gccfss compiler. Please use a different compiler." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not think you used gccfss you may want to" >&5
$as_echo "$as_me: WARNING: If you did not think you used gccfss you may want to" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check to see if the compiler you think you used is" >&5
$as_echo "$as_me: WARNING: check to see if the compiler you think you used is" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: actually a link to gccfss." >&5
$as_echo "$as_me: WARNING: actually a link to gccfss." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland Turbo C
if test "$opal_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 :
opal_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland C++
if test "$opal_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 :
opal_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Comeau C++
if test "$opal_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 :
opal_check_compiler_vendor_result="comeau"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Compaq C/C++
if test "$opal_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 :
opal_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 :
opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="cray"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Diab C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="diab"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Digital Mars
if test "$opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="hp"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# KAI C++ (rest in peace)
if test "$opal_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 :
opal_check_compiler_vendor_result="kai"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# LCC
if test "$opal_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 :
opal_check_compiler_vendor_result="lcc"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MetaWare High C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="metaware high"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Metrowerks Codewarrior
if test "$opal_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 :
opal_check_compiler_vendor_result="metrowerks"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MIPSpro (SGI)
if test "$opal_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 :
opal_check_compiler_vendor_result="sgi"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MPW C++
if test "$opal_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 :
opal_check_compiler_vendor_result="mpw"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Microsoft
if test "$opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="norcroft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Pelles C
if test "$opal_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 :
opal_check_compiler_vendor_result="pelles"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# SAS/C
if test "$opal_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 :
opal_check_compiler_vendor_result="sas"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Sun Workshop C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="sun"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# TenDRA C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="tendra"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Tiny C
if test "$opal_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 :
opal_check_compiler_vendor_result="tiny"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# USL C
if test "$opal_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 :
opal_check_compiler_vendor_result="usl"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Watcom C++
if test "$opal_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 :
opal_check_compiler_vendor_result="watcom"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
opal_cv_cxx_compiler_vendor="$opal_check_compiler_vendor_result"
unset opal_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: $opal_cv_cxx_compiler_vendor" >&5
$as_echo "$opal_cv_cxx_compiler_vendor" >&6; }
opal_cxx_vendor="$opal_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"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OPAL_COVERAGE_FLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_cxxflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_cxxflags"; then :
wrapper_extra_cxxflags=$arg
else
wrapper_extra_cxxflags="$wrapper_extra_cxxflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
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" && test "$enable_debug_symbols" != "no" ; then
CXXFLAGS="$CXXFLAGS -g"
# 1 is the variable name to be uniq-ized
opal_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CXXFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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 && test "$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 ${opal_cv_cxx_wno_long_double+:} false; 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 :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
long double test;
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_cv_cxx_wno_long_double="yes"
if test -s conftest.err ; then
for i in unknown invalid ignor unrecognized 'not supported'; do
$GREP -iq $i conftest.err
if test "$?" = "0" ; then
opal_cv_cxx_wno_long_double="no"
break;
fi
done
fi
else
opal_cv_cxx_wno_long_double="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
opal_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CXXFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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=
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 -finline-functions" >&5
$as_echo_n "checking if $CXX supports -finline-functions... " >&6; }
if ${opal_cv_cxx_finline_functions+:} false; 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_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; }
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_finline_functions" = "yes" ; then
add=" -finline-functions"
fi
CXXFLAGS="$CXXFLAGS_orig$add"
# 1 is the variable name to be uniq-ized
opal_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CXXFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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 ${ompi_cv_c_link_Cpp+:} false; 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:26495: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26502: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_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 opal_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" = xyes; then :
else
cat <&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 ${ac_cv_sizeof_bool+:} false; 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_error 77 "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 ${opal_cv_c_align_bool+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_bool" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_bool" >&5
$as_echo "$opal_cv_c_align_bool" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_CXX_BOOL $opal_cv_c_align_bool
_ACEOF
eval "OPAL_ALIGNMENT_CXX_BOOL=$opal_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
opal_show_subtitle "C++ compiler and preprocessor"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_cxxflags_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_cxxflags_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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 ${ac_cv_prog_CXX+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CXX+:} false; 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 as_fn_executable_p "$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 ${ac_cv_cxx_compiler_gnu+:} false; 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 ${ac_cv_prog_cxx_g+:} false; 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 ${am_cv_CXX_dependencies_compiler_type+:} false; 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".
rm -rf conftest.dir
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 10 /bin/sh.
echo '/* dummy */' > 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
;;
msvc7 | msvc7msys | 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 ${ac_cv_prog_CXXCPP+:} false; 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 to if __STDC__ is defined, since
# 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
#else
# include
#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.i 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
_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.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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 to if __STDC__ is defined, since
# 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
#else
# include
#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.i 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
_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.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_cxx_compiler_works; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_cxx_compiler_works\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog opal_file opal_dir opal_sentinel; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog opal_file opal_dir opal_sentinel\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog=$ompi_cxx_argv0
IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for opal_dir in $PATH; do
if test -x "$opal_dir/$opal_prog"; then
OMPI_CXX_ABSOLUTE="$opal_dir/$opal_prog"
break
fi
done
IFS=$IFS_SAVE
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_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 ${opal_cv_Cpp_works+:} false; 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
int
main ()
{
std::string foo = "Hello, world"
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
opal_cv_Cpp_works="links (cross compiling)"
else
opal_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
int
main ()
{
std::string foo = "Hello, world"
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
opal_cv_Cpp_works="yes"
else
opal_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: $opal_cv_Cpp_works" >&5
$as_echo "$opal_cv_Cpp_works" >&6; }
if test "x$opal_cv_Cpp_works" = xno; then :
cat <&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 the Open MPI build 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" && test "$WANT_MPI_CXX_SUPPORT" = "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"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OMPI_COVERAGE_FLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_cxxflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_cxxflags"; then :
wrapper_extra_cxxflags=$arg
else
wrapper_extra_cxxflags="$wrapper_extra_cxxflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
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" && test "$enable_debug_symbols" != "no" ; then
CXXFLAGS="$CXXFLAGS -g"
# 1 is the variable name to be uniq-ized
opal_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CXXFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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 && test "$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 ${ompi_cv_cxx_wno_long_double+:} false; 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 :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
long double test;
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ompi_cv_cxx_wno_long_double="yes"
if test -s conftest.err ; then
for i in invalid ignor unrecognized ; do
$GREP -iq $i conftest.err
if test "$?" = "0" ; then
ompi_cv_cxx_wno_long_double="no",
break;
fi
done
fi
else
ompi_cv_cxx_wno_long_double="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
opal_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CXXFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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=
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 -finline-functions" >&5
$as_echo_n "checking if $CXX supports -finline-functions... " >&6; }
if ${ompi_cv_cxx_finline_functions+:} false; 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_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; }
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_finline_functions" = "yes" ; then
add=" -finline-functions"
fi
CXXFLAGS="$CXXFLAGS_orig$add"
# 1 is the variable name to be uniq-ized
opal_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
opal_count=0
for val in ${CXXFLAGS}; do
opal_done=0
opal_i=1
opal_found=0
# Loop over every token we've seen so far
opal_done="`expr $opal_i \> $opal_count`"
while test "$opal_found" = "0" && test "$opal_done" = "0"; do
# Have we seen this token already? Prefix the comparison
# with "x" so that "-Lfoo" values won't be cause an error.
opal_eval="expr x$val = x\$opal_array_$opal_i"
opal_found=`eval $opal_eval`
# Check the ending condition
opal_done="`expr $opal_i \>= $opal_count`"
# Increment the counter
opal_i="`expr $opal_i + 1`"
done
# Check for special cases where we do want to allow repeated
# arguments (per
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
# and
# https://github.com/open-mpi/ompi/issues/324).
case $val in
-Xclang)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
esac
# If we didn't find the token, add it to the "array"
if test "$opal_found" = "0"; then
opal_eval="opal_array_$opal_i=$val"
eval $opal_eval
opal_count="`expr $opal_count + 1`"
else
opal_i="`expr $opal_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
opal_i=1
opal_done="`expr $opal_i \> $opal_count`"
opal_newval=
while test "$opal_done" = "0"; do
opal_eval="opal_newval=\"$opal_newval \$opal_array_$opal_i\""
eval $opal_eval
opal_eval="unset opal_array_$opal_i"
eval $opal_eval
opal_done="`expr $opal_i \>= $opal_count`"
opal_i="`expr $opal_i + 1`"
done
# Done; do the assignment
opal_newval="`echo $opal_newval`"
opal_eval="$opal_name=\"$opal_newval\""
eval $opal_eval
# Clean up
unset opal_name opal_i opal_done opal_newval opal_eval opal_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 ${ompi_cv_c_link_Cpp+:} false; 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:28171: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28178: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_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 opal_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" = xyes; then :
else
cat <&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 ${ac_cv_sizeof_bool+:} false; 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_error 77 "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 ${opal_cv_c_align_bool+:} false; 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 (opal__type_alignof_, y)" "opal_cv_c_align_bool" "$ac_includes_default
#include
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } opal__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
#include
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);
free(p);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
opal_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: $opal_cv_c_align_bool" >&5
$as_echo "$opal_cv_c_align_bool" >&6; }
cat >>confdefs.h <<_ACEOF
#define OPAL_ALIGNMENT_CXX_BOOL $opal_cv_c_align_bool
_ACEOF
eval "OPAL_ALIGNMENT_CXX_BOOL=$opal_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 ${opal_cv_cxx_compiler_vendor+:} false; 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
opal_check_compiler_vendor_result="unknown"
# GNU is probably the most common, so check that one as soon as
# possible. Intel and PGI18 pretends to be GNU, so need to check Intel
# and PGI before checking for GNU.
# Intel
if test "$opal_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 :
opal_check_compiler_vendor_result="intel"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Portland Group
if test "$opal_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 :
opal_check_compiler_vendor_result="portland group"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Fujitsu
if test "$opal_check_compiler_vendor_result" = "unknown"; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if !( defined(__FUJITSU) )
#error "condition defined(__FUJITSU) not met"
choke me
#endif
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_check_compiler_vendor_result="fujitsu"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# IBM XL C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="ibm"
xlc_major_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 1`
xlc_minor_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 2`
if (test "$xlc_major_version" -lt "13" ) || (test "$xlc_major_version" -eq "13" && test "$xlc_minor_version" -lt "1" ); then :
as_fn_error $? "\"XL Compiler versions less than 13.1 not supported. Detected $xlc_major_version.$xlc_minor_version\"" "$LINENO" 5
fi
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 :
opal_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
# GNU
if test "$opal_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 :
opal_check_compiler_vendor_result="gnu"
# We do not support gccfss as a compiler so die if
# someone tries to use said compiler. gccfss (gcc
# for SPARC Systems) is a compiler that is no longer
# supported by Oracle and it has some major flaws
# that prevents it from actually compiling OMPI code.
# So if we detect it we automatically bail.
if ($CC --version | grep gccfss) >/dev/null 2>&1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gccfss" >&5
$as_echo "gccfss" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected gccfss being used to compile Open MPI." >&5
$as_echo "$as_me: WARNING: Detected gccfss being used to compile Open MPI." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Because of several issues Open MPI does not support" >&5
$as_echo "$as_me: WARNING: Because of several issues Open MPI does not support" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the gccfss compiler. Please use a different compiler." >&5
$as_echo "$as_me: WARNING: the gccfss compiler. Please use a different compiler." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not think you used gccfss you may want to" >&5
$as_echo "$as_me: WARNING: If you did not think you used gccfss you may want to" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check to see if the compiler you think you used is" >&5
$as_echo "$as_me: WARNING: check to see if the compiler you think you used is" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: actually a link to gccfss." >&5
$as_echo "$as_me: WARNING: actually a link to gccfss." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland Turbo C
if test "$opal_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 :
opal_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland C++
if test "$opal_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 :
opal_check_compiler_vendor_result="borland"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Comeau C++
if test "$opal_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 :
opal_check_compiler_vendor_result="comeau"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Compaq C/C++
if test "$opal_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 :
opal_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 :
opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="cray"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Diab C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="diab"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Digital Mars
if test "$opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="hp"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# KAI C++ (rest in peace)
if test "$opal_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 :
opal_check_compiler_vendor_result="kai"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# LCC
if test "$opal_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 :
opal_check_compiler_vendor_result="lcc"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MetaWare High C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="metaware high"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Metrowerks Codewarrior
if test "$opal_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 :
opal_check_compiler_vendor_result="metrowerks"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MIPSpro (SGI)
if test "$opal_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 :
opal_check_compiler_vendor_result="sgi"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MPW C++
if test "$opal_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 :
opal_check_compiler_vendor_result="mpw"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Microsoft
if test "$opal_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 :
opal_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 "$opal_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 :
opal_check_compiler_vendor_result="norcroft"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Pelles C
if test "$opal_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 :
opal_check_compiler_vendor_result="pelles"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# SAS/C
if test "$opal_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 :
opal_check_compiler_vendor_result="sas"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Sun Workshop C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="sun"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# TenDRA C/C++
if test "$opal_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 :
opal_check_compiler_vendor_result="tendra"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Tiny C
if test "$opal_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 :
opal_check_compiler_vendor_result="tiny"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# USL C
if test "$opal_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 :
opal_check_compiler_vendor_result="usl"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Watcom C++
if test "$opal_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 :
opal_check_compiler_vendor_result="watcom"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
opal_cv_cxx_compiler_vendor="$opal_check_compiler_vendor_result"
unset opal_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: $opal_cv_cxx_compiler_vendor" >&5
$as_echo "$opal_cv_cxx_compiler_vendor" >&6; }
ompi_cxx_vendor="$opal_cv_c_compiler_vendor"
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_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
#
# Dependencies: 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"
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OMPI_CXX_EXCEPTIONS_CXXFLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_cflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_cflags"; then :
wrapper_extra_cflags=$arg
else
wrapper_extra_cflags="$wrapper_extra_cflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OMPI_CXX_EXCEPTIONS_CXXFLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_cxxflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_cxxflags"; then :
wrapper_extra_cxxflags=$arg
else
wrapper_extra_cxxflags="$wrapper_extra_cxxflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in opal_tmp opal_append; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_tmp opal_append\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
for arg in $OMPI_CXX_EXCEPTIONS_CXXFLAGS; do
opal_tmp=`echo $arg | cut -c1-2`
opal_append=1
if test "$opal_tmp" = "-I" || test "$opal_tmp" = "-L" || test "$opal_tmp" = "-l"; then :
for val in ${wrapper_extra_fcflags}; do
if test "x$val" = "x$arg"; then :
opal_append=0
fi
done
fi
if test "$opal_append" = "1"; then :
if test -z "$wrapper_extra_fcflags"; then :
wrapper_extra_fcflags=$arg
else
wrapper_extra_fcflags="$wrapper_extra_fcflags $arg"
fi
fi
done
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
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 ${ompi_cv_cxx_template_repository+:} false; then :
$as_echo_n "(cached) " >&6
else
# Find the repository
mkdir conf_tmp_$$
cd conf_tmp_$$
cat > conftest.h <
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 < var1(6);
foo< foo > var2(var1);
}
EOF
cat > conftest1.C <
void
foo::member(int i)
{
i += 2;
}
int
main()
{
foo var1(6);
foo< foo > var2(var1);
some_other_function();
return 0;
}
EOF
ompi_template_failed=
echo configure:29704: $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:29708: here is the program that failed: >&5
cat conftest1.C >&5
echo configure:29710: here is conftest.h: >&5
cat conftest.h >&5
ompi_template_failed=1
else
echo configure:29714: $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:29718: here is the program that failed: >&5
cat conftest2.C >&5
echo configure:29720: here is conftest.h: >&5
cat conftest.h >&5
else
rm -rf conftest*
for ompi_file in `ls`
do
if test "$ompi_file" != "." && test "$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" || test "$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 opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29842: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_ident_happy=1
opal_message="#pragma ident"
else
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29885: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_ident_happy=1
opal_message="#ident"
else
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29928: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:29950: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:29978: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30016: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30038: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30089: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30111: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:30148: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30186: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_ident_happy=1
opal_message="#ident"
else
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30229: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30251: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:30279: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30317: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30339: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30390: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30412: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30472: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_ident_happy=1
opal_message="#ident"
else
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30515: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30537: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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:30565: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30603: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30625: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
eval opal_compiler="\$CXX"
eval opal_flags="\$CXXFLAGS"
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.cc <&5
$opal_compiler $opal_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1
opal_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30676: \$? = $opal_status" >&5
else
echo \$? = $opal_status >&5
fi
if test "$opal_status" = "0"; then
unset opal_status
if test -f conftest.${OBJEXT}; then :
opal_output="`strings -a conftest.${OBJEXT} | grep $opal_ident`"
grep $opal_ident conftest.${OBJEXT} 2>&1 1>/dev/null
opal_status=$?
if test "$opal_output" != "" || test "$opal_status" = "0"; then :
opal_pragma_comment_happy=1
opal_message="#pragma comment"
else
opal_static_const_char_happy=1
opal_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:30698: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.cc" && test -f "conftest.cc"; then
cat conftest.cc >&5
fi
opal_static_const_char_happy=1
opal_message="static const char"
opal_static_const_char_happy=1
opal_message="static const char"
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_status
rm -rf conftest.* conftest${EXEEXT}
fi
else
unset opal_status
fi
unset opal_compiler opal_flags opal_output opal_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: $opal_message" >&5
$as_echo "$opal_message" >&6; }
unset opal_pragma_ident_happy opal_ident_happy opal_static_const_char_happy opal_message
fi
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in have_cxx_builtin_expect have_cxx_builtin_prefetch; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"have_cxx_builtin_expect have_cxx_builtin_prefetch\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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 ${ompi_cv_cxx_supports___builtin_expect+:} false; 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_cxx_builtin_expect=1
else
have_cxx_builtin_expect=0
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 ${ompi_cv_cxx_supports___builtin_prefetch+:} false; 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_cxx_builtin_prefetch=1
else
have_cxx_builtin_prefetch=0
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
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in use_2d_const_cast; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"use_2d_const_cast\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_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 ${ompi_cv_cxx_supports_2d_const_cast+:} false; 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(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
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test "$WANT_MPI_CXX_SUPPORT" = 1; then
OMPI_BUILD_MPI_CXX_BINDINGS_TRUE=
OMPI_BUILD_MPI_CXX_BINDINGS_FALSE='#'
else
OMPI_BUILD_MPI_CXX_BINDINGS_TRUE='#'
OMPI_BUILD_MPI_CXX_BINDINGS_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_BUILD_CXX_BINDINGS $WANT_MPI_CXX_SUPPORT
_ACEOF
# Used in Makefile.ompi-rules
if test "$WANT_MPI_CXX_SUPPORT" = 1; then
MAN_PAGE_BUILD_MPI_CXX_BINDINGS_TRUE=
MAN_PAGE_BUILD_MPI_CXX_BINDINGS_FALSE='#'
else
MAN_PAGE_BUILD_MPI_CXX_BINDINGS_TRUE='#'
MAN_PAGE_BUILD_MPI_CXX_BINDINGS_FALSE=
fi
##################################
# Only after setting up both
# C and C++ check compiler attributes.
##################################
opal_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 ${opal_cv___attribute__+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
/* 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
/* 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__noinline=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
opal_cv___attribute__destructor=0
opal_cv___attribute__optnone=0
opal_cv___attribute__error=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 ${opal_cv___attribute__aligned+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__always_inline+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__cold+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__const+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__deprecated+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__deprecated_argument+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(error)" >&5
$as_echo_n "checking for __attribute__(error)... " >&6; }
if ${opal_cv___attribute__error+:} false; 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__ ((__error__("")));
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 opal_cv__attribute__var=0
#
opal_cv___attribute__error=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__error=0
break;
fi
done
fi
else
opal_cv___attribute__error=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
if test "$opal_cv___attribute__error" = "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__ ((__error__("")));
}
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_cv___attribute__error=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__error=0
break;
fi
done
fi
else
opal_cv___attribute__error=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__error" = "1" && test "" != "" ; 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__error=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 opal_cv__attribute__var=0
#
opal_cv___attribute__error=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__error=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__error" = "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 "$opal_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 ${opal_cv___attribute__format+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "
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 opal_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 "$opal_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 ${opal_cv___attribute__format_funcptr+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "
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 opal_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 ${opal_cv___attribute__hot+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__malloc+:} false; 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
#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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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
#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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__may_alias+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__no_instrument_function+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noinline)" >&5
$as_echo_n "checking for __attribute__(noinline)... " >&6; }
if ${opal_cv___attribute__noinline+:} false; 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__ ((__noinline__));
int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
static int bar(int arg1, int arg2) __attribute__ ((__noinline__));
static int bar(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 opal_cv__attribute__var=0
#
opal_cv___attribute__noinline=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__noinline=0
break;
fi
done
fi
else
opal_cv___attribute__noinline=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
if test "$opal_cv___attribute__noinline" = "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__ ((__noinline__));
int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
static int bar(int arg1, int arg2) __attribute__ ((__noinline__));
static int bar(int arg1, int arg2) { return arg1 * arg2 + arg1; }
}
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_cv___attribute__noinline=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__noinline=0
break;
fi
done
fi
else
opal_cv___attribute__noinline=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__noinline" = "1" && test "" != "" ; 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__noinline=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 opal_cv__attribute__var=0
#
opal_cv___attribute__noinline=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__noinline=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__noinline" = "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 "$opal_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 ${opal_cv___attribute__nonnull+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "
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 opal_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 ${opal_cv___attribute__noreturn+:} false; 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
#endif
#ifdef HAVE_STDLIB_H
# include
#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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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
#endif
#ifdef HAVE_STDLIB_H
# include
#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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__noreturn_funcptr+:} false; 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
#endif
#ifdef HAVE_STDLIB_H
# include
#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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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
#endif
#ifdef HAVE_STDLIB_H
# include
#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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__packed+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__pure+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 "$opal_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 ${opal_cv___attribute__sentinel+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "
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 opal_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 ${opal_cv___attribute__unused+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 ${opal_cv___attribute__visibility+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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 "$opal_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 ${opal_cv___attribute__warn_unused_result+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "
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 opal_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 ${opal_cv___attribute__weak_alias+:} false; 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 opal_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
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
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" && test "" != "" ; 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 opal_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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(destructor)" >&5
$as_echo_n "checking for __attribute__(destructor)... " >&6; }
if ${opal_cv___attribute__destructor+:} false; 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. */
void foo(void) __attribute__ ((__destructor__));
void foo(void) { return ; }
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 opal_cv__attribute__var=0
#
opal_cv___attribute__destructor=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__destructor=0
break;
fi
done
fi
else
opal_cv___attribute__destructor=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
if test "$opal_cv___attribute__destructor" = "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" {
void foo(void) __attribute__ ((__destructor__));
void foo(void) { return ; }
}
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_cv___attribute__destructor=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__destructor=0
break;
fi
done
fi
else
opal_cv___attribute__destructor=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__destructor" = "1" && test "" != "" ; 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__destructor=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 opal_cv__attribute__var=0
#
opal_cv___attribute__destructor=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__destructor=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__destructor" = "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__(optnone)" >&5
$as_echo_n "checking for __attribute__(optnone)... " >&6; }
if ${opal_cv___attribute__optnone+:} false; 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. */
void __attribute__ ((__optnone__)) foo(void);
void foo(void) { return ; }
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 opal_cv__attribute__var=0
#
opal_cv___attribute__optnone=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__optnone=0
break;
fi
done
fi
else
opal_cv___attribute__optnone=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
if test "$opal_cv___attribute__optnone" = "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" {
void __attribute__ ((__optnone__)) foo(void);
void foo(void) { return ; }
}
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_cv___attribute__optnone=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__optnone=0
break;
fi
done
fi
else
opal_cv___attribute__optnone=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__optnone" = "1" && test "" != "" ; 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__optnone=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 opal_cv__attribute__var=0
#
opal_cv___attribute__optnone=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__optnone=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__optnone" = "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__(extension)" >&5
$as_echo_n "checking for __attribute__(extension)... " >&6; }
if ${opal_cv___attribute__extension+:} false; 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 i = __extension__ 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 opal_cv__attribute__var=0
#
opal_cv___attribute__extension=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__extension=0
break;
fi
done
fi
else
opal_cv___attribute__extension=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Only test C++ if we're building Open MPI (i.e.,
# project_ompi). OPAL and ORTE do not use C++ at all, so
# let's not add a C++ compiler into their requirement list.
if test "$opal_cv___attribute__extension" = "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 i = __extension__ 3;
}
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
opal_cv___attribute__extension=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__extension=0
break;
fi
done
fi
else
opal_cv___attribute__extension=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__extension" = "1" && test "" != "" ; 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__extension=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 opal_cv__attribute__var=0
#
opal_cv___attribute__extension=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__extension=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__extension" = "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_NOINLINE $opal_cv___attribute__noinline
_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
cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_DESTRUCTOR $opal_cv___attribute__destructor
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_OPTNONE $opal_cv___attribute__optnone
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_EXTENSION $opal_cv___attribute__extension
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_ATTRIBUTE_ERROR $opal_cv___attribute__error
_ACEOF
lower=familyid
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
$as_echo_n "checking for compiler $lower... " >&6; }
if ${opal_cv_compiler_FAMILYID+:} false; then :
$as_echo_n "(cached) " >&6
else
CPPFLAGS_orig=$CPPFLAGS
CPPFLAGS="-I${OPAL_TOP_SRCDIR}/opal/include/opal $CPPFLAGS"
if test "$cross_compiling" = yes; then :
eval opal_cv_compiler_FAMILYID=0
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include "opal_portable_platform.h"
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
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 ${opal_cv_compiler_FAMILYNAME+:} false; then :
$as_echo_n "(cached) " >&6
else
CPPFLAGS_orig=$CPPFLAGS
CPPFLAGS="-I${OPAL_TOP_SRCDIR}/opal/include/opal $CPPFLAGS"
if test "$cross_compiling" = yes; then :
eval opal_cv_compiler_FAMILYNAME=UNKNOWN
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include "opal_portable_platform.h"
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
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 ${opal_cv_compiler_VERSION+:} false; then :
$as_echo_n "(cached) " >&6
else
CPPFLAGS_orig=$CPPFLAGS
CPPFLAGS="-I${OPAL_TOP_SRCDIR}/opal/include/opal $CPPFLAGS"
if test "$cross_compiling" = yes; then :
eval opal_cv_compiler_VERSION=0
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include "opal_portable_platform.h"
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
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 ${opal_cv_compiler_VERSION_STR+:} false; then :
$as_echo_n "(cached) " >&6
else
CPPFLAGS_orig=$CPPFLAGS
CPPFLAGS="-I${OPAL_TOP_SRCDIR}/opal/include/opal $CPPFLAGS"
if test "$cross_compiling" = yes; then :
eval opal_cv_compiler_VERSION_STR=UNKNOWN
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include "opal_portable_platform.h"
int main (int argc, char * argv[])
{
FILE * f;
f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf (f, "%s", 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
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
##################################
# Java MPI Binding request
##################################
# Only needed for OMPI
opal_show_subtitle "Java MPI bindings"
# Check whether --enable-mpi-java was given.
if test "${enable_mpi_java+set}" = set; then :
enableval=$enable_mpi_java;
fi
# Find the Java compiler and whatnot.
# It knows to do very little if $enable_mpi_java!="yes".
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_java_happy ompi_javah_happy; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_java_happy ompi_javah_happy\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
ompi_java_happy=no
ompi_javah_happy=no
# Check whether --with-jdk-dir was given.
if test "${with_jdk_dir+set}" = set; then :
withval=$with_jdk_dir;
fi
# Check whether --with-jdk-bindir was given.
if test "${with_jdk_bindir+set}" = set; then :
withval=$with_jdk_bindir;
fi
# Check whether --with-jdk-headers was given.
if test "${with_jdk_headers+set}" = set; then :
withval=$with_jdk_headers;
fi
# Only setup the compiler if we were requested to
if test "$enable_mpi_java" = "yes"; then :
# Is the private index set? If not, set it.
if test "x$opal_scope_index" = "x"; then
opal_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 opal_var in ompi_java_bad ompi_java_found ompi_java_dir ompi_java_jnih ompi_java_PATH_save ompi_java_CPPFLAGS_save; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"ompi_java_bad ompi_java_found ompi_java_dir ompi_java_jnih ompi_java_PATH_save ompi_java_CPPFLAGS_save\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
# Check for bozo case: ensure a directory was specified
if test "$with_jdk_dir" = "yes" || test "$with_jdk_dir" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must specify a directory name for --with-jdk-dir" >&5
$as_echo "$as_me: WARNING: Must specify a directory name for --with-jdk-dir" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
if test "$with_jdk_bindir" = "yes" || test "$with_jdk_bindir" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must specify a directory name for --with-jdk-bindir" >&5
$as_echo "$as_me: WARNING: Must specify a directory name for --with-jdk-bindir" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
if test "$with_jdk_headers" = "yes" || test "$with_jdk_headers" = "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must specify a directory name for --with-jdk-headers" >&5
$as_echo "$as_me: WARNING: Must specify a directory name for --with-jdk-headers" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
# Check for bozo case: either specify --with-jdk-dir or
# (--with-jdk-bindir, --with-jdk-headers) -- not both.
ompi_java_bad=0
if test -n "$with_jdk_dir" && \
(test -n "$with_jdk_bindir" || test -n "$with_jdk_headers"); then :
ompi_java_bad=1
fi
if (test -z "$with_jdk_bindir" && test -n "$with_jdk_headers") || \
(test -n "$with_jdk_bindir" && test -z "$with_jdk_headers"); then :
ompi_java_bad=1
fi
if test $ompi_java_bad -eq 1; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Either specify --with-jdk-dir or both of (--with-jdk_bindir, --with-jdk-headers) -- not both." >&5
$as_echo "$as_me: WARNING: Either specify --with-jdk-dir or both of (--with-jdk_bindir, --with-jdk-headers) -- not both." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
if test -n "$with_jdk_dir"; then :
with_jdk_bindir=$with_jdk_dir/bin
with_jdk_headers=$with_jdk_dir/include
fi
##################################################################
# with_jdk_dir can now be ignored; with_jdk_bindir and
# with_jdk_headers will be either empty or have valid values.
##################################################################
# Some java installations are in obscure places. So let's
# hard-code a few of the common ones so that users don't have to
# specify --with-java-=LONG_ANNOYING_DIRECTORY.
if test -z "$with_jdk_bindir"; then :
# OS X/macOS
ompi_java_found=0
# The following logic was deliberately decided upon in
# https://github.com/open-mpi/ompi/pull/5015 specifically
# to prevent this script and the rest of Open MPI's build
# system from getting confused by the somewhat unorthodox
# Java toolchain layout present on OS X/macOS systems,
# described in depth by
# https://github.com/open-mpi/ompi/pull/5015#issuecomment-379324639,
# and mishandling OS X/macOS Java toolchain path detection
# as a result.
if test -x /usr/libexec/java_home; then :
ompi_java_dir=`/usr/libexec/java_home`
else
ompi_java_dir=/System/Library/Frameworks/JavaVM.framework/Versions/Current
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java in OS X/macOS locations" >&5
$as_echo_n "checking for Java in OS X/macOS locations... " >&6; }
if test -d $ompi_java_dir; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($ompi_java_dir)" >&5
$as_echo "found ($ompi_java_dir)" >&6; }
ompi_java_found=1
if test -d "$ompi_java_dir/Headers" && test -d "$ompi_java_dir/Commands"; then
with_jdk_headers=$ompi_java_dir/Headers
with_jdk_bindir=$ompi_java_dir/Commands
elif test -d "$ompi_java_dir/include" && test -d "$ompi_java_dir/bin"; then
with_jdk_headers=$ompi_java_dir/include
with_jdk_bindir=$ompi_java_dir/bin
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No recognized OS X/macOS JDK directory structure found under $ompi_java_dir" >&5
$as_echo "$as_me: WARNING: No recognized OS X/macOS JDK directory structure found under $ompi_java_dir" >&2;}
ompi_java_found=0
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
if test "$ompi_java_found" = "0"; then
# Various Linux
if test -z "$JAVA_HOME"; then
ompi_java_dir='/usr/lib/jvm/java-*-openjdk-*/include/'
else
ompi_java_dir=$JAVA_HOME/include
fi
ompi_java_jnih=`ls $ompi_java_dir/jni.h 2>/dev/null | head -n 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java in Linux locations" >&5
$as_echo_n "checking for Java in Linux locations... " >&6; }
if test -r "$ompi_java_jnih"; then :
with_jdk_headers=`dirname $ompi_java_jnih`
# 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$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog opal_file opal_dir opal_sentinel; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog opal_file opal_dir opal_sentinel\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog=javac
IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for opal_dir in $PATH; do
if test -x "$opal_dir/$opal_prog"; then
with_jdk_bindir="$opal_dir/$opal_prog"
break
fi
done
IFS=$IFS_SAVE
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test -n "$with_jdk_bindir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($with_jdk_headers)" >&5
$as_echo "found ($with_jdk_headers)" >&6; }
ompi_java_found=1
with_jdk_bindir=`dirname $with_jdk_bindir`
else
with_jdk_headers=
fi
else
ompi_java_dir='/usr/lib/jvm/default-java/include/'
ompi_java_jnih=`ls $ompi_java_dir/jni.h 2>/dev/null | head -n 1`
if test -r "$ompi_java_jnih"; then :
with_jdk_headers=`dirname $ompi_java_jnih`
# 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$opal_scope_index" = "x"; then
opal_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 opal_var in opal_prog opal_file opal_dir opal_sentinel; do
opal_str="opal_str=\"\$$opal_var\""
eval $opal_str
if test "x$opal_str" != "x"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash at line $LINENO!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash at line $LINENO!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_PUSH called on \"$opal_var\"," >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$opal_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$opal_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.
opal_str="opal_scope_$opal_scope_index=\"opal_prog opal_file opal_dir opal_sentinel\""
eval $opal_str
unset opal_str
env | grep opal_scope
opal_scope_index=`expr $opal_scope_index + 1`
opal_prog=javac
IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for opal_dir in $PATH; do
if test -x "$opal_dir/$opal_prog"; then
with_jdk_bindir="$opal_dir/$opal_prog"
break
fi
done
IFS=$IFS_SAVE
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
if test -n "$with_jdk_bindir"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($with_jdk_headers)" >&5
$as_echo "found ($with_jdk_headers)" >&6; }
ompi_java_found=1
with_jdk_bindir=`dirname $with_jdk_bindir`
else
with_jdk_headers=
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
fi
fi
if test "$ompi_java_found" = "0"; then
# Solaris
ompi_java_dir=/usr/java
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java in Solaris locations" >&5
$as_echo_n "checking for Java in Solaris locations... " >&6; }
if test -d $ompi_java_dir && test -r "$ompi_java_dir/include/jni.h"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($ompi_java_dir)" >&5
$as_echo "found ($ompi_java_dir)" >&6; }
with_jdk_headers=$ompi_java_dir/include
with_jdk_bindir=$ompi_java_dir/bin
ompi_java_found=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
fi
else
ompi_java_found=1
fi
if test "$ompi_java_found" = "1"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-jdk-bindir value" >&5
$as_echo_n "checking --with-jdk-bindir value... " >&6; }
if test "$with_jdk_bindir" = "no" ; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-jdk-bindir)" >&5
$as_echo "simple no (specified --without-jdk-bindir)" >&6; }
else
if test "$with_jdk_bindir" = "yes" || test "x$with_jdk_bindir" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified value)" >&5
$as_echo "simple ok (unspecified value)" >&6; }
else
if test ! -d "$with_jdk_bindir"; 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_jdk_bindir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_jdk_bindir not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
if test "x`ls $with_jdk_bindir/javac 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_jdk_bindir/javac not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_jdk_bindir/javac not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_jdk_bindir)" >&5
$as_echo "sanity check ok ($with_jdk_bindir)" >&6; }
fi
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-jdk-headers value" >&5
$as_echo_n "checking --with-jdk-headers value... " >&6; }
if test "$with_jdk_headers" = "no" ; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-jdk-headers)" >&5
$as_echo "simple no (specified --without-jdk-headers)" >&6; }
else
if test "$with_jdk_headers" = "yes" || test "x$with_jdk_headers" = "x"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified value)" >&5
$as_echo "simple ok (unspecified value)" >&6; }
else
if test ! -d "$with_jdk_headers"; 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_jdk_headers not found" >&5
$as_echo "$as_me: WARNING: Directory $with_jdk_headers not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
if test "x`ls $with_jdk_headers/jni.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_jdk_headers/jni.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_jdk_headers/jni.h not found" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_jdk_headers)" >&5
$as_echo "sanity check ok ($with_jdk_headers)" >&6; }
fi
fi
fi
fi
# Look for various Java-related programs
ompi_java_happy=no
ompi_java_PATH_save=$PATH
if test -n "$with_jdk_bindir" && test "$with_jdk_bindir" != "yes" && test "$with_jdk_bindir" != "no"; then :
PATH="$with_jdk_bindir:$PATH"
fi
# Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVAC+:} false; then :
$as_echo_n "(cached) " >&6
else
case $JAVAC in
[\\/]* | ?:[\\/]*)
ac_cv_path_JAVAC="$JAVAC" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_JAVAC="$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
JAVAC=$ac_cv_path_JAVAC
if test -n "$JAVAC"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
$as_echo "$JAVAC" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
# Extract the first word of "jar", so it can be a program name with args.
set dummy jar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAR+:} false; then :
$as_echo_n "(cached) " >&6
else
case $JAR in
[\\/]* | ?:[\\/]*)
ac_cv_path_JAR="$JAR" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_JAR="$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
JAR=$ac_cv_path_JAR
if test -n "$JAR"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
$as_echo "$JAR" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
# Extract the first word of "javadoc", so it can be a program name with args.
set dummy javadoc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVADOC+:} false; then :
$as_echo_n "(cached) " >&6
else
case $JAVADOC in
[\\/]* | ?:[\\/]*)
ac_cv_path_JAVADOC="$JAVADOC" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_JAVADOC="$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
JAVADOC=$ac_cv_path_JAVADOC
if test -n "$JAVADOC"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
$as_echo "$JAVADOC" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
# Extract the first word of "javah", so it can be a program name with args.
set dummy javah; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVAH+:} false; then :
$as_echo_n "(cached) " >&6
else
case $JAVAH in
[\\/]* | ?:[\\/]*)
ac_cv_path_JAVAH="$JAVAH" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_JAVAH="$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
JAVAH=$ac_cv_path_JAVAH
if test -n "$JAVAH"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
$as_echo "$JAVAH" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
PATH=$ompi_java_PATH_save
# Check to see if we have all 3 programs.
if test -z "$JAVAC" || test -z "$JAR" || test -z "$JAVADOC"; then :
ompi_java_happy=no
else
ompi_java_happy=yes
fi
# Look for jni.h
if test "$ompi_java_happy" = "yes"; then :
ompi_java_CPPFLAGS_save=$CPPFLAGS
# silence a stupid Mac warning
CPPFLAGS="$CPPFLAGS -DTARGET_RT_MAC_CFM=0"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking javac -h" >&5
$as_echo_n "checking javac -h... " >&6; }
cat > Conftest.java << EOF
public final class Conftest {
public native void conftest();
}
EOF
if $JAVAC -d . -h . Conftest.java > /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; }
if test -n "$JAVAH"; then :
ompi_javah_happy=yes
else
ompi_java_happy=no
fi
fi
rm -f Conftest.java Conftest.class Conftest.h
if test -n "$with_jdk_headers" && test "$with_jdk_headers" != "yes" && test "$with_jdk_headers" != "no"; then :
OMPI_JDK_CPPFLAGS="-I$with_jdk_headers"
# Some flavors of JDK also require -I/linux.
# See if that's there, and if so, add a -I for that,
# too. Ugh.
if test -d "$with_jdk_headers/linux"; then :
OMPI_JDK_CPPFLAGS="$OMPI_JDK_CPPFLAGS -I$with_jdk_headers/linux"
fi
# Solaris JDK also require -I/solaris.
# See if that's there, and if so, add a -I for that,
# too. Ugh.
if test -d "$with_jdk_headers/solaris"; then :
OMPI_JDK_CPPFLAGS="$OMPI_JDK_CPPFLAGS -I$with_jdk_headers/solaris"
fi
# Darwin JDK also require -I/darwin.
# See if that's there, and if so, add a -I for that,
# too. Ugh.
if test -d "$with_jdk_headers/darwin"; then :
OMPI_JDK_CPPFLAGS="$OMPI_JDK_CPPFLAGS -I$with_jdk_headers/darwin"
fi
CPPFLAGS="$CPPFLAGS $OMPI_JDK_CPPFLAGS"
fi
ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
if test "x$ac_cv_header_jni_h" = xyes; then :
else
ompi_java_happy=no
fi
CPPFLAGS=$ompi_java_CPPFLAGS_save
fi
else
ompi_java_happy=no
fi
# Are we happy?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Java support available" >&5
$as_echo_n "checking if Java support available... " >&6; }
if test "$ompi_java_happy" = "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 "$as_me:${as_lineno-$LINENO}: WARNING: Java support requested but not found." >&5
$as_echo "$as_me: WARNING: Java support requested but not found." >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
fi
if test "$ompi_javah_happy" = "yes"; then
OMPI_HAVE_JAVAH_SUPPORT_TRUE=
OMPI_HAVE_JAVAH_SUPPORT_FALSE='#'
else
OMPI_HAVE_JAVAH_SUPPORT_TRUE='#'
OMPI_HAVE_JAVAH_SUPPORT_FALSE=
fi
# Unwind the index
opal_scope_index=`expr $opal_scope_index - 1`
opal_scope_test=`expr $opal_scope_index \> 0`
if test "$opal_scope_test" = "0"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL configure scopes." >&5
$as_echo "$as_me: WARNING: OPAL_VAR_SCOPE_POP popped too many OPAL 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
opal_str="opal_str=\"\$opal_scope_$opal_scope_index\""
eval $opal_str
# Iterate over all the variables and unset them all
for opal_var in $opal_str; do
unset $opal_var
done
# Only build the Java bindings if requested
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want Java bindings" >&5
$as_echo_n "checking if want Java bindings... " >&6; }
if test "$enable_mpi_java" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
WANT_MPI_JAVA_BINDINGS=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries are enabled" >&5
$as_echo_n "checking if shared libraries are enabled... " >&6; }
if test "$enable_shared" != "yes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Java bindings cannot be built without shared libraries" >&5
$as_echo "$as_me: WARNING: Java bindings cannot be built without shared libraries" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please reconfigure with --enable-shared" >&5
$as_echo "$as_me: WARNING: Please reconfigure with --enable-shared" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
# Mac Java requires this file (i.e., some other Java-related
# header file needs this file, so we need to check for
# it/include it in our sources when compiling on Mac).
for ac_header in TargetConditionals.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default"
if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_TARGETCONDITIONALS_H 1
_ACEOF
fi
done
# dladdr and Dl_info are required to build the full path to
# libmpi on OS X 10.11 (a.k.a. El Capitan)
ac_fn_c_check_type "$LINENO" "Dl_info" "ac_cv_type_Dl_info" "#include
"
if test "x$ac_cv_type_Dl_info" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_DL_INFO 1
_ACEOF
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
WANT_MPI_JAVA_BINDINGS=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_JAVA_BINDINGS $WANT_MPI_JAVA_BINDINGS
_ACEOF
if test "$WANT_MPI_JAVA_BINDINGS" = "1"; then
OMPI_WANT_JAVA_BINDINGS_TRUE=
OMPI_WANT_JAVA_BINDINGS_FALSE='#'
else
OMPI_WANT_JAVA_BINDINGS_TRUE='#'
OMPI_WANT_JAVA_BINDINGS_FALSE=
fi
# Are we happy?
if test $WANT_MPI_JAVA_BINDINGS -eq 1; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************" >&5
$as_echo "$as_me: WARNING: ******************************************************" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Java MPI bindings are provided on a provisional" >&5
$as_echo "$as_me: WARNING: *** Java MPI bindings are provided on a provisional" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** basis. They are NOT part of the current or" >&5
$as_echo "$as_me: WARNING: *** basis. They are NOT part of the current or" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** proposed MPI standard. Continued inclusion of" >&5
$as_echo "$as_me: WARNING: *** proposed MPI standard. Continued inclusion of" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** the Java MPI bindings in Open MPI is contingent" >&5
$as_echo "$as_me: WARNING: *** the Java MPI bindings in Open MPI is contingent" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** upon user interest and developer support." >&5
$as_echo "$as_me: WARNING: *** upon user interest and developer support." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************" >&5
$as_echo "$as_me: WARNING: ******************************************************" >&2;}
fi
ac_config_files="$ac_config_files ompi/mpi/java/Makefile ompi/mpi/java/java/Makefile ompi/mpi/java/c/Makefile"
##################################
# MPI / OpenSHMEM API profiling layer
##################################
# Setup profiling bindings (if we're building the relevant projects).
# 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 "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
BUILD_MPI_BINDINGS_LAYER_TRUE=
BUILD_MPI_BINDINGS_LAYER_FALSE='#'
else
BUILD_MPI_BINDINGS_LAYER_TRUE='#'
BUILD_MPI_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 OPAL_HAVE_WEAK_SYMBOLS $OPAL_C_HAVE_WEAK_SYMBOLS
_ACEOF
opal_show_subtitle "OpenSHMEM profiling"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pshmem will be enabled" >&5
$as_echo_n "checking if pshmem will be enabled... " >&6; }
if test "$enable_oshmem" != "no" && \
test "$enable_oshmem_profile" != "no"; then :
if test "$OPAL_C_HAVE_WEAK_SYMBOLS" -eq 1 && \
test "$OPAL_C_HAVE_MACRO_WEAK_SYMBOLS" -eq 1; then :
# We want OSHMEM and we have all the required weak
# symbol support
oshmem_profiling_support=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (weak symbols supported)" >&5
$as_echo "yes (weak symbols supported)" >&6; }
else
# We want OSHMEM, but we do NOT have all the
# required weak symbol support
oshmem_profiling_support=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (weak symbols not supported)" >&5
$as_echo "no (weak symbols not supported)" >&6; }
if test "$OPAL_C_HAVE_WEAK_SYMBOLS" -eq 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Weak symbols not supported by compiler" >&5
$as_echo "$as_me: WARNING: Weak symbols not supported by compiler" >&2;}
fi
if test "$OPAL_C_HAVE_MACRO_WEAK_SYMBOLS" -eq 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Macro weak symbols not supported by compiler" >&5
$as_echo "$as_me: WARNING: Macro weak symbols not supported by compiler" >&2;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSHMEM profiling is disabled." >&5
$as_echo "$as_me: WARNING: OpenSHMEM profiling is disabled." >&2;}
if test "$enable_oshmem_profile" = "yes" && \
test "$oshmem_profiling_support" -eq 0; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSHMEM profiling requested but cannot be enabled" >&5
$as_echo "$as_me: WARNING: OpenSHMEM profiling requested but cannot be enabled" >&2;}
as_fn_error $? "Cannot continue" "$LINENO" 5
fi
fi
else
# We do not want OSHMEM, so disable profiling
oshmem_profiling_support=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (OpenSHMEM disabled)" >&5
$as_echo "no (OpenSHMEM disabled)" >&6; }
fi
if test $oshmem_profiling_support -eq 1; then
OSHMEM_PROFILING_TRUE=
OSHMEM_PROFILING_FALSE='#'
else
OSHMEM_PROFILING_TRUE='#'
OSHMEM_PROFILING_FALSE=
fi
##################################
# Assembler Configuration
##################################
opal_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 ${am_cv_CCAS_dependencies_compiler_type+:} false; 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".
rm -rf conftest.dir
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 10 /bin/sh.
echo '/* dummy */' > 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
;;
msvc7 | msvc7msys | 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 ${lt_cv_path_NM+:} false; 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
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
case $build_os in
mingw*) lt_bad_file=conftest.nm/nofile ;;
*) lt_bad_file=/dev/null ;;
esac
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
*$lt_bad_file* | *'Invalid file or object type'*)
lt_cv_path_NM="$tmp_nm -B"
break 2
;;
*)
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
*/dev/null*)
lt_cv_path_NM="$tmp_nm -p"
break 2
;;
*)
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 no != "$lt_cv_path_NM"; then
NM=$lt_cv_path_NM
else
# Didn't find any BSD compatible name lister, look for dumpbin.
if test -n "$DUMPBIN"; then :
# Let the user override the test.
else
if test -n "$ac_tool_prefix"; then
for ac_prog in dumpbin "link -dump"
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 ${ac_cv_prog_DUMPBIN+:} false; 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 as_fn_executable_p "$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 "link -dump"
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 ${ac_cv_prog_ac_ct_DUMPBIN+:} false; 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 as_fn_executable_p "$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
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
*COFF*)
DUMPBIN="$DUMPBIN -symbols -headers"
;;
*)
DUMPBIN=:
;;
esac
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 ${lt_cv_nm_interface+:} false; 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:$LINENO: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:$LINENO: 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 ${ac_cv_path_FGREP+:} false; 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"
as_fn_executable_p "$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"
# Check whether --enable-builtin-atomics was given.
if test "${enable_builtin_atomics+set}" = set; then :
enableval=$enable_builtin_atomics;
fi
opal_cv_asm_builtin="BUILTIN_NO"
if test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" != "no"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic builtin atomics" >&5
$as_echo_n "checking for __atomic builtin atomics... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include